Skip to main content
Glama

dxf_render

Render DXF files as PNG previews locally without AutoCAD. Specify DPI and background color for engineering drawing snapshots.

Instructions

把 DXF 渲染成 PNG 预览图(纯本地,不需要打开 AutoCAD)。

Args: path: 源 DXF 文件。 png_path: 输出 PNG 路径。 dpi: 分辨率,默认 150(100~300)。 background: 背景色,"white"/"black"/"dark" 或 #RRGGBB。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dpiNo
pathYes
png_pathYes
backgroundNowhite

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.5/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden. It discloses that rendering is purely local, but says nothing about whether an existing PNG at png_path is overwritten, what errors occur on a missing/invalid DXF, or any return value.

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?

Purpose is front-loaded in one sentence, followed by a compact Args block; every line carries information. Minor slack in repeating the obvious meaning of path/png_path.

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 tool that writes a file with no annotations and no output schema, the argument coverage is complete, but the description omits the behavioral essentials an agent needs: overwrite behavior on png_path and failure modes for unreadable DXF input.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 0% schema description coverage, the description documents all four parameters and adds constraints absent from the schema: the dpi range (100~300) and accepted background values ('white'/'black'/'dark' or #RRGGBB). This fully compensates for the bare schema.

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?

Clearly states a specific verb+resource: rendering DXF to a PNG preview, and adds a distinguishing scoping note ('纯本地,不需要打开 AutoCAD') that separates it from dxf_open_in_autocad. Sibling dxf_export_pdf is only implicitly contrasted via output format, so it falls just short of 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 'preview' framing and 'no AutoCAD needed' note imply the use case (quick local thumbnail generation), but nothing states explicitly when to choose this over dxf_export_pdf or dxf_open_in_autocad, and no prerequisites are given.

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