Skip to main content
Glama
auto-autocad-mcp

auto-autocad-mcp

by xoaicc

xref repair

auto_xref_repair

Repairs unresolved AutoCAD external references by re-pointing them to files with matching basenames, reports missing or ambiguous matches, and previews changes with dry-run mode.

Instructions

Re-point unresolved external references at a file with the same basename.

Reports every reference: one whose file is present is resolved; one with no candidate is not_found; one with several is ambiguous (never picked); the rest are repaired. The drawing's own folder is searched first, then search_roots. Run with dry_run (the default) to see the plan.

A COM busy failure -- measured right after the seat starts -- is retried up to attempts times, clearing any known dialog between tries; every other failure is raised as it is.

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": "auto_xref_repair"
  }
}

Input Schema

NameRequiredDescriptionDefault
reloadNo
dry_runNo
attemptsNo
max_filesNo
search_rootsNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the readOnlyHint=false / destructiveHint=false annotations, the description supplies real behavioral detail: search order (drawing's own folder first, then search_roots), the four outcome categories and which references are left alone, and precise failure semantics (COM 'busy' retried up to attempts with dialogs cleared between tries; all other failures raised as-is). This is exactly the operational context annotations cannot carry.

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?

It is front-loaded with the core action, then layers outcome classification, search order, and failure handling in short clauses. Dense but nearly every sentence carries decision-relevant information; the parenthetical 'measured right after the seat starts' is slightly opaque without seat context.

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-format explanation is not required, and the description still usefully defines the resolution categories. What is missing is disclosure that the operation mutates the drawing file and what reload/max_files do, which matters for a write tool with a default file cap.

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 0%, so the description must compensate, and it does for dry_run, attempts and search_roots by explaining their effect and interaction with retry behavior. However, reload and max_files (default 20000) are never mentioned, leaving a potentially truncating limit and a post-repair reload undefined anywhere in the definition.

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 first sentence names a specific verb and resource ('Re-point unresolved external references') plus the resolution strategy ('a file with the same basename'), which no sibling tool (export, list, takeoff, preflight, sheet build, etc.) overlaps with. An agent can tell immediately this is the repair tool rather than a discovery or listing tool.

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?

It gives concrete operating guidance: 'Run with dry_run (the default) to see the plan,' which tells the agent to preview before applying, and it explains how ambiguous candidates are treated ('never picked'). It stops short of stating preconditions (e.g., drawing must be open / seat acquired), but the when-to-use path is clear.

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