Skip to main content
Glama
Mastercam MCP Server

Mastercam MCP Server

by FunSize77

post_process

Converts selected toolpaths into G-code using the machine group's post, regenerating outdated operations first and optionally writing NC files to a chosen folder.

Instructions

Post-process toolpaths to G-code with the machine group's post. Regenerates dirty operations first.

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": "post_process"
  }
}

Input Schema

NameRequiredDescriptionDefault
idsNoOnly post these operations (default: all)
also_nciNo
output_dirNoFolder for the NC file(s); default is the machine group's output folder

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.2

TDQS

B3.3/5.0
Behavior3/5

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

The annotations already disclose that this is a non-readonly, non-destructive, non-idempotent operation. The description adds valuable context by noting that dirty operations are regenerated first, but it omits important behavior such as whether existing NC files are overwritten and what output or path is returned.

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 two tightly written sentences with the main action front-loaded and no unnecessary wording.

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

Completeness3/5

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

For a three-parameter mutation tool with annotations and no output schema, the definition covers the core action and a key side effect. It still leaves gaps around return values, file overwrite behavior, and the undocumented also_nci parameter.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 67%, with ids and output_dir documented but also_nci undocumented. The description adds no parameter-level meaning, so it fails to compensate for the undocumented boolean parameter.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource: post-process toolpaths to G-code using the machine group's post. It is clear what the tool does, but it does not explicitly distinguish itself from sibling tools such as check_nc_file or export_file.

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 'post-process toolpaths to G-code,' and 'Regenerates dirty operations first' gives a useful precondition/behavior. However, there is no explicit guidance on when to use this versus related tools like check_nc_file, nor are any exclusions stated.

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