Skip to main content
Glama

Trillboards DOOH Advertising

get_media_buys

[AdCP Media Buy] List media buys with status, budget, flight and optional delivery snapshots.

Status, budget and flight are read from the advertisements + placements spine the buy actually books on — not from a stored display string. A buy that its flight ended, or that the pacing cron completed on goal, reports the truth here even though nothing rewrote it.

WHEN TO USE:

  • Polling the buys you have open on this account

  • Confirming a buy left pending_creatives after sync_creatives

  • Getting a near-real-time delivery snapshot without a full delivery report

RETURNS:

  • media_buys: each with media_buy_id, status, currency, total_budget, confirmed_at, revision and packages[]. status is the AdCP media-buy-status enum; the accepted values are listed on the status_filter parameter below.

  • pagination: cursor-based

EXAMPLE: get_media_buys({ status_filter: ["active", "pending_creatives"], include_snapshot: true }) get_media_buys({ media_buy_ids: ["mbuy_1750000000000_ab12cd34"] })

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
contextNo
paginationNo
media_buy_idsNoSpecific media buy IDs. When omitted, returns a paginated set matching status_filter.
status_filterNoSingle status or array of statuses. Defaults to ['active'] when media_buy_ids is omitted; no implicit filter when ids are given.
include_snapshotNoInclude a delivery snapshot per package (impressions, spend, pacing_index). Read live off placements, so staleness_seconds is 0.

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and delivers: it explains that status/budget/flight are read from the advertisements + placements spine rather than a stored display string, so end-of-flight and pacing-completed buys report truth without a rewrite. It also discloses the live-read, staleness-0 snapshot behavior and cursor-based pagination.

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?

Front-loaded one-sentence purpose followed by short labeled sections (WHEN TO USE, RETURNS, EXAMPLE). The data-truth paragraph is slightly wordy and partly overlaps the following sentence, but overall every section earns its place.

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

Completeness4/5

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

For a tool with no annotations and no output schema, the description covers return shape (media_buys fields, packages[], status enum), pagination style, and typical call patterns via examples. Minor gaps remain — the nested packages[] contents are only hinted at via the include_snapshot schema description — but nothing an agent needs to invoke it correctly is missing.

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

Parameters4/5

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

The schema already describes pagination, media_buy_ids, status_filter, and include_snapshot; the description adds the AdCP enum framing for status_filter and two example calls showing how to combine status_filter with include_snapshot and how to query by media_buy_ids. This meaningfully compensates for the 60% schema coverage gap.

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

Purpose5/5

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

States a specific verb and resource: 'List media buys with status, budget, flight and optional delivery snapshots.' The data-truth paragraph and the 'without a full delivery report' clause distinguish it from siblings like get_media_buy_delivery and get_analytics.

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?

Provides an explicit 'WHEN TO USE' section with three concrete scenarios: polling open buys, confirming a buy left pending_creatives after sync_creatives, and getting a near-real-time snapshot without a full delivery report. It gives clear context but stops short of naming the alternative tool explicitly.

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.

TDQS

B3.3/5.0
Disambiguation2/5

There are exact duplicates (get_task_status/tasks_get, list_tasks/tasks_list) and several overlapping analytics, attribution, and semantic search clusters (get_attention_metrics vs get_creative_attention vs get_social_attention; find_similar_moments vs semantic_search_observations; get_campaign_attribution vs get_multi_touch_attribution vs get_roas). Detailed descriptions help, but with 83 tools an agent will frequently struggle to pick the right one.

Naming Consistency3/5

Most tools follow a snake_case verb_noun pattern (list_devices, create_campaign, delete_webhook), but there are notable inconsistencies: list_* and get_* are used interchangeably for list operations, attention tools mix conventions (get_attention_metrics vs get_creative_attention vs get_social_attention), and the legacy tasks_get/tasks_list names break the established get_task_status/list_tasks pattern.

Tool Count1/5

83 tools is an extreme count for a single MCP server, spanning device management, sensing, campaigns, media buys, attribution, webhooks, billing, API discovery, and AdCP protocol concerns. This is a broad API surface dump rather than a focused tool set, and it would be far better split into several coherent servers.

Completeness2/5

Despite the enormous surface, core campaign lifecycle is incomplete: create_campaign explicitly tells the agent to use update_campaign to activate a campaign, but no update_campaign tool exists, and there are no list/delete campaign tools. Significant capabilities exist for analytics, attribution, and webhooks, but the primary advertising workflow has a dead end.

Resources