Skip to main content
Glama

unmake file tools

Convert DWG to DXF and render it

dwg_to_dxf
Read-onlyIdempotent

Convert DWG to DXF and render it. Converts a DWG drawing (R13-2018 and newer DWG versions LibreDWG reads) to DXF with LibreDWG, reads the DXF back with our own reader and returns the DXF plus the same layouts, SVG/PDF/PNG, layers, blocks and dimension check as dxf_render. Use when: A DWG file has to be opened, converted to DXF/PDF/SVG/PNG or measured without AutoCAD. Not for: Writing DWG; files LibreDWG cannot read (some proxy objects, newest entity types are skipped and counted). File types: dwg. Max 30 MB.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "dwg_to_dxf"
  }
}

Input Schema

NameRequiredDescriptionDefault
optionsNoTool options, if any (see the tool description).
file_urlNoPublic https URL of the file (preferred).
filenameNoFile name with its extension, e.g. part.step.
file_base64NoThe file as base64, for small files without a URL (give filename too).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already declare read-only, idempotent, non-destructive behavior, yet the description adds real substance: supported DWG version range (R13-2018), that unreadable proxy objects and new entity types are skipped and counted, the size limit, and what the response contains (DXF plus layouts, SVG/PDF/PNG, layers, blocks, dimension check). That is more than the annotations convey and prepares the caller for partial results.

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?

Front-loaded with the action, then use/not-for guidance and limits, with no filler. The middle sentence is a long run-on that chains the LibreDWG step, the internal reader, and the output list, which slightly hurts scanability.

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 tool with no output schema, the description does the heavy lifting well by naming the returned artifacts and the same render output as dxf_render. It stops short of explaining how the returned DXF/PDF/SVG/PNG files are delivered to the caller (URLs vs inline), which is the main remaining unknown.

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 description coverage is 100%, so the file_url/filename/file_base64 semantics are already documented and the description adds only the dwg file-type and 30 MB constraint. The nested 'options' object is not explained beyond a self-referential pointer to the tool description, which never actually enumerates the options.

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?

States a specific verb and resource ("Convert DWG to DXF and render it") and then spells out the pipeline: LibreDWG conversion, re-read with an internal reader, and the same output bundle as dxf_render. That contrast with dxf_render and with pdf_to_dxf/photo_to_dxf makes it unambiguous which sibling handles a DWG source.

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

Usage Guidelines5/5

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

Provides an explicit "Use when" (opening, converting, or measuring a DWG without AutoCAD) and an explicit "Not for" (writing DWG, files LibreDWG cannot read). It also names the input file type and the 30 MB ceiling, so an agent can decide use/no-use before calling.

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.

Resources