Skip to main content
Glama
auto-autocad-mcp

auto-autocad-mcp

by xoaicc

material takeoff

auto_material_takeoff
Read-only

Generate a material takeoff from an AutoCAD shopdrawing by reading legend/quantity tables and computing conduit/wire lengths and device counts from geometry for XLSX or CSV output.

Instructions

List a shopdrawing's materials and compute their quantities from geometry.

The sheet's own tables name the types -- its legend and the conduit / wire quantity tables -- while the quantities, a placeholder (n) on the drawing, are computed here: conduit and wire by summed drawn length, devices by count. A conduit type is identified by its conductor count, so the geometry on every E-CD-…(nC)… layer of a type adds up into the table's row for it.

The .dwg is read headless (the core converts it; the input is never written). Devices and wire carry a symbol block, rendered to PNG and, with out, embedded in the XLSX's KÝ HIỆU column (CSV keeps the block's name as text instead). rules is an optional materials.map.json overriding the layer rules from the profile's materials section. A layer no rule claims, a wire with no conduit to pair with, and a symbol that will not render are reported in issues, never guessed.

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": {
      "path": "<path>"
    },
    "name": "auto_material_takeoff"
  }
}

Input Schema

NameRequiredDescriptionDefault
fmtNo
outNo
pathYes
unitNom
rulesNo
images_dirNo
with_imagesNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A3.8/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=true, yet the description adds substantial behavior: the .dwg is read headless and the input is never written, symbols are rendered to PNG and embedded into XLSX or emitted as text in CSV, and unclaimed layers, unpaired wires, and unrenderable symbols surface in issues rather than being guessed. That error-handling contract and the format-dependent output behavior are exactly the kind of 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?

Purpose is front-loaded in the first sentence and the remaining prose is dense with real information rather than filler. The second paragraph is heavy with jargon and backticked identifiers, and the KÝ HIỆU column detail could be tightened, but little is genuinely wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With an output schema present, return values (including issues) need not be explained, and safety is covered by annotations plus the explicit 'input is never written' statement. Still, for a 7-parameter tool with zero schema coverage, important call-shaping details -- what unit controls and how fmt selects XLSX versus CSV -- are missing.

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 0% across 7 parameters, so the description must compensate and it does only partly: it explains out (XLSX embedding), rules (optional materials.map.json overriding profile layer rules), and implies path and image rendering. It never defines unit (default 'm') or fmt, and the XLSX-vs-CSV distinction is only inferable from prose rather than tied explicitly to fmt.

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 gives a specific verb pair and resource: list a shopdrawing's materials and compute quantities from geometry, and it explains the mechanism (legend/quantity tables name types, geometry supplies counts). It does not, however, distinguish it from the sibling auto_layer_takeoff, which an agent could easily conflate with a drawing takeoff.

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 only implied through domain description -- it is the tool that produces a materials table from a shopdrawing's own tables. There is no explicit when-to-use clause, no exclusion, and no named alternative (e.g. layer-only takeoff vs material takeoff) even though a near-identical sibling exists.

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