Skip to main content
Glama

Create a media buy (AdCP 3.1 compatibility)

create_media_buy
Idempotent

Same as buy_products in the AdCP 3.1 shape: packages[] with product_id and optional pricing_option_id and budget. Answers at once with media_buy_id; confirmed_at stays null until a human approves the order, within 3 working days. Then sync_creatives and get_media_buys.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "idempotency_key": "<idempotency_key>",
      "packages": "<packages>",
      "start_time": "<start_time>",
      "end_time": "<end_time>"
    },
    "name": "create_media_buy"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNo
brandNo
accountNo
end_timeYes
packagesYes
po_numberNo
start_timeYes
total_budgetNo
idempotency_keyYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already cover the safety profile (readOnly=false, destructive=false, idempotent=true), and the description adds genuinely non-obvious behavior: the call returns immediately with a media_buy_id while confirmed_at stays null until human approval within 3 working days. That approval latency and asynchronous confirmation state are exactly the kind of context annotations cannot express. It does not mention account/auth prerequisites or what happens if approval is rejected.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three tight sentences with no filler, and the immediate-return behavior plus approval caveat are front-loaded before the follow-up tools. Leading with a sibling comparison rather than the tool's own action is slightly awkward ordering but costs little.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a mutating tool with nested objects and no output schema, the description does well on the return contract (media_buy_id, confirmed_at) and the approval workflow, but leaves most of the 9-parameter input surface unexplained. An agent could invoke it at a high level yet would still be guessing about idempotency_key, time windows and budget scoping.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across 9 parameters including nested brand, account, total_budget and creative_assignments objects, so the description carries the full explanatory burden and does not meet it. It explains only product_id, pricing_option_id and budget within packages[], leaving idempotency_key (required, minLength 8), start_time's 'asap' const, end_time, total_budget versus per-package budget, and all the brand/account nesting undocumented.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description anchors the tool to a known sibling ('Same as buy_products in the AdCP 3.1 shape') and names its distinguishing inputs (packages[] with product_id, pricing_option_id, budget), which lets an agent separate it from buy_products. It never states the verb 'creates a media buy' outright, leaning on the name/title for that, so it stops short of a self-contained verb+resource statement.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It establishes the selection context (use this for the AdCP 3.1 shape of the buy_products flow) and gives downstream routing to sync_creatives and get_media_buys. What it lacks is an explicit either/or rule telling the agent when to prefer buy_products over this tool, so the choice is implied rather than stated.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources