Skip to main content
Glama
Mastercam MCP Server

Mastercam MCP Server

by FunSize77

regenerate_operations

Idempotent

Recalculate selected or all Mastercam toolpaths, report regenerated operation IDs and per-operation errors, and identify operations still marked dirty.

Instructions

Recalculate toolpaths. Returns regenerated ids, per-operation errors, and anything still dirty.

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

Input Schema

NameRequiredDescriptionDefault
idsNoOperation ids (default: all)
only_dirtyNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.2

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare idempotentHint=true, destructiveHint=false, and readOnlyHint=false, so the safety profile is covered. The description adds value beyond that by disclosing the return payload — regenerated ids, per-operation errors, and remaining dirty items — which matters because no output schema exists. It does not discuss runtime, blocking behavior, or side effects on existing toolpath data, keeping it below 5.

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 short sentences, zero waste, with the action front-loaded before the return-value detail. Every clause carries information the agent needs.

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 two-parameter, non-destructive, idempotent mutation with no output schema, the description covers the operation and its returns adequately. The only meaningful gap is the undefined 'dirty' concept, which is central to the only_dirty parameter.

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 only 50%: 'ids' is documented as '(default: all)' while 'only_dirty' has no schema description at all. The phrase 'anything still dirty' in the description hints at the dirty concept, giving partial meaning to only_dirty, but it never explicitly explains what the parameter does or what 'dirty' means. Marginal compensation for the coverage gap.

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?

States a specific verb and resource: 'Recalculate toolpaths.' That is clearly distinct from sibling operations like copy_operations, move_operations, and create_* tools. It does not explicitly name a sibling it is not, so it falls short of a 5.

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

Usage Guidelines2/5

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

There is no when-to-use guidance, no prerequisites, and no mention of alternatives such as get_operation_parameters or check_nc_file. Usage is only implied by the verb 'Recalculate,' which an agent must infer from context.

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