Skip to main content
Glama

Plan history

plan_history

Track recent plan changes—who made them, when, and what changed—and restore a specific change by ID to revert it, with undo support.

Instructions

The plan's recent changes (who, when, what). restore: goes back to before that change; that can be undone too.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "plan_history"
  }
}

Input Schema

NameRequiredDescriptionDefault
listNoHow many changes to list; 10 unless set.
restoreNoA change's ID from the list.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.4.0

TDQS

A3.8/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the full burden, and it does disclose the key trait: restore reverts state to before the given change and 'that can be undone too', which tells the agent the mutation is reversible. It omits things such as who may restore, whether restore affects downstream changes, and what the list returns on error.

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 the read purpose first and the mutation caveat second; nothing is redundant or padded. The terseness of 'restore: <id>' is a minor readability cost, not wasted space.

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?

For a 2-parameter tool with no output schema and no annotations, the description covers purpose, parameter effect, and reversibility, but leaves unclear what counts as a 'change' (plan edits versus task-level events) and gives no sense of the return shape beyond who/when/what. Adequate, not complete.

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 description coverage is 100%, so the baseline is 3; the description adds meaning by explaining that the restore ID targets a specific change and moves state to before that change, which the schema's 'A change's ID from the list' does not convey. The list parameter's sizing semantics are left to the schema, which already covers the default of 10.

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 identifies both modes clearly: listing recent plan changes ('who, when, what') and the 'restore' mode keyed by change ID. It is not a clean verb+resource phrase, but an agent can still tell what the tool returns and what the parameter does. No sibling covers history, so there is no ambiguity to resolve.

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 guidance is limited to mode selection: omit parameters to list history, or pass 'restore: <id>' to revert, which implicitly tells the agent when to set restore. There is no explicit statement of when to reach for this over other tools, or of preconditions such as permissions or required prior listing.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.