Skip to main content
Glama
U-C4N
by U-C4N

Sheet: Manage Xrefs

xref_manage
Destructive

Manage AutoCAD external references: list, reload, bind, detach, or change a reference path, with live-only actions refused rather than faked in headless mode.

Instructions

One operation on one external reference.

list, detach and path work on both engines. reload and bind need a live AutoCAD seat's xref manager: headlessly they are refused with capability: "xref_live" rather than pretended, and the refusal says which engine does them. Other refusals: an action outside the five, an unknown xref name, a 'path' action with no new_path. On the live engine a listed row's inserts and kind are both null — ActiveX's block interface carries neither a per-xref insert count nor an overlay indicator, and this server does not invent them. Headlessly both are measured: inserts counts every insert in the drawing, model space and paper space alike, and detach removes exactly those.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNoXref name; ignored by 'list'.
actionYeslist | reload | bind | detach | path.
new_pathNoRequired by 'path': the reference's new location.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.6.0

TDQS

A4.4/5.0
Behavior5/5

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

Annotations only declare destructiveHint=true, and the description goes well beyond that: it discloses that detach removes exactly the counted inserts, that headless inserts counts model and paper space alike, and that on the live engine inserts and kind are deliberately null rather than fabricated. This is exactly the kind of side-effect and data-fidelity disclosure an agent needs for a mutation tool.

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?

The core scope statement is front-loaded, followed by engine behavior, refusal cases, and null semantics in a dense but organized block. Every sentence carries information, though the run-on sentences around the live-engine null behavior could be tightened slightly.

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?

An output schema exists, so return values needn't be described, yet the description still explains the meaning of the returned inserts/kind fields across engines, plus all refusal modes. For a five-action, dual-engine tool with a destructive hint, this leaves no significant gap for correct invocation.

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%, so the schema already documents name ('ignored by list') and new_path ('required by path'). The description restates the 'path needs new_path' constraint but adds no syntax, format, or value-range detail beyond the schema. Baseline 3 is appropriate when the schema carries the parameter burden.

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 opening line states the resource and unit of work ('One operation on one external reference'), and the body enumerates the exact five actions (list, reload, bind, detach, path). This cleanly separates it from the sibling xref_attach and from generic entity tools.

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 explicit engine-dependent routing: reload and bind require a live AutoCAD seat and are refused headlessly with capability 'xref_live', while list/detach/path work on both engines. It also names the refusal conditions (unknown action, unknown xref name, 'path' with no new_path). It stops short of naming alternative sibling tools, so it is clear context rather than full when/when-not guidance.

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