Skip to main content
Glama
Mastercam MCP Server

Mastercam MCP Server

by FunSize77

export_file

Exports the current part's geometry to STEP, Parasolid, SAT, STL, or DXF for sharing with customers or fixture designers while keeping the open .mcam file active.

Instructions

Export the part's geometry to a CAD file (e.g. STEP for a customer or a fixture designer). The open .mcam stays the current file.

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

Input Schema

NameRequiredDescriptionDefault
pathYesAbsolute path ending in .step/.stp, .x_t/.x_b (Parasolid), .sat, .stl or .dxf
overwriteNoReplace an existing file

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.2

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare the mutation/safety profile (readOnlyHint=false, destructiveHint=false, openWorldHint=false), so the description's added value is the state guarantee that the currently open .mcam is unchanged after export — a real behavioral fact an agent cannot get from the annotations or schema. It does not explain what happens when the target file exists and overwrite is false, which is the main remaining gap.

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 with zero waste; the core action comes first and the state-preservation note follows. Every sentence carries distinct information.

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 export tool with no output schema, the definition covers what is exported, in what form, and the side effect on the current document. Minor omissions remain around existing-file conflicts and whether all geometry or a subset is exported.

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 description coverage is 100%, with the path parameter already enumerating the accepted extensions and overwrite documented with a default. The description adds the STEP example but no format, path, or overwrite semantics beyond the schema, so the baseline of 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: 'Export the part's geometry to a CAD file', with a concrete example output (STEP). It does not name a sibling such as save_file, but the closing sentence about the .mcam remaining current implicitly separates it from a save operation.

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

Usage Guidelines4/5

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

Provides a clear usage scenario ('for a customer or a fixture designer') and a decisive usage distinction ('The open .mcam stays the current file'), which tells the agent this is not a save-in-place operation. It stops short of explicitly naming alternatives or stating when not to use it.

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