Skip to main content
Glama
ltp3-mcp

ltp3-mcp

by RomeoCoding

compare_trees

Compare two LTpowerPlanner power trees to identify added, removed, or changed parts, tabs, and net connections, with optional solved-value and layout differences.

Instructions

Structural diff of two open trees (a = before, b = after): parts added, removed or changed (by id), tabs added or removed, and connections compared as nets. Layout (positions, colours) is hidden unless include_layout=true. With include_solve=true, per-part solved numbers (watts) are compared too (kind 'result') and solve_delta gives b minus a in watts for pin_w, pout_w and ploss_w. Give tab_a/tab_b to restrict the comparison to one tab of each.

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": {
      "a": "<a>",
      "b": "<b>"
    },
    "name": "compare_trees"
  }
}

Input Schema

NameRequiredDescriptionDefault
aYes
bYes
tab_aNo
tab_bNo
include_solveNo
include_layoutNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/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 burden; it discloses default-hidden layout data and the direction of the delta ('solve_delta gives b minus a in watts'), which is the kind of behavioral detail an agent needs. It never states explicitly that the operation is read-only or side-effect free, which is the main remaining gap for an unannotated tool.

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?

Four dense sentences, front-loaded with the core purpose before the optional flags; each clause carries information about behavior rather than restating the name. Some sentences are long and pack multiple conditions, but no filler is present.

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?

An output schema exists, so return shapes need not be explained, and the description still names key fields (kind 'result', solve_delta with pin_w/pout_w/ploss_w). Combined with the open-trees prerequisite and per-parameter semantics, it covers what an agent needs to invoke it correctly, missing only the read-only guarantee and tab identifier format.

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 0% and parameter titles are bare ('A', 'B', 'Tab A'), but the description compensates by explaining a/b as before/after, tab_a/tab_b as per-tab restriction, and both booleans by their effects. It does not clarify whether tab_a/tab_b take an id or a name despite the schema allowing string or integer.

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?

States a specific verb and resource ('Structural diff of two open trees') and immediately defines the operand semantics (a = before, b = after) plus the exact categories compared (parts, tabs, nets). An agent can tell this produces a diff rather than a listing or a solve, distinguishing it from siblings like describe_tree or solve.

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?

The requirement that both trees be 'open' establishes a prerequisite, and the flags are given use conditions ('hidden unless include_layout=true', 'With include_solve=true'). It does not name an alternative tool or say when to compare vs. preview_changes/describe_tree, so it stops short of full routing guidance.

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