Skip to main content
Glama

Undo a change

undo
DestructiveIdempotent

Use this when the person wants to take back a change made here (a logged set, meal, weigh-in or any other) while its Undo is open. Give the undo.id the change came back with. Do not use for a change they made in the Almost Fire app itself.

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": {
      "undoId": "<undoId>",
      "idempotencyKey": "<idempotencyKey>"
    },
    "name": "undo"
  }
}

Input Schema

NameRequiredDescriptionDefault
undoIdYesThe undo.id a change came back with.
idempotencyKeyYesA new random id for this change (a UUID). Send the same one again only to retry this exact change.

Output Schema

NameRequiredDescriptionDefault
resultYes

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, idempotentHint=true and readOnlyHint=false, so safety/retry semantics are partly covered by structure. The description adds genuinely new behavioral context: the undo is only valid 'while its Undo is open', i.e. a time-window constraint the agent cannot see in annotations, plus the dependency on a value returned by the original change. It does not state what happens if the window has expired.

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 plus a single exclusion, front-loaded with 'Use this when...' so the trigger is read first. Every clause carries information: trigger, required input, and scope exclusion — no filler.

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?

The tool is simple (two required params), annotations cover the destructive/idempotent profile, and an output schema exists, so return values need no explanation. The description supplies trigger, prerequisite and exclusion; the only real gap is not saying what happens when the undo window has closed or which tool to use instead for app-side 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 100% and both parameters are documented in the schema, including the UUID idempotency-key retry rule. The description restates 'Give the undo.id the change came back with', which mostly duplicates schema text; baseline 3 applies when the schema carries the load.

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 and resource ('take back a change made here') and enumerates the kinds of changes covered — logged set, meal, weigh-in — plus 'any other'. It carves out scope with 'made here' versus changes in the Almost Fire app itself, though it does not name which sibling handles that other case.

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 gives an explicit trigger condition ('when the person wants to take back a change... while its Undo is open'), a prerequisite for calling (pass the undo.id the change came back with), and one exclusion (changes made in the Almost Fire app). It does not name an alternative tool for the excluded case, but the when/when-not framing is present and actionable.

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.