Skip to main content
Glama

Undo several changes

undo_changes
Destructive

Undo several applied changes, e.g. a bulk_update batch's change_ids, newest first. 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_ids": "<change_ids>"
    },
    "name": "undo_changes"
  }
}

Input Schema

NameRequiredDescriptionDefault
change_idsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false, openWorldHint=true, and idempotentHint=false, so the safety profile is covered. The description adds value beyond that by stating the account is actually mutated and that a user confirmation must precede the call. It does not say what happens to changes that cannot be undone or how partial failures are handled.

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 short sentences with no filler. The core action and scope are front-loaded, and the confirmation protocol follows as a clear imperative sequence.

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 destructive, single-parameter tool whose annotations already flag irreversibility and no output schema, the description covers the essentials: what it mutates, where the IDs originate, ordering, and the mandatory confirmation. Remaining gaps are edge-case behavior on non-undoable or partially failing changes.

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% for the single change_ids parameter, so the description has to carry the load. It does add meaning by explaining where the IDs come from (a bulk_update batch's change_ids) and that they are processed newest first. Format constraints such as the 1-50 array size and ID pattern remain schema-only.

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?

States a specific verb and resource ('Undo several applied changes') and pins the scope to a bulk batch of change_ids, which contrasts with the singular sibling undo_change. It does not name that sibling explicitly, so the bulk-vs-single distinction is implied by 'several' rather than stated.

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, enforceable precondition: changes the ad account, so tell the user what the undo does, ask Yes or No, and call only after their Yes. That is clear when-to-call guidance. It stops short of routing between this and undo_change when only one change needs reverting.

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.