Skip to main content
Glama
ltp3-mcp

ltp3-mcp

by RomeoCoding

close_tree

Free memory by closing an open LTpowerPlanner power-tree; reject the action when unsaved edits exist unless discard=true.

Instructions

Forget an open tree and free its memory. Refuses (VALIDATION_FAILED, 'unsaved changes') when the tree has edits that were not saved, unless discard=true.

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": "close_tree"
  }
}

Input Schema

NameRequiredDescriptionDefault
discardNo
tree_idYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses the destructive effect of freeing the tree, the protection against unsaved changes, the exact error code and message, and that discard=true overrides the safeguard. It could add more about whether saved state remains available for reopening, but the core behavior is clear.

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 tightly written sentences: the purpose is front-loaded, and the refusal condition follows immediately. There is no filler, and the key safety behavior is stated without excess wording.

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 simple two-parameter close operation with an output schema and no annotations, the description covers the essential destructive behavior and failure mode. It is nearly complete, though a brief note about saving first or reopening the tree would close the remaining gap.

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%, so the description must compensate. It explains discard=true clearly, including that it permits closing despite unsaved changes, but it does not add any detail about tree_id beyond implying it identifies the open tree.

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 action on a specific resource: 'Forget an open tree and free its memory.' An agent can tell this closes an in-memory tree rather than saving or modifying it, though the description does not explicitly distinguish it from siblings like save_tree or open_tree.

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?

Gives the key usage condition: it refuses with VALIDATION_FAILED when there are unsaved edits, unless discard=true. However, it does not explicitly advise calling save_tree first or explain when to choose this over other lifecycle tools.

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