Skip to main content
Glama
Mastercam MCP Server

Mastercam MCP Server

by FunSize77

open_file

Destructive

Opens a .mcam or CAD file in Mastercam, discarding unsaved changes unless merge is set to combine it with the active file.

Instructions

Open a part in Mastercam (unsaved changes in the current file are discarded unless merge=true).

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

Input Schema

NameRequiredDescriptionDefault
pathYesAbsolute path to a .mcam or CAD file (sldprt, step, x_t, igs, stl, dxf, ...)
mergeNoMerge into the current file instead of replacing it

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.2

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and readOnlyHint=false, but the description supplies the specific consequence the annotation does not: unsaved changes in the current file are discarded, with merge=true as the escape hatch. That is the exact 'what gets destroyed' context an agent needs before a destructive call; it stops short of 5 only because file-access or failure behavior is not mentioned.

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?

One sentence, front-loaded with the verb and resource, with the destructive caveat compactly parenthesized. Nothing is redundant or misplaced.

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 tool whose annotations cover the safety profile and whose schema covers both parameters, the description supplies the key destructive-consequence context. Only minor gaps remain, such as what happens on an invalid path or what is returned after a successful open (no output schema exists to cover this).

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 coverage is 100%, so the schema already documents path and merge. The description still adds meaning beyond it by tying merge=false to the real outcome of losing unsaved work, which the schema's 'instead of replacing it' phrasing does not make explicit.

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 ('Open') and resource ('a part in Mastercam'), so an agent can distinguish it from new_file, save_file, and export_file without opening any schema. It does not explicitly name a sibling alternative, which is what keeps it at 4 rather than 5.

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?

The description implies the use case (loading a part into Mastercam) and the parenthetical hints at the merge=true alternative behavior, but it never states when to choose open_file over new_file or when opening is inappropriate. Usage is inferable but not spelled out.

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