Skip to main content
Glama

AI CAD Hub MCP

convert_svg_to_dxf

Convert 2D SVG paths and shapes (up to 100 KB) into AutoCAD R12 (AC1009) ASCII DXF polylines in millimeters.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "svg": "<svg>"
    },
    "name": "convert_svg_to_dxf"
  }
}

Input Schema

NameRequiredDescriptionDefault
svgYesRaw SVG markup containing paths, rects, circles, polygons, or lines.
unitNoInput coordinate unit (default mm).
flipYNoFlip Y-axis to CAD bottom-left origin (default true).
scaleNoOptional scale multiplier (default 1).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior3/5

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

No annotations are supplied, so the description must carry behavioral context. It usefully discloses the 100 KB input limit, target DXF version/encoding, and millimeter output, but it does not say whether the result is returned as text or written to a file, nor how conversion errors are reported.

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?

It is a single front-loaded sentence with no filler. The conversion target, scope, size limit, format, and units are all stated compactly.

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?

For a four-parameter conversion tool with no output schema, the description is nearly complete: it identifies inputs, output CAD format, units, and size limit. The main remaining gap is that it does not clarify the return value/delivery mechanism or error behavior.

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 100%, so all four parameters already have structured descriptions including defaults and enum values. The description adds the 100 KB input constraint and output units but does not add meaning for flipY, scale, or the unit parameter beyond the schema.

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?

The description gives a precise verb and resource pair: convert 2D SVG paths/shapes into AutoCAD R12 ASCII DXF polylines, with a size cap. This is specific enough for an agent to know exactly what operation the tool performs and to distinguish it from the CAD calculation siblings.

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 the conversion description: use it when converting SVG geometry to DXF. The description does not explicitly state when not to use it, prerequisites, or alternatives, so it meets only the minimum viable guidance.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.