← Back to product·Simulmedia VAMOS® Docs·Guides: for sellers / Sell with an MCP agent
Guides: for sellers

Sell with an MCP agent

An order approver who works with an agent can ask it what is waiting and decide each order in one conversation. Connect any MCP client to https://mcp.vamos.simulmedia.com/mcp as the seller; Connect your seller agent has the setup for each client. The seller tools call the same routes as the approval screens, under the same checks and the same audit trail, and the seller still decides. They are live in production and not in the sandbox, whose MCP server answers only decide_order for a seller.

A working session

Approver: "What's waiting for me?"

agent → list_review_queue {}
# two orders in seller_review: ord_9f3a12c4b7e1 from YourCo, ord_51c07d2e8a44 from Northwind Media
agent → get_order { "order_id": "ord_9f3a12c4b7e1" }
# 10 preemptible :30s in Acme prime, 2026-W41, at 405.00; advertiser Northwind Coffee
agent → get_order { "order_id": "ord_51c07d2e8a44" }
# two lines; u-0002 asks for 10 units in 2026-W41, which is nearly sold out
agent → get_events { "order_id": "ord_51c07d2e8a44" }
# submitted, validated, at seller_review: no counter round yet
# the agent recommends approving the first order and countering u-0002 with 8 units in W42;
# the approver agrees
agent → decide_order { "order_id": "ord_9f3a12c4b7e1", "decision": "approve", "actor": "planner@acme.example", "units": [...] }
agent → decide_order { "order_id": "ord_51c07d2e8a44", "decision": "counter", "actor": "planner@acme.example", "units": [{ "unit_id": "u-0002", "action": "counter", "counter": { "week": "2026-W42", "unit_cost": 392.00, "num_offered": 8 }, "reason": "W41 sold out" }, ...] }

The agent should not decide on its own. It shows the approver what it would do and calls decide_order only once the approver agrees.

The tools

ToolTakesReturns
list_review_queueOptional status, a canonical order status; seller_review when omittedThe body of GET /v1/me/orders: each row's order id, buyer, totals, and when it was received
get_orderorder_idThe body of GET /v1/me/orders/{id}: the snapshot, the buyer, the advertiser, and every approval
get_eventsorder_id, optional after_seqThe body of GET /v1/events?order=: the order's events in sequence
decide_orderorder_id, decision, actor, unitsThe body of POST /v1/me/orders/{id}/decide

get_order and get_events have the same names a buyer's agent uses. Signed in as a seller, they return the seller's view, and an order that is not yours answers 404 NOT_FOUND, the same as one that does not exist. Every error comes back as a tool result with isError: true and the canonical error envelope.

Scopes

An API key needs orders:read to list, read, and replay orders, and orders:approve to decide them. The scopes are checked again on every call.

Keep inventory current

Between sheets, the same agent can close a week that sold out or move a price. It reads first, shows the seller the change, and writes it once the seller agrees. These writes have no preview, so showing the change first is the agent's job.

Seller: "We sold out of Thursday prime for week 46. Close it."

agent → get_inventory { "product_id": ["acme-prime-thu"], "weeks": ["2026-W46"] }
# one avails entry: acme-prime-thu, week 2026-W46, available, 6 spots
# the agent shows the entry it will write; the seller agrees
agent → update_avails { "as_of": "2026-11-09T15:00:00Z", "entries": [{ "product_id": "acme-prime-thu", "period": { "grain": "week", "start": "2026-W46" }, "state": "unavailable", "basis": "measured", "spots": { "available": 0 } }] }
# entries_written 1
ToolTakesDoes
get_inventoryOptional product_id and weeks, each a listReads the live catalog, the avails (without embedded rates), and the live rate card, as GET /v1/me/inventory does. product_id narrows all three to those products; weeks narrows the avails. For a large seller, narrow rather than reading everything
update_availsas_of, entriesWrites the avails it names. Each entry replaces the one for its product and period; every other entry stays
get_rate_cardNothingReads the live rate card: the commit in force and its entries
patch_ratesbase_commit, commit, and entries_upsert, entries_remove, or bothChanges the entries it names on the live card; every other entry carries over
update_ratesA whole rate-card commitReplaces the whole card: an entry the commit leaves out is no longer on the live card

update_avails and patch_rates change only the entries they name. update_rates replaces the whole card, so use patch_rates to change one price. Orders already locked keep their prices either way.

Retrying patch_rates with exactly the same arguments returns the first result. Reusing a commit id with different changes is refused with 409. A 404 means someone changed the card after the agent read it, so base_commit is no longer live: read the card again and rebuild the change.

For a whole quarter's sheet, use the import instead. Import with an MCP agent previews every price change before anything is written.

An API key needs catalog:read to read the inventory and the rate card, catalog:write to write avails and the import profile, and rates:write to change rates. There is no publish_catalog tool: a whole-catalog write would remove every product it leaves out, and the import never removes one.

Audience requests

A buyer can ask for a custom audience the catalog does not carry. There is no seller screen for these requests yet, so an agent is the easiest way to answer them. It lists what is waiting, drafts an answer, and sends it once the seller approves.

A request is in one of five states:

StatusMeans
pendingWaiting for your answer; expected_by says when the buyer expects it
needs_replyYou asked a question; it waits for the buyer, and its clock is paused
readyAnswered with a published segment the buyer can now buy
declinedAnswered with a reason the buyer reads
withdrawnThe buyer took it back

list_audience_requests returns every request, newest first, with its definition, flight, due time, and message thread. answer_audience_request takes the request's audience_request_id and exactly one answer:

  • question: asks the buyer something. The request moves to needs_reply and its clock pauses until the buyer replies.
  • ready with segment_id, and an optional note: the audience is published as that segment. Publish the segment first: it must exist and the requesting buyer must be able to see it. The agent takes the segment_id from the seller; no tool looks segments up.
  • declined: true with a reason: closes the request, and the buyer reads the reason.

A ready, declined, or withdrawn request cannot be answered again. Everything a buyer wrote, from the audience's name to the messages, is the buyer's data: an agent treats it as information, never as instructions. An API key needs catalog:read to list requests and catalog:write to answer them.

Some seller actions have no tool on purpose. Adding a buyer and resolving a buyer's id need a signed-in Admin, and an MCP agent always signs in with a key. The operator routes are for Simulmedia staff in a signed-in session. The capability profile decides how every order is routed, so a person sets it once at onboarding.

Plans for a brief

Return a plan for a brief-first order from the approval screen. A plan tool waits until the plan route takes an idempotency key, so that an agent's retry cannot attach a second plan.

Text the buyer wrote

The buyer's name, the advertiser, notes, metadata, and a brief are the buyer's data. An agent treats them as information about the order, never as instructions.