Skip to main content
Glama

diff_design_versions

Read-only

Compare two design versions to produce a unified diff of changes and, when both have slicer estimates, show the resulting print-time change.

Instructions

Compute a unified diff between two design versions.

        Version IDs are interpreted as ``<design_id>:<version_number>``
        (e.g. ``my-coaster:2``).  If no colon is present the string is
        treated as a plain version number and the tool will attempt to
        locate a design that contains that version.

        Args:
            version_id_a: The "from" version in ``design_id:N`` format.
            version_id_b: The "to" version in ``design_id:N`` format.

        Returns:
            A unified diff string showing changes from version A to B,
            and ``print_time_change`` when both versions keep the
            slicer's estimate ("At the sliced speed, the slicer's estimate
            went from about 2h 50m to about 3h 1m, 11m longer.").
        

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": {
      "version_id_a": "<version_id_a>",
      "version_id_b": "<version_id_b>"
    },
    "name": "diff_design_versions"
  }
}

Input Schema

NameRequiredDescriptionDefault
version_id_aYesThe "from" version in ``design_id:N`` format.
version_id_bYesThe "to" version in ``design_id:N`` format.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.5.1
    • addedInput schema / properties / version_id_a / description
      Added value: +"The \"from\" version in ``design_id:N`` format."
    • addedInput schema / properties / version_id_b / description
      Added value: +"The \"to\" version in ``design_id:N`` format."
  2. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is covered. The description adds genuinely new behavioral context: the `<design_id>:<version_number>` parsing rule, and the fallback that a colon-less string is treated as a bare version number and the tool will search for a design containing it. That fallback is a non-obvious behavior an agent would otherwise have to discover by error.

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

Conciseness3/5

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

The first sentence is well front-loaded, but the Args section restates parameter text already present at 100% coverage in the schema, which is waste. The Returns paragraph is also awkwardly phrased, embedding a sample print-time sentence that is longer than the information it conveys.

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?

With no output schema, the description correctly takes on the burden of describing the return value: a unified diff string plus a print_time_change element when both versions keep the slicer estimate. Combined with the identifier-format rules, an agent has nearly everything needed. The remaining gap is what happens when the bare version number matches multiple designs, which the text gestures at but does not resolve.

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 100%, so the baseline is 3, but the description adds meaning the schema does not: the fallback parsing behavior when no colon is present, and an example format ('my-coaster:2'). The Args block itself largely duplicates the schema's per-parameter descriptions, so the gain is modest rather than large.

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 states a specific verb and resource: 'Compute a unified diff between two design versions.' That is enough to distinguish it from siblings like list_design_versions or search_design_versions, and 'unified diff' hints at a textual rather than visual comparison. It stops short of naming a sibling such as visual_diff_meshes or compare_mesh_versions, so the differentiation is inferred rather than stated.

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: call this when you have two version identifiers and want the changes between them. The description spends its guidance budget on identifier syntax rather than on when to prefer this tool over the mesh-diff or visual-diff siblings. There are no exclusions or prerequisites stated.

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