Skip to main content
Glama

Undo change

undo_change
Destructive

Undo an applied change on Meta (restores old values, or pauses what it created). Changes the ad account: tell the user what the undo does, ask Yes or No, and call only after their Yes.

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": {
      "change_id": "<change_id>"
    },
    "name": "undo_change"
  }
}

Input Schema

NameRequiredDescriptionDefault
change_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

The annotations already declare destructiveHint=true, readOnlyHint=false, openWorldHint=true and idempotentHint=false, so the safety profile is covered. The description usefully adds the concrete mutation semantics (restore vs. pause) and the user-confirmation requirement, but omits failure modes, whether undo can itself be undone, and any rate or scope limits.

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?

Two sentences, zero filler, with the behavioral effect front-loaded before the confirmation protocol. Every clause earns its place.

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?

A destructive, non-idempotent, open-world mutation with no output schema needs at least the origin of change_id and what a call returns on success or failure. The confirmation protocol and effect description are present, but the agent is left guessing how to source the identifier and what happens after a failed undo.

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

Parameters2/5

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

The single parameter change_id has 0% schema description coverage, so the description carries the full burden and it says nothing about it: not what identifies a change, not its format, and not where the agent should obtain one (e.g., the pending-changes or change-history siblings). The only clue is the regex pattern in the schema.

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?

A specific verb plus resource ('Undo an applied change on Meta') with the concrete effect spelled out in parentheses: restores old values, or pauses what it created. It does not, however, distinguish itself from the sibling undo_changes, so an agent cannot tell which of the two to pick from the text alone.

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?

Gives an explicit gating protocol: explain the effect to the user, ask Yes or No, and call only after their Yes. That is strong when-to-invoke guidance, but it says nothing about when this tool is preferable to undo_changes or where an undo is inappropriate.

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.