Skip to main content
Glama

compare_ldr

Read-only

Compare two .ldr files and report structural and CRC differences, aligning decoded display-order networks as insertions, deletions, or replacements.

Instructions

Compare two existing .ldr files and report their structural and CRC differences.

    This only aligns decoded display-order networks as insert/delete/replace. It does not
    validate IR, simulate behavior or write a file: use validate_ladder, simulate_ladder or
    generate_ldr for those actions. Use read_ldr for either file's decoded network contents.
    

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": {
      "left_path": "<left_path>",
      "right_path": "<right_path>"
    },
    "name": "compare_ldr"
  }
}

Input Schema

NameRequiredDescriptionDefault
left_pathYesExisting baseline .ldr path inside the configured workspace.
right_pathYesExisting comparison .ldr path inside the configured workspace.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.1.1
    • addedInput schema / properties / left_path / description
      Added value: +"Existing baseline .ldr path inside the configured workspace."
    • addedInput schema / properties / right_path / description
      Added value: +"Existing comparison .ldr path inside the configured workspace."
  2. Addedv1.0.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so safety is covered. The description adds real behavioral substance beyond that by disclosing the comparison semantics ('aligns decoded display-order networks as insert/delete/replace'), which is what an agent needs to interpret results. It stops short of disclosing limits such as file size or error behavior, so not a 5.

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 sentences, front-loaded with the core action, then non-goals with routing, then a single adjacent-tool pointer. No filler and nothing buried.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With an output schema present, the description needn't explain return values, and it still names the result categories (structural and CRC differences). For a two-parameter read-only tool, the combination of scope, comparison semantics and sibling routing leaves nothing an agent needs missing.

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 100%; both left_path and right_path are documented as existing .ldr paths inside the configured workspace. The description repeats the 'existing' constraint but adds no format, ordering or path-syntax detail beyond the schema, so the baseline 3 applies.

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?

The description opens with a precise verb+resource+output: 'Compare two existing .ldr files and report their structural and CRC differences.' That tells an agent both the operation and what comes back, and distinguishes it from generation, validation and simulation siblings.

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?

It states explicit exclusions ('does not validate IR, simulate behavior or write a file') and routes each excluded action to a named sibling (validate_ladder, simulate_ladder, generate_ldr). It also redirects agents who want file contents to read_ldr, covering the most likely adjacent need.

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