Skip to main content
Glama

dxf_layers

Create or update DXF layer definitions with optional colors and linetypes, automatically creating the file if missing.

Instructions

创建或更新图层。

每个图层: {name(必填), color(可选, 同 color 规则), linetype(可选, 如 "Continuous"/"Dashed"/"Center"/"Hidden")}. 文件不存在时先创建。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes
layersYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

B3.4/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 and does disclose real behavior: it auto-creates the file if missing and specifies which layer fields are required vs optional, with concrete linetype values. However, for an 'update' operation it never says whether existing layers are merged or overwritten, nor whether the file is modified in place — the key ambiguity for a mutation tool.

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?

Compact and front-loaded: the purpose comes first, then the per-layer field spec, then the file-creation caveat. Only the dangling '同 color 规则' cross-reference costs it, since that rule is defined nowhere in this definition.

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?

For a two-parameter mutation tool with no annotations and no output schema, the description covers the layer payload and the auto-create side effect but omits overwrite semantics, the meaning of 'path', and any indication of what the call returns. Adequate but with clear gaps.

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 coverage is 0% and the layers array is an untyped object, so the description must compensate. It does document the layer object's fields (name required, color/linetype optional) with example linetype values, which is genuinely additive, but the required 'path' parameter is never explained and the 'color 规则' is deferred to an external rule the agent cannot see.

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+resource pair — 创建或更新图层 (create or update layers) — which is unambiguous and clearly distinct from drawing/entity siblings like dxf_draw, dxf_hatch or dxf_splines. It stops short of naming any sibling or clarifying its relationship to dxf_create, so it is clear but not differentiating.

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: the tool obviously defines layers, and '文件不存在时先创建' hints at a precondition, but there is no statement of when to prefer this over dxf_create or when layers must exist before dxf_draw. No exclusions or alternatives are offered.

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