Skip to main content
Glama

unmake file tools

Convert a PDF drawing to DXF at true scale

pdf_to_dxf
Read-onlyIdempotent

Convert a PDF drawing to DXF at true scale. Reads a vector PDF drawing page with pdf.js and writes DXF R12 in real millimetres: lines, true arcs and circles (Béziers fitted back), rotated text, layers by colour and pen width. The scale is the one printed on the sheet when the drawing's own dimension numbers confirm it, else the standard scale most dimensions agree with, else 1:1; the answer says how it was found and which dimensions agree. Returns drawing.dxf, drawing.svg and the facts (scale, counts, size in mm, reopen check). Same engine as the PDF to DXF page. Use when: An agent has a PDF plan or part drawing (exported from CAD) and needs it as DXF for CAD, CAM or a laser at real size. Not for: Scanned drawings (answered scanned_page; the web page traces scans); DWG output; 3D. File types: pdf. 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": "pdf_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.6/5.0
Behavior5/5

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

Annotations only supply the safety profile (read-only, idempotent, open-world); the description adds substantial behavior beyond that: the three-tier scale-resolution fallback (printed sheet scale, standard scale confirmed by dimensions, else 1:1), the fact that the response reports how the scale was found and which dimensions agree, the returned artifacts (drawing.dxf, drawing.svg, facts including a reopen check), a 30 MB size cap, and the scanned-page refusal path. This is exactly the kind of non-obvious operational detail annotations cannot carry.

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 purpose, then mechanics, then use/not-for routing — good ordering. Dense but nearly every clause carries information; the only minor cost is a long middle sentence about scale resolution that takes a careful read to parse.

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?

For a conversion tool with a nested options object, no output schema and no required parameters, the description covers input type, size cap, geometry fidelity, output artifacts, scale-resolution logic and the failure mode. An agent knows what it will get back and when not to call it.

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 file_url, filename, file_base64 and options are already documented; the description adds only a format constraint ('File types: pdf') and the 30 MB limit. The nested options object remains opaque — 'see the tool description' points back here, yet no option keys are described anywhere. Baseline 3 is appropriate.

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?

Opens with a specific verb+resource+quality ('Convert a PDF drawing to DXF at true scale') and then enumerates exactly what is recovered (lines, true arcs and circles, rotated text, layers by colour and pen width). It is clearly distinguishable from sibling converters like dwg_to_dxf or photo_to_dxf because it names its input format and geometry handling.

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?

Has an explicit 'Use when' clause naming the scenario (agent has a CAD-exported PDF plan needing real-size DXF for CAD/CAM/laser) and an explicit 'Not for' clause with alternatives: scanned drawings are answered as scanned_page and traced on the web page, plus exclusions for DWG output and 3D. The routing conditions are unambiguous.

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