Skip to main content
Glama

AdsAgent — Meta Ads MCP

operations_confirm_entity_update

DestructiveIdempotent

Run the change the user just confirmed in this conversation: set the reviewed Meta entity fields from current to approved values. Confirm with approval_ref and expected_plan_digest only

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_entity_update"
  }
}

Input Schema

NameRequiredDescriptionDefault
currencyNoAccount currency code shown in the approval.
new_valueNo
old_valueNo
approval_refYes
entity_countNoNumber of accepted execution targets. Excluded rows are not counted.
entity_namesNoAccepted entity names in the same order as the complete reviewed batch.
excluded_countNoNumber of excluded rows in the complete reviewed batch.
expected_changesNoOptional. The server ignores this field. Confirm with approval_ref and expected_plan_digest only.
expected_plan_digestYes

Output Schema

NameRequiredDescriptionDefault
messageNo
retryableNo
support_refNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / expected_changes / description
      Added value: +"Optional. The server ignores this field. Confirm with approval_ref and expected_plan_digest only."
  2. Changed7 schema fields changed
    • removedInput schema / properties / connection_context
      Removed value: -{
      -  "pattern": "^mctx_v1_[0-9a-f]{64}$",
      -  "type": "string"
      -}
    • addedInput schema / properties / currency
      Added value: +{
      +  "description": "Account currency code shown in the approval.",
      +  "type": "string"
      +}
    • addedInput schema / properties / entity_count
      Added value: +{
      +  "description": "Number of accepted execution targets. Excluded rows are not counted.",
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • addedInput schema / properties / entity_names
      Added value: +{
      +  "description": "Accepted entity names in the same order as the complete reviewed batch.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / excluded_count
      Added value: +{
      +  "description": "Number of excluded rows in the complete reviewed batch.",
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • 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"
      +  ]
      +}
  3. Changed3 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})$"
    • addedInput schema / properties / expected_changes
      Added value: +{
      +  "items": {
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
  4. Added

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=true, and readOnlyHint=false, so the safety profile is covered. The description adds that execution applies a plan the user already approved in this conversation and that only two confirmation parameters should be sent. It does not explain what happens on a digest mismatch, whether partially applied batches roll back, or anything about the other seven schema fields being ignored.

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 sentences, front-loaded with the action and its effect, then the invocation constraint. Minor redundancy between 'the change the user just confirmed' and 'the reviewed ... approved values', but no filler sentences.

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?

An output schema exists and annotations cover safety and idempotency, so the description need not explain returns. For a destructive 9-parameter confirmation step, the description supplies the essential framing: it executes a prior approval and requires only the approval reference and plan digest. Missing prerequisites and failure behavior (digest mismatch, partial application) keep it from being fully complete.

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 coverage is 56%, so the schema does part of the work. The description adds real signal by declaring approval_ref and expected_plan_digest the only parameters that matter for confirmation, which implicitly deprioritizes the other seven. However, it gives no format or provenance detail beyond the schema patterns, and the 'only' wording sits in tension with a schema that accepts nine fields.

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 concrete action (run the previously confirmed change) and a concrete effect (set reviewed Meta entity fields from current to approved values). It distinguishes the generic entity-update confirmation from the more specific sibling confirmations by emphasizing 'reviewed Meta entity fields'. It stops short of naming an alternative or prerequisite step, so it is strong but not sibling-exclusive.

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

Usage Guidelines3/5

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

Usage is implied rather than stated: 'the change the user just confirmed in this conversation' tells the agent this must follow a review/approval step, and 'Confirm with approval_ref and expected_plan_digest only' constrains how to call it. There is no explicit when-not guidance and the prepare tool that produces approval_ref/expected_plan_digest is never named, leaving the agent to infer the workflow.

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