Skip to main content
Glama

unmake file tools

Compare two revisions of a drawing (PDF or scan)

drawing_compare
Read-onlyIdempotent

Compare two revisions of a drawing (PDF or scan). Lines up two revisions of a technical drawing (vector PDF, scanned PDF or a photo/scan as PNG/JPEG/WebP; shifted, re-scaled, rotated or keystoned) and returns every changed area (added, removed, changed) with where it is on the sheet, the changed words, an overlay PNG (old-only red, new-only blue) and a CSV. Send both files in one ZIP: the old revision first in name order (or named old/new). Same engine as the drawing compare page. Use when: An agent has two revisions of a drawing and needs to know what changed. Not for: DXF pairs (compare them on the page, or turn each into a PDF with dxf_render first); judging whether a change matters. File types: zip. Max 30 MB.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "drawing_compare"
  }
}

Input Schema

NameRequiredDescriptionDefault
optionsNoTool options, if any (see the tool description).
file_urlNoPublic https URL of the file (preferred).
filenameNoFile name with its extension, e.g. part.step.
file_base64NoThe file as base64, for small files without a URL (give filename too).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive/openWorld, and the description still adds real behavioral detail: robustness to shift/scale/rotation/keystone, the change taxonomy (added/removed/changed), overlay color coding, ZIP packaging with old-first naming, and a 30 MB cap. It does not say whether the call returns results synchronously or must be polled via the get_job sibling, and "compare them on the page" is unexplained, which keeps it below 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.

Conciseness4/5

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

Front-loaded with purpose, then inputs, then outputs and rules, then when/when-not — a sound order for a single dense paragraph. Minor waste in restating the title in the first sentence and in the low-value "Same engine as the drawing compare page."

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 returns (changed areas with locations, changed words, overlay PNG, CSV). Completeness is only slightly short on delivery mechanics — whether results are inline, links, or a job requiring get_job — and on failure behavior for unreadable scans.

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 coverage is 100%, so the baseline is 3. The description does add packaging semantics that map onto file_url/file_base64/filename — both revisions in one ZIP, old revision first in name order or named old/new — but it says nothing about the nested options object beyond "see the tool description," leaving that parameter effectively undocumented.

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 ("Compare two revisions of a drawing") and enumerates the accepted inputs (vector PDF, scanned PDF, PNG/JPEG/WebP) plus alignment tolerance. It also names what comes back (changed areas, overlay PNG, CSV), so an agent knows exactly what it gets without opening a schema.

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?

Explicit "Use when" and "Not for" clauses: the agent is told to use it when it has two revisions and needs the delta, and is redirected to dxf_render for DXF pairs. The exclusion of change-significance judgement sets a clear boundary on the tool's role.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources