Skip to main content
Glama
Mastercam MCP Server

Mastercam MCP Server

by FunSize77

run_job

Automates one-shot CAD-to-CAM jobs by opening a part, creating the machine group and stock, importing operations, regenerating toolpaths, saving the .mcam, posting .nc, and writing a setup sheet.

Instructions

One-shot CAD-to-CAM: open part (optionally into a template), machine group, stock, import operations, regenerate, save .mcam, post .nc and write the setup/run sheet. Returns every artifact path and a step log.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "part_path": "<part_path>",
      "output_dir": "<output_dir>"
    },
    "name": "run_job"
  }
}

Input Schema

NameRequiredDescriptionDefault
postNo
notesNo
stockNo'all_solids', 'all_entities', {'min':[x,y,z],'max':[x,y,z]}, or null to leave as isall_solids
job_nameNoBase name for outputs (default: part file name)
overwriteNoReplace an existing .mcam of the same name in output_dir
part_pathYesCAD/part file to program
output_dirYesFolder for the .mcam, .nc and setup sheet
programmerNo
setup_sheetNo
template_pathNoTemplate .mcam (machine, stock, maybe operations) to merge the part into
operation_namesNoSubset of library operations to import
machine_definitionNoMachine definition to create a machine group from
operations_libraryNoOperation library to import toolpaths from

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.2

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false and non-idempotent, and the description usefully confirms the write surface by enumerating the artifacts produced (.mcam, .nc, setup/run sheet) plus a returned step log despite no output schema. It still omits behavior an agent would want for a heavy orchestration: whether the current MasterCAM session/document is mutated, what happens on partial failure, and whether re-running is safe.

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?

Two sentences, front-loaded with the 'one-shot CAD-to-CAM' framing, and the long step clause is a compact ordered list in which every element is a real pipeline stage. Nothing is redundant and no filler precedes the substance.

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 13-parameter, multi-stage orchestration with no output schema, the description does well to promise artifact paths and a step log. It is still thin on operational context: no required environment (MasterCAM launched), no expectation of runtime or partial-failure behavior, and no indication of what the run leaves behind in the open document.

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 69% schema coverage across 13 parameters, the description adds real meaning by revealing the execution order and causal links between parameters — template_path merges the part, machine_definition drives the machine group, stock and operation import feed regeneration, and post/setup_sheet gate output generation. It is silent on job_name, programmer, notes and overwrite, but the schema already documents those.

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 names a concrete verb sequence and resource scope: open part, create machine group, apply stock, import operations, regenerate, save .mcam, post .nc, write setup sheet. The phrase 'One-shot CAD-to-CAM' immediately separates it from the granular siblings (create_machine_group, import_operations, export_file), so an agent can tell this is the end-to-end pipeline rather than a single step.

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 'one-shot': reach for this when you want the whole pipeline in a single call. However, no alternative is named (e.g., use the individual create_* / import_operations tools for step-by-step control) and no exclusions or prerequisites are stated, leaving the agent to infer the choice.

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