Buy with an MCP agent
Connect any MCP client (Claude, or your own runtime) to https://mcp.vamos.simulmedia.com/mcp with an API token as Authorization: Bearer. Connect your buyer agent has the setup for each client. The tools mirror the REST API one to one, so anything an agent does is visible in the same order book your humans see. Trying it in the sandbox first? The endpoint is https://mcp.sandbox.vamos.simulmedia.com/mcp and the credential is your sandbox bearer secret.
A working session
User: "Buy 10 preemptible :30s in Acme prime in 2026-W41 for Northwind Coffee, under $450 a unit." agent → list_advertisers { "external_ref": "northwind-coffee" } agent → search_catalog { "seller": "acme", "product_type": "daypart", "days": ["mon", "fri"], "advertiser_id": "adv_4c1f7a2b9e03" } # each product carries from_price: acme-prime preemptible :30 from 405.00 agent → get_avails { "product_id": ["acme-prime", "acme-daytime"], "weeks": ["2026-W41"], "spot_length": 30, "advertiser_id": "adv_4c1f7a2b9e03" } # one summary per product: scatter :30 preemptible at 405.00, P2, 42 spots open, locked_rate_ids by week agent → quote_order { "line_items": [{ "rate": { "locked_rate_id": "lr_88c1", "unit_cost": 405.00 }, ... }] } # valid: true, one line priced at 405.00, total 4050.00; nothing written agent → create_order { "line_items": [{ "rate": { "locked_rate_id": "lr_88c1", "unit_cost": 405.00 }, ... }] } agent → get_order { "order_id": "ord_9f3a12c4b7e1" } # waits at seller_review # a person at the seller approves; the order lands in placed with a placement_receipt
Summaries by default
search_catalog and get_avails return a summary unless you pass view: "full". The summary has what an agent needs to shop, at a fraction of the tokens:
search_catalogreturns each product trimmed to the fields that decide a shortlist (network, window, dayparts, lengths, buy types, market,unpriced[], the seller's description) plusfrom_price, one price per buy type for your advertiser's class at:30. Filter bynetwork,days,reporting_daypart, andspot_length.get_availstakes one product or a list of one seller's products, and returns{ seller, view: "summary", products }: each product's distinct prices with the weeks they cover, and availability as a default per grain with the periods that differ. On a daily product over a quarter the summary is under 3 percent of the full body.- Pass
advertiser_idto price for that advertiser's class, as the seller's category pricing resolves it.
view: "full" returns today's bodies exactly: every product field, and every period with its embedded rate lines. Use it when a tool you built reads avails. The REST API reads are unchanged and still default to the full view; add ?view=summary to get the same summary over HTTP. See the summary view.
Planning across a large catalog
Summaries get too large for a seller with a hundred networks priced week by week: a hundred products over twenty weeks runs to megabytes. Read the catalog as a matrix instead, with one price per cell per week:
agent → search_catalog { "seller": "acme", "advertiser_id": "adv_4c1f7a2b9e03" } # 100 products a page, ordered by network; next_cursor for the rest agent → get_avails { "product_id": [ ...every product id... ], "from": "2026-11-02", "to": "2027-03-21", "view": "matrix", "advertiser_id": "adv_4c1f7a2b9e03", "spot_length": 30 } # weeks once; per product, each cell's price week by week, and spots and impressions per spot
- Narrow first.
advertiser_id,buy_type, andspot_lengtheach cut the matrix down. A result too large to send comes back as422 INVALID_INPUTwithdetails.reason: "response_too_large"and the size; split the products or the weeks and read again. - Weeks. Weeks are ISO weeks, Monday to Sunday, and 2026 has a W53. Pass
fromandto(dates or weeks) rather than listing every week. - Book with runs. The matrix has no lock ids. A run prices each period from the card; send
expected_unit_costto be told if a price moved before the order books.
Quote an order before you create it
quote_order takes exactly create_order's input, runs the same checks, and writes nothing: it answers valid, every refusal create would make (a line check names every failing line), the priced lines, and the totals. Fix the body, then create. A quote is advisory: a card can change between the quote and the create, so create checks again.
The create body can stay short:
- Lines. A line's
rateneedslocked_rate_idandunit_costorcpm; the cell fills the rest, and any field you do send is checked against it. - Schedules. Book a schedule as one run. A run is one product, length, buy type, and market class over a span of days, weeks, or months; it expands into one line per period, priced from the seller's card for each period, and each line reads back with the run's
run_id. A quarter of weekday spots is one entry inrunsinstead of 65 lines. Give it abudgetinstead ofunits_per_periodand the platform does the unit arithmetic against each week's price. See runs[]. - A brief. To have the seller plan the buy, send
request(the brief: type, budget, flight, and optionally an audience goal and free text) instead of lines. The seller's plan comes back forconfirm_order. See Proposals.
rate_version is the taxonomy_version that search_catalog returned for the seller. If the seller publishes a newer catalog first, the create still returns an order_id, with outcome.status: "failed" and the error, and create_order marks the result as an error. That order keeps its external_order_id: send the corrected order with a new one.
If a create times out, retry it. Send the same order with the same external_order_id, in any key order, and the platform replays the original answer.
Finding your orders
list_orders lists your orders, newest first, as one summary row each: status, seller, advertiser, campaign, totals, line count, and the time of the last event. It returns 50 by default and up to 200. Pass updated_since to see only what changed since you last looked, or external_order_id to find an order whose create you never got an answer to. Read one order with get_order.
agent → list_orders { "status": ["seller_review", "negotiating"], "updated_since": "2026-10-29T09:00:00Z" } # two rows: one waiting on the seller, one countered
When the seller answers
An order pauses for the buyer in two places: at negotiating when the seller counters, and at needs_confirmation when the seller returns a plan for a brief. Three tools move it on. Each one calls its REST API route, and the agent should call it only after the buyer approves.
User: "Acme came back on the Northwind order. What did they say?" agent → get_order { "order_id": "ord_9f3a12c4b7e1" } # negotiating: 10 units countered at 380.00 agent → get_events { "order_id": "ord_9f3a12c4b7e1" } # the seller's counter and its reason User: "Take it." agent → respond_negotiation { "order_id": "ord_9f3a12c4b7e1", "action": "accept", "actor": "planner@northwind-agency.com" } # 202: placed, at the countered price
accept books every line in the counter round at its quoted price. If the quote has expired, the call is refused with STALE_RATE_CARD and the order stays in negotiating. withdraw cancels the order. A buyer counter is published but not yet served, so counter is refused with INVALID_INPUT.
To confirm a plan, read it with get_order and show the buyer the lines and the total. Once they approve, call confirm_order with "action": "confirm" and the plan_id they reviewed. If the seller has sent a newer plan since, the call is refused, so the buyer never books a plan they did not see. Confirming books the plan's lines and moves the order to seller_review. "action": "reject" with a reason cancels the order.
cancel_order cancels any order you own that has not reached a terminal state. Canceling an order that is already terminal returns it unchanged.
Guardrails that stay on
- Approval thresholds are org policy: you decide which principals may confirm plans or accept counters, and above what spend.
- Agents cannot skip gates:
seller_reviewpauses for the seller's human regardless of who submitted. - Give your agent the reconciliation rules: dedup on seq, treat the snapshot as authoritative, sweep non-terminal orders after outages.
A well-prompted agent can run the entire sandbox quickstart from the docs alone.