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

Drawing: Topology Check

drawing_topology_check
Read-only

Detect dangling ends, near misses, and interior crossings in AutoCAD piping and electrical line networks. Read-only topology check spots connectivity gaps without altering the drawing.

Instructions

Topology of a line network (spec §11): dangling ends, near misses (end to end and end to line within gap) and interior crossings (two lines of one layer crossing away from their ends). Never modifies the drawing.

An end that touches another network line, any curve on another layer (a tank outline) or the box of any block reference (a valve, a pump) is connected. Arcs and bulged polyline segments are measured as true arcs; arcs are not tested for crossings. The default layers come with their classification as evidence.

Refused before any work: a path that does not exist or cannot be read, a layers entry that is not a layer of the drawing (the drawing's layers named), no layer classified as a network layer when layers is omitted (name them), a non-positive tol or gap, and a gap that does not exceed tol.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
gapNoTwo ends, or an end and a line, closer than this without touching are a near miss; default 0.2 % of the network's diagonal (never under 10 x tol).
tolNoWithin this distance two ends are joined.
pathNoA DXF to check instead of the current document; it is read, never opened or modified.
limitNoRows kept per list; counts are complete.
layersNoLayers to check; default: every layer the vocabulary classifies as piping or electrical with confidence >= 0.9.

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 declare readOnlyHint=true and the description is consistent ('Never modifies the drawing') while adding substantial context beyond the annotation: how connectivity is defined (touching another line, a tank outline curve, or a block reference box), that arcs/bulged segments are measured as true arcs, that arcs are not tested for crossings, and the full set of refusal conditions.

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 the core purpose, then connectivity semantics, then refusals. Dense but every paragraph carries distinct information; the middle paragraph could be tightened slightly but nothing is wasted.

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 need not be described, and the description covers the remaining burden: input semantics, connectivity rules, refusal preconditions, and the read-only guarantee. An agent has everything needed to call it correctly.

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 beyond the schema: the gap-must-exceed-tol refusal constraint, that a layers entry must actually be a layer of the drawing, and that the default layers ship with their classification as evidence. These are semantic relations not derivable from the schema alone.

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?

Names a specific verb and resource ('Topology of a line network') and enumerates exactly what it detects: dangling ends, near misses, interior crossings. This clearly separates it from siblings like validation_check or drawing_diff without needing to open any schema.

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?

The description gives useful preconditions (what gets refused: bad path, invalid layers, no network layer, non-positive tol/gap, gap <= tol) and states it never modifies the drawing, but it never says when to use this versus the sibling validation_check or drawing_understand. Usage is implied by the tool name rather than stated explicitly.

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