Skip to main content
Glama

dxf_splines

Append splines to DXF drawings by defining fit points, degree, layer, and color; automatically creates the file when missing.

Instructions

向 DXF 图纸追加样条线(SPLINE);文件不存在时自动创建。

每个样条是一个 dict: points (必填) 拟合点 [[x,y],...](≥3 个,样条穿过这些点) degree 样条阶数,2 或 3(默认 3) layer / color 公共可选字段

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes
splinesYes
dxfversionNoR2010

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

B3.2/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 behavioral burden. It usefully discloses that the operation is additive ('append') and that the file is auto-created when missing, but says nothing about permissions, return values, whether existing geometry is preserved, or how dxfversion affects the result.

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?

The purpose sentence is front-loaded, followed by a compact bulleted breakdown of the spline dict. Every line contributes information; no filler.

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 no output schema and no annotations, the description must be self-sufficient. It handles the complex nested spline structure well but omits any meaning for `path` and `dxfversion`, and gives no return-value or error context, so it is adequate rather than complete for a 3-parameter mutation tool.

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%, so the description must compensate. It does document the nested splines object richly (points required with ≥3 fit points, degree 2 or 3 default 3, optional layer/color), which adds real value over an opaque additionalProperties schema. However, the top-level `path` and `dxfversion` parameters receive no explanation at all, leaving a substantial gap.

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 (append/追加) and resource (SPLINE) targeting DXF drawings, plus the auto-create-file behavior. It is clearly distinguishable from siblings like dxf_read or dxf_render, though it never explicitly contrasts itself with dxf_draw or dxf_create, which could also add geometry.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

There is no explicit when-to-use guidance, no mention of alternatives (e.g., dxf_draw for other geometry, dxf_create for making a file without drawing), and no stated prerequisites. Usage is only implied by the 'append' verb and the auto-create note.

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