Skip to main content
Glama

dxf_to_geojson

Convert an AutoCAD DXF file's contents to GeoJSON — e.g. "convert this DXF to GeoJSON", "AutoCAD drawing to GIS format", "DXF export from Civil 3D to GeoJSON", "extract only the UTILITIES layer from this DXF". POINT/LINE/LWPOLYLINE/POLYLINE/ARC/CIRCLE entities convert (arcs/circles are tessellated into LineString/Polygon); splines, text, hatches and 3D solids have no GIS geometry equivalent and are skipped, not errored on. Every feature's properties.layer carries its DXF layer name (group code 8). Pass layer to return only that layer's entities — see list_dxf_layers to discover what layer names exist first.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dxfYes
layerNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / layer
      Added value: +{
      +  "default": "",
      +  "title": "Layer",
      +  "type": "string"
      +}
  2. Added

TDQS

A4.7/5.0
Behavior5/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It explicitly states that arcs/circles are tessellated into LineString/Polygon, that splines/text/hatches/3D solids are skipped (not errored), and that each feature's properties.layer will carry the DXF layer name. These are valuable behavioral details beyond the schema.

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?

The description is front-loaded with the primary purpose, followed by concrete examples, conversion details, and usage tips. Every sentence adds information—no filler. Though moderately long, it remains efficient and well-organized.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity, the description covers all key aspects: input (DXF content), output (GeoJSON with layer attribute), entity handling (which convert, which are skipped), optional filtering, and a related tool (list_dxf_layers). The existence of an output schema reduces the need to describe return values, and the description covers the rest comprehensively.

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?

With 0% schema description coverage, the description compensates by explaining the `layer` parameter ('Pass `layer` to return only that layer's entities') and referencing list_dxf_layers. The `dxf` parameter is not explicitly explained, but its meaning is strongly implied by the tool name and description ('Convert an AutoCAD DXF file's contents'). Thus, it adds meaning for at least one parameter and contextualizes both.

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 clearly states the tool's function: 'Convert an AutoCAD DXF file's contents to GeoJSON'. It provides multiple usage examples and specifies exactly what entity types are converted (POINT/LINE/LWPOLYLINE/POLYLINE/ARC/CIRCLE) and which are skipped, effectively distinguishing it from related tools like georeference_dxf or dxf_to_pdf_report.

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?

The description clearly implies when to use the tool (e.g., 'convert this DXF to GeoJSON', 'extract only the UTILITIES layer') and references a prerequisite workflow (using list_dxf_layers to discover layer names). However, it does not explicitly mention when not to use it or name alternative tools, so it stops 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.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.