Skip to main content
Glama
ltp3-mcp

ltp3-mcp

by RomeoCoding

undo

Reverts the last successful edit to an LTpowerPlanner power tree and returns how many edits remain available to revert. Fails when no edits are left.

Instructions

Revert the last successful edit of this tree. Returns how many edits can still be undone. Fails with NOTHING_TO_UNDO when the stack is empty.

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

Input Schema

NameRequiredDescriptionDefault
tree_idYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It discloses one error code and that a remaining-undo count is returned, but says nothing about whether the undo is itself reversible/redoable, whether it operates on saved or in-memory state, or whether persistence requires a subsequent save. For a mutation with zero annotation coverage those are significant omissions.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short, front-loaded sentences with the action stated first and the error case last; no filler. The remaining-undo-count sentence is arguably redundant since an output schema exists, which costs it the top mark.

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?

Because an output schema exists, the return value is already covered, and the description duplicates it anyway. What is missing for a single-parameter mutation tool with no annotations is state semantics: does undo touch the in-memory tree, is it persisted, and does it require an open tree.

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?

There is one required parameter with 0% schema description coverage, so the schema supplies no meaning. The phrase "this tree" marginally links tree_id to the target, but the description never states the expected identifier form (handle, path, index) that other tree tools presumably use.

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 ("Revert") and a precisely scoped resource ("the last successful edit of this tree"), so an agent knows exactly what changes. It never names or contrasts with a sibling such as preview_changes, which is what separates a 4 from a 5.

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?

The failure condition (NOTHING_TO_UNDO when the stack is empty) implicitly tells the agent this is only valid after an edit has occurred, which is genuine usage context. There is no explicit when-to-use statement, no mention of alternatives like preview_changes, and no guidance on sequencing with save_tree.

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