Skip to main content
Glama

dxf_draw

Append 2D entities like lines, polylines, circles, arcs, and text to a DXF drawing, automatically creating the file if absent.

Instructions

向 DXF 图纸追加 2D 实体;文件不存在时自动创建。

每个实体是一个 dict,公共可选字段:layer(图层名,默认 0)、 color(ACI 数字 / 颜色名如 "red" / "#RRGGBB")。

实体类型与必填字段: line: start, end polyline: points[[x,y],...], closed(bool, 默认 false) rectangle: corner[x,y], width, height circle: center[x,y], radius arc: center[x,y], radius, start_angle, end_angle(度, 逆时针) ellipse: center[x,y], major_radius, ratio(0~1), rotation(度, 可选) point: point[x,y] text: point[x,y], text, height, rotation(度, 可选) mtext: point[x,y], text, char_height, width(可选)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes
entitiesYes
dxfversionNoR2010

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It usefully discloses two behaviors: entities are appended (existing content is not replaced) and the file is created if absent. It says nothing about permissions, file locking, ordering, or what happens on an invalid entity type.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded statement of purpose and creation behavior, followed by a scannable entity reference. Every line carries information that the empty schema does not, so the length is earned rather than padded.

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?

Given a mutation tool with no annotations and no output schema, the description covers the genuinely complex part (the entity dictionary grammar) completely enough to construct a valid call. Remaining gaps are path/dxfversion semantics and return behavior, which matter less than getting the entity shapes right.

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 description coverage is 0%, so the description must compensate, and it does so thoroughly for the hard parameter: the entity grammar, shared optional fields (layer, color with ACI/name/hex forms), and per-type required fields are all spelled out. It leaves 'path' and the 'dxfversion' default undocumented, which are minor given their obvious semantics.

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 description states a specific verb and resource: append 2D entities to a DXF drawing, plus the create-if-missing condition. It is clearly distinguishable from read/render/export siblings, though it never explicitly contrasts itself with dxf_create or dxf_blocks, which also write geometry.

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 implied by 'append to a DXF drawing' and the auto-create note, but there is no explicit when-to-use versus dxf_create, dxf_blocks, or dxf_splines. The agent must infer which sibling to pick for a given geometry task.

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