Skip to main content
Glama
Mastercam MCP Server

Mastercam MCP Server

by FunSize77

import_operations

Imports selected toolpath operations, tools, and parameters from an operation library or .mcam file into the active machine group, with options to include geometry and regenerate.

Instructions

Import toolpath operations (with their tools and parameters) into the active machine group.

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": {
      "path": "<path>"
    },
    "name": "import_operations"
  }
}

Input Schema

NameRequiredDescriptionDefault
idsNoOperation ids in the library to import
pathYesOperation library / .mcam to import from
namesNoOperation names to import (omit names and ids to import all)
regenerateNo
import_geometryNoAlso import the operations' geometry/chains
use_current_viewsNoReset imported ops' planes to the current WCS/Tplane/Cplane

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.2

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already declare readOnly=false, idempotent=false, destructive=false. The description adds useful scope that the import carries tools and parameters along with the operations, but says nothing about name conflicts, whether existing operations are replaced, or prerequisites such as an active machine group being required.

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?

A single front-loaded sentence with no wasted words, but it is arguably too terse for a six-parameter mutation tool; the parenthetical about tools and parameters is the only elaboration.

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

Completeness2/5

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

For a non-idempotent write operation with six parameters and no output schema, the description omits what is returned, whether the import merges with or overwrites existing operations, and error behavior when path or names are invalid. Annotations carry the safety profile, but key behavioral context is missing.

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 83%, so most parameters (ids, names, path, import_geometry, use_current_views) are already documented in the schema. The description adds no meaning about how ids and names interact or what regenerate defaults to, so the baseline 3 applies.

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: imports toolpath operations, plus their tools and parameters, into the active machine group. The destination ('active machine group') distinguishes it from library-listing tools, though it does not explicitly contrast with copy_operations or move_operations.

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?

No when-to-use or when-not-to-use guidance is given; the agent must infer that a machine group must already be active and that copy/move/regenerate are the alternatives. The only contextual hint is the phrase 'into the active machine group'.

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