Skip to main content
Glama

compare_script_versions

Compare two versions of an Ignition script to generate a unified diff and summarize added or removed lines, helping identify changes before applying edits.

Instructions

Diff two versions of a script.

Args: module_path: Module path used to label the diff and load the current version. code_a: Original code; defaults to the on-disk version. code_b: New code; defaults to an empty string when omitted. project: Project name; defaults to the active project.

Returns: A unified diff and a summary of added/removed lines.

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": {
      "module_path": "<module_path>"
    },
    "name": "compare_script_versions"
  }
}

Input Schema

NameRequiredDescriptionDefault
code_aNo
code_bNo
projectNo
module_pathYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations present the description carries the full burden, and it discloses key non-schema behavior: code_a falls back to the on-disk version, code_b falls back to an empty string, and project falls back to the active project. What it does not address is side effects or permissions — it never states whether supplying code_b writes anything to disk or whether the operation is purely read-only.

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?

A single front-loaded summary sentence followed by structured Args and Returns blocks; every line carries information and nothing is repeated from the schema. Well organized for an agent parsing it.

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 four-parameter tool with a 0% documented schema and no annotations, the definition covers purpose, every parameter, and default behavior adequately. The remaining shortfall is the absence of any statement about side effects or read-only safety, which matters more here precisely because no annotations exist.

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 0%, so the description must compensate and largely does: all four parameters get meaning beyond their names, including that module_path both labels the diff and loads the current version, and what each null default resolves to. Minor gap is that module_path's expected path format is never illustrated.

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 opening sentence pairs a specific verb with a specific resource ("Diff two versions of a script") and the parameter names make the script-level scope clear, which distinguishes it reasonably from siblings such as compare_project_versions or compare_udts. It stops short of explicitly naming a sibling it is not, so it lands at clear-but-not-differentiating-by-name.

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 is implied by the semantics: you supply module_path and optionally one or both code strings. The defaults section effectively tells the agent how to invoke it in the common case (omit code_a to compare against the on-disk version), but there is no explicit when-to-use / when-not guidance and no routing to the project- or UDT-level comparison siblings.

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

Deploy Server

Other Tools