Skip to main content
Glama

Undo an automatic history entry

undo_interaction
Idempotent

Remove an entry the system logged from an email or a calendar event (source EMAIL or CALENDAR) when it is wrong. It is hidden, and the next sync does not add it again. A typed entry is corrected with correct_interaction instead (400).

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": {
      "id": "<id>"
    },
    "name": "undo_interaction"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesEntry id from list_interactions.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior3/5

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

Annotations already declare destructiveHint=false and idempotentHint=true, so the safety profile is largely covered, and the description usefully explains why: the entry is hidden and the next sync does not re-add it, which is genuine context beyond the annotations. It also discloses the 400 rejection for typed entries. It stops short of covering permissions/ownership requirements or whether the hiding can later be reversed, which keeps it below the top of the range.

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?

Three short sentences with zero filler: eligibility first, effect second, alternative/error third. Every sentence carries distinct information.

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 single-parameter mutation tool with no output schema, the description covers eligibility, effect, side effects on future syncs, the alternative tool, and the error case. The only gap is access/permission scope, which is minor given the annotations mark the tool as non-open-world.

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

Parameters4/5

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

Schema coverage is 100% and the id parameter already documents its origin (list_interactions), so the baseline is 3. The description adds real meaning on top by constraining which ids are valid (only entries with source EMAIL or CALENDAR), preventing a whole class of misinvocations.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Uses a specific verb ("Remove") against a precisely scoped resource ("an entry the system logged from an email or a calendar event"), and explicitly restricts it to source EMAIL or CALENDAR. It also names the sibling tool it is not (correct_interaction) and the condition that selects that sibling, so an agent can distinguish the two without opening either schema.

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

Usage Guidelines5/5

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

States when to use it ("when it is wrong"), when not to (typed entries), and names the concrete alternative (correct_interaction) with the failure mode (400) if the rule is ignored. Nothing about routing is left to inference.

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