Skip to main content
Glama

unmake file tools

Inspect a CNC program (G-code, Heidenhain)

nc_inspect
Read-onlyIdempotent

Inspect a CNC program (G-code, Heidenhain). Reads an NC program and returns the dialect, units, cutting and total extents, every tool with cutting length, feeds and speeds, an estimated run time and warnings for codes it does not know. Same engine as the NC viewer page. Use when: An agent has a G-code or Heidenhain program and needs its size, tools or run time. Not for: Collision checks with fixtures, machine travel limits, exact controller timing. File types: nc, gcode, gc, g, ngc, tap, cnc, h, i, mpf, spf, eia, iso, ptp, txt, din, anc. 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": "nc_inspect"
  }
}

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
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, idempotentHint=true, and openWorldHint=true, so the safety profile is covered. The description adds useful behavioral detail beyond those annotations: it lists the returned fields, says unknown codes produce warnings, and sets a 30 MB input limit. It does not cover authentication or error behavior, so it falls short of exceptional.

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?

The description is front-loaded with purpose, then usage guidance, then exclusions and constraints; each part is useful. It is dense and the long file-extension list is mildly bulky, but nothing is truly wasteful.

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?

There is no output schema, so the description carries the burden of describing return values, which it does by naming dialect, units, extents, tools, feeds and speeds, run time, and warnings. It also gives input format and size limits. The unexplained "options" parameter is the main remaining gap.

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?

Schema description coverage is 100%, so the baseline is 3. The description adds meaningful constraints beyond the schema: accepted file extensions (nc, gcode, h, mpf, etc.) and a 30 MB maximum. The generic "options" parameter is still not explained, keeping this from a 5.

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 specific verb and resource ("Inspect a CNC program") and immediately names the supported dialects (G-code, Heidenhain). It also summarizes the returned data, which makes the tool's role distinguishable from generic "inspect" siblings without opening any schema.

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?

It has explicit "Use when" guidance naming the exact scenario (an agent has a G-code or Heidenhain program and needs size, tools, or run time). It also has explicit "Not for" exclusions: collision checks, machine travel limits, and exact controller timing.

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