Skip to main content
Glama
Mastercam MCP Server

Mastercam MCP Server

by FunSize77

get_state

Read-only

Inspect the current Mastercam session state—file, units, active machine/toolpath group, planes, work offsets, level, selection, and operation counts—before creating geometry or operations.

Instructions

What Mastercam is set to now: file, units, active machine/toolpath group, WCS / tool / construction planes (with work offsets), active level, selection count, operation and dirty-operation counts. Check it before creating geometry or operations: new operations go into the active group and take the current tool plane. The knowledge tool explains planes, chaining, linking and posting with measured facts.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.2

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already establish read-only, non-destructive, closed-world behavior, so the description's added value is the semantics of the snapshot: which settings it exposes and why they matter downstream (operations land in the active group and take the current tool plane). It does not discuss why the result is non-idempotent or how plane/WCS values are represented, which keeps it from a 5.

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?

The returned fields are front-loaded, followed by the action guidance and then a cross-reference. The middle clause about planes '(with work offsets)' is slightly dense and the final knowledge-tool sentence is mildly tangential, but every sentence carries 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?

With no output schema, the description must convey what comes back, and it does so by enumerating every reported field. The remaining gap is representational — it doesn't say how planes, work offsets, or counts are formatted in the response — which matters for an agent parsing the result.

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?

The tool takes zero parameters, so the baseline is 4; there is no argument meaning left to add and the description correctly spends no space on inputs.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a concrete framing ('What Mastercam is set to now') and then enumerates the exact fields returned: file, units, active machine/toolpath group, WCS/tool/construction planes, active level, selection count, operation and dirty-operation counts. This clearly separates it from siblings like get_part_info, get_extents, or the list_* tools without needing their schemas.

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?

Gives an explicit trigger — 'Check it before creating geometry or operations' — with the causal reason that new operations inherit the active group and current tool plane. It also routes plane/chaining/posting questions to the knowledge tool. It lacks an explicit when-not statement, but the usage context is unambiguous.

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