Skip to main content
Glama

dxf_hatch

Append hatch fills to DXF drawings using polygon boundaries. Select solid or patterns like ANSI31, set scale and angle, and auto-create the file if missing.

Instructions

向 DXF 图纸追加填充(HATCH);文件不存在时自动创建。

每个填充是一个 dict: points (必填) 闭合多边形边界顶点 [[x,y],...](按序首尾自动闭合) pattern "solid"(实底,默认)或标准图案名,如 "ANSI31"(斜线)、 "ANSI32"、"CROSS"(网格)、"DOTT"/"DOTS"、"NET"、"GRAVEL"、 "BRICK"、"AR-CONC"(混凝土)、"TRUSS"(桁架)、"WAVES" 等 scale 图案缩放(默认 1.0,越大线越疏) angle 图案旋转角度(默认 0) layer / color 公共可选字段

注意:圆形/弧线边界暂不支持(仅多边形边界);复杂边界建议拆成多个填充。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes
hatchesYes
dxfversionNoR2010

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses that it appends (additive, not overwrite), auto-creates the file if absent, supports only polygon boundaries, and recommends splitting complex boundaries. It omits any permission/auth requirements and the return behavior, keeping it below a 5.

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 purpose and file-creation behavior, then a well-organized field-by-field layout. The pattern-name list is long but each entry adds concrete selectable value; nothing is 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 no annotations, no output schema, and 0% schema coverage, the description is quite complete for invoking the tool: it explains the required hatch structure, defaults, and boundary limitations. Missing only the meaning of path/dxfversion and the return value.

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 0%, so the description must compensate, and it thoroughly documents the nested hatches dict (points required, pattern/scale/angle semantics, layer/color, default values, and a concrete list of pattern names). It leaves the top-level path and dxfversion parameters essentially undocumented, so it is strong but not complete.

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?

States a specific verb and resource (append a HATCH fill to a DXF drawing) and adds the important auto-create-file behavior. It is clearly distinguishable from siblings like dxf_draw and dxf_create without opening 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 Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives clear practical applicability context: hatch is for filling closed areas and only polygon boundaries are supported, with complex boundaries to be split into multiple hatches. It does not name an explicit alternative tool (e.g. dxf_draw) or state when NOT to use it, so it falls short of a 5.

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