Skip to main content
Glama

TrueCrime.News Case Archive

Pause, resume, cancel or amend a KrimiNyt order (AdCP)

update_media_buy
DestructiveIdempotent

AdCP update_media_buy: paused true/false pauses or resumes the order, canceled true cancels it (irreversible; not possible once the article is published), name/start_time/end_time/total_budget amend it. Answers the new media_buy_status and revision.

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>",
      "media_buy_id": "<media_buy_id>"
    },
    "name": "update_media_buy"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNo
pausedNo
accountNo
canceledNo
end_timeNo
packagesNo
revisionNo
start_timeNo
media_buy_idYes
total_budgetNo
idempotency_keyYes
cancellation_reasonNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, but the description adds meaning beyond them: cancellation is irreversible and blocked after article publication, and it names the returned status and revision. It still omits per-package pause/cancel behavior and any concurrency-conflict behavior around revision.

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?

Two dense sentences, front-loaded with the operation list and followed by the return values; little waste. The 'AdCP update_media_buy:' prefix repeats the tool name and could be dropped.

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 12-parameter, nested, destructive mutation with no output schema, the description covers the headline operations and one hard precondition but not the package-level edits or the account/idempotency context an agent needs for full calls.

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

Parameters3/5

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

Schema description coverage is 0%, so the description must carry parameter meaning; it does explain the paused/canceled booleans and the amendable fields (name, start_time, end_time, total_budget). However, it leaves the large nested packages array, account, cancellation_reason, media_buy_id and idempotency_key undocumented, and its phrasing of revision as something the tool 'answers' blurs whether it is an input or output.

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?

The title and first sentence name the specific operations (pause, resume, cancel, amend) and the resource (an AdCP media buy/order), mapping each operation to the field that triggers it. An agent can distinguish this clearly from create_media_buy and get_media_buys.

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 states a real precondition for cancel — irreversible, and not possible once the article is published — which guides when the tool may be used. It does not name alternatives (e.g. create_media_buy vs get_media_buys) or say when to prefer a read tool instead, so it falls short of explicit when/when-not routing.

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