Skip to main content
Glama
Mastercam MCP Server

Mastercam MCP Server

by FunSize77

save_file

Save the active Mastercam file in place, or provide an absolute .mcam path to run Save As; existing files stay protected unless overwrite is enabled.

Instructions

Save the current file (Save As when path is given; existing files are kept unless overwrite=true).

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

Input Schema

NameRequiredDescriptionDefault
pathNoAbsolute .mcam path for Save As. Omit to save in place.
overwriteNoAllow Save As to replace an existing file

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.2

TDQS

A3.8/5.0
Behavior4/5

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

Annotations declare destructiveHint=false and idempotentHint=false, and the description usefully explains why overwriting is guarded: existing files are kept unless overwrite=true. That is real behaviour beyond the annotation flags, since it clarifies the safety contract of a write operation. It does not cover failure behaviour when overwrite=false and the target exists, nor what happens with no current file.

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?

A single front-loaded sentence with the primary action first and the two conditional behaviours compactly bracketed. No filler and nothing important buried.

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 with annotations and no output schema, the definition covers the mode switch and the overwrite guard, which are the decisions an agent must make. Remaining gaps, error handling on collisions and behaviour with an unsaved/untitled file, are modest but real.

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% and both parameter descriptions already state 'Absolute .mcam path for Save As. Omit to save in place' and 'Allow Save As to replace an existing file'. The description restates that same meaning rather than adding format, validation, or default-path details, 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 (save) and resource (the current file), and immediately disambiguates the two modes the tool supports: in-place save versus Save As keyed on the path parameter. It does not name sibling tools such as export_file or open_file, so an agent must infer the distinction from the verb alone.

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 parenthetical gives a clear trigger for Save As (when a path is supplied) and implies the in-place default when it is omitted, which is genuine usage guidance. However, there is no mention of when to prefer a different tool (e.g. export_file for non-.mcam output) and no stated prerequisites like needing an open file.

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