Skip to main content
Glama

Change an ad record

update_ad

Replaces an existing ad record's brief, its complete shot list, or both. Send every slot you plan to keep, since slots replace the whole list rather than patching it.

Instructions

Free. Replaces the record's brief, its slots or both. slots is the whole shot list again, not a patch: send every slot you keep. Mistakes to avoid: dropping a slot that has checked takes (refused; reword it instead); a new record when the shot list grows.

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": {
      "ad_id": "<ad_id>"
    },
    "name": "update_ad"
  }
}

Input Schema

NameRequiredDescriptionDefault
ad_idYes
briefNo
slotsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.78.0

TDQS

A4.6/5.0
Behavior4/5

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

Annotations only declare non-read-only, non-destructive; the description adds real behavioral context beyond that: the operation is free, replacement is wholesale rather than a patch, and one specific input pattern is rejected server-side. It doesn't say what happens to fields left out entirely or what a successful response looks like, so it stops short of a 5.

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

Conciseness5/5

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

Four short sentences, front-loaded with cost and effect, then the highest-risk semantic ('not a patch'), then the two failure modes. No filler and no repetition of schema constraints.

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 3-parameter nested mutation with no output schema, the description covers cost, replacement semantics, and a refusal rule. The remaining omission is whether omitting brief or slots preserves the existing value, which an agent would want before calling.

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?

Schema description coverage is 0% and the schema is nested, so the description must carry the load — and it does for the riskiest parameter by explaining that slots is the complete shot list, not a patch, with every kept slot required. brief is only characterized as replaceable-as-a-whole, with none of its subfields (product, message, audience, notes) clarified, leaving a modest 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 mutation ('Replaces the record's brief, its slots or both') against a named resource, and implicitly separates itself from create_ad by warning that 'a new record when the shot list grows' is a mistake. An agent can distinguish this from update_asset/update_cut/create_ad without opening a schema.

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

Usage Guidelines5/5

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

Gives explicit when-to-use (replacing brief, slots, or both) and explicit when-not conditions: don't drop a slot with checked takes because it will be refused (reword instead), and don't create a new record just because the shot list grew. These are actionable exclusions with the alternative behavior named.

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