Skip to main content
Glama
auto-autocad-mcp

auto-autocad-mcp

by xoaicc

layer takeoff

auto_layer_takeoff

Count entities and sum LINE, ARC, and POLYLINE lengths by layer in AutoCAD model space, convert units, and export the takeoff table to CSV or XLSX.

Instructions

Count entities and sum length per layer over the model space.

layers / types restrict the scan. Lengths are only summed where the core reported one (LINE / ARC / POLYLINE), converted from the drawing's own units to unit (mm, cm or m) using the profile's takeoff.length_units. With path the table is written to CSV/XLSX.

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_layer_takeoff"
  }
}

Input Schema

NameRequiredDescriptionDefault
fmtNo
pathNo
unitNom
typesNo
layersNo
max_entitiesNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations declare readOnlyHint=false and destructiveHint=false, which the description corroborates by disclosing that with ``path`` the table is written to CSV/XLSX. It adds real behavioral context beyond the annotations: lengths are only summed where the core reported one (LINE/ARC/POLYLINE) and values are converted through the profile's ``takeoff.length_units``. It does not mention the ``max_entities`` cap's effect on truncation, which would have completed the picture.

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?

Two short paragraphs, front-loaded with the core action, then scoping and output behavior. Backtick parameter markup aids scanning. Slightly terse on the write path, but no sentence is wasted.

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 values need not be described. For a tool with a file-writing side effect, the description does disclose the CSV/XLSX behavior and the unit-conversion rules. The remaining gaps (``fmt``, ``max_entities`` truncation behavior) are minor but real for a 6-parameter tool with zero schema documentation.

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%, so the description must carry the burden. It explains ``layers``, ``types``, ``unit`` (mm, cm, m), and ``path``, which is genuinely useful given the bare schema. But ``fmt`` and ``max_entities`` receive no explanation at all, and ``unit`` has no declared enum in the schema so the description is the only source for its allowed values.

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?

States a specific compound action and resource: counting entities and summing length per layer over model space. An agent can immediately tell this is a quantity/measurement takeoff rather than a drawing export or material takeoff. It does not explicitly contrast itself with the sibling auto_material_takeoff, so it falls short of a 5.

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 implies usage through the ``layers`` / ``types`` restriction sentence and the ``path`` write behavior, so an agent can infer how to scope a scan. However, there is no explicit when-to-use versus alternatives guidance (e.g. when to pick this over auto_material_takeoff) and no prerequisites or exclusions stated.

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