Skip to main content
Glama

AdsAgent — Meta Ads MCP

operations_confirm_ad_url_update

DestructiveIdempotent

Run the change the user just confirmed in this conversation: set the reviewed link field of one Meta ad from current to approved value. Requires approval_ref and expected_plan_digest. Confirmation accepts a rotated thumbnail URL when the video ID, valid thumbnail hash and the rest of the creative match. If the source video, thumbnail, destination link or copy changes, prepare again and obtain fresh approval.

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": {
      "approval_ref": "<approval_ref>",
      "expected_plan_digest": "<expected_plan_digest>"
    },
    "name": "operations_confirm_ad_url_update"
  }
}

Input Schema

NameRequiredDescriptionDefault
new_valueNo
old_valueNo
entity_nameNo
approval_refYes
expected_plan_digestYes

Output Schema

NameRequiredDescriptionDefault
messageNo
retryableNo
support_refNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • removedInput schema / properties / connection_context
      Removed value: -{
      -  "pattern": "^mctx_v1_[0-9a-f]{64}$",
      -  "type": "string"
      -}
    • addedInput schema / properties / entity_name
      Added value: +{
      +  "type": "string"
      +}
    • addedInput schema / properties / new_value
      Added value: +{
      +  "type": [
      +    "string",
      +    "number",
      +    "boolean",
      +    "object",
      +    "array"
      +  ]
      +}
    • addedInput schema / properties / old_value
      Added value: +{
      +  "type": [
      +    "string",
      +    "number",
      +    "boolean",
      +    "object",
      +    "array",
      +    "null"
      +  ]
      +}
  2. Changed2 schema fields changed
    • changedInput schema / properties / approval_ref / maxLength
      Previous value: -25New value: +38
    • changedInput schema / properties / approval_ref / pattern
      Previous value: -"^appr_[0-9a-f]{20}$"New value: +"^(?:appr_[0-9a-f]{20}|batch_[0-9a-f]{32})$"
  3. Changed6 schema fields changed
    • addedOutput schema / else / then / properties / category
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / else / then / properties / expected
      Added value: +{
      +  "type": "boolean"
      +}
    • addedOutput schema / else / then / properties / failure_kind
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / else / then / properties / responsibility_hint
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / else / then / properties / route
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / else / then / properties / user_visible
      Added value: +{
      +  "type": "boolean"
      +}
  4. Changed1 schema field changed
    • addedInput schema / properties / connection_context
      Added value: +{
      +  "pattern": "^mctx_v1_[0-9a-f]{64}$",
      +  "type": "string"
      +}
  5. Added

TDQS

B3/5.0
Behavior3/5

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

The description adds substantial context beyond the annotation: it discloses the confirmed precondition, the approval/reference and digest guard, tolerance for a rotated thumbnail URL when video ID and hash match, and exactly what invalidates the approval. That is far more than the annotations supply. What it omits is the result of the write and whether it is reversible, although destructiveHint=true and idempotentHint=true already flag the risk profile.

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

Conciseness2/5

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

The opening phrase is padded, and the sentence packing several ideas into the thumbnail/video-ID tolerance clause makes it harder to parse. The invalidation rule is front-loaded well, but the density around "rotated thumbnail URL when the video ID, valid thumbnail hash and the rest of the creative match" wastes words and obscures the condition. Tightening those clauses would make the key constraints easier to scan.

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

Completeness2/5

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

Output schema exists, so return values need not be described, but this destructive, five-parameter mutation tool leaves new_value, old_value, and entity_name completely unexplained and never states what happens to the current link value on success. It covers the approval lifecycle well, yet its parameter coverage is too thin given that the schema provides no descriptions.

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

Parameters1/5

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

Schema description coverage is 0% for five parameters, so the description carries the full burden, yet it never mentions new_value, old_value, or entity_name, which together imply what the link field is being changed to and on which entity. It only gestures at the roles of the two required parameters, approval_ref and expected_plan_digest, without explaining their format or meaning. For a mutation tool whose schema documents nothing, this leaves most parameters unexplained.

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 names a specific verb (run the confirmed change) and resource (the reviewed link field of one Meta ad), plus the exact transition from current to approved value. It separates itself from the prepare/approval flow by referring to a change the user already confirmed, though it never names the sibling prepare tool.

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 clearly states the precondition: only run the change the user just confirmed in this conversation, and only with approval_ref and expected_plan_digest. It also gives an explicit negative condition: if the source video, thumbnail, destination link or copy changed, prepare again and get fresh approval rather than confirming. The only gap is not naming the sibling tool that performs the re-prepare step.

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