Skip to main content
Glama
Mastercam MCP Server

Mastercam MCP Server

by FunSize77

set_stock

Define the mill stock for a machine group using all solids, all entities, or an explicit bounding box to establish accurate machining bounds.

Instructions

Define the mill stock of a machine group (bounding box of all solids / all entities, or an explicit box).

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

Input Schema

NameRequiredDescriptionDefault
maxNobox mode: upper corner [x, y, z]
minNobox mode: lower corner [x, y, z]
modeNoall_solids, all_entities, or boxall_solids
group_idNoMachine group id (default: active)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.2

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false and non-idempotent, which is a somewhat odd combination for an operation that replaces existing stock. The description adds the useful behavioral fact that stock can be derived from geometry bounds or an explicit box, but it never states what happens to previously defined stock or whether the machine group must already exist.

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 variants in a compact parenthetical. No filler or redundancy.

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 simple setter with fully documented parameters and no output schema, the description gives enough to call it correctly. What is missing is modest: precondition that the machine group exists, and interaction with any previously set stock.

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 100%, so min/max/mode/group_id are all documented in the schema itself, including the '[x, y, z]' corner semantics. The description reinforces the mode distinction but adds no format, unit, or constraint detail beyond what the schema already provides.

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?

The description uses a specific verb plus resource ('Define the mill stock of a machine group') and enumerates the three computation modes in a parenthetical, so the operation is unambiguous. It does not name a sibling, but no sibling in the catalog appears to set stock, so the ambiguity risk is low.

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 'all solids / all entities / or an explicit box' implies the choice set, but the description never says when to pick one mode over another, nor that group_id defaults to the active group when omitted. Usage is inferable only from the schema's enum-like mode description.

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