Skip to main content
Glama
Mastercam MCP Server

Mastercam MCP Server

by FunSize77

set_active_group

Idempotent

Activate a toolpath group by ID so new operations are added to it. Use IDs from list_machine_groups to set the active group.

Instructions

Make a toolpath group active (ids from list_machine_groups): new operations are added to it.

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": {
      "group_id": "<group_id>"
    },
    "name": "set_active_group"
  }
}

Input Schema

NameRequiredDescriptionDefault
group_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.2

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true and destructiveHint=false, so the safety profile is covered. The description adds the non-obvious effect that this changes routing for subsequently created operations without altering existing ones. It does not say whether the previously active group is reported back, 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?

One sentence, front-loaded with the action and followed by the consequence and the id source in a compact parenthetical. Nothing is wasted and nothing essential is 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 one-parameter, non-destructive state-setting tool with no output schema, the description covers action, input provenance, and observable effect. Only the return value (e.g., previous active group) is unaddressed, which is a minor omission at this complexity.

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 0% — group_id has no description at all — so the description must compensate. It does so meaningfully by naming list_machine_groups as the source of valid ids, resolving the only real ambiguity for a single required integer. It adds provenance but not format detail such as whether zero or negative ids are valid.

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?

States a specific verb ('Make ... active') and resource ('a toolpath group'), and adds the operational consequence ('new operations are added to it'). This clearly distinguishes it from create_toolpath_group and create_machine_group, which create rather than select.

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?

Points the agent at the sibling that produces valid inputs ('ids from list_machine_groups') and implies the trigger condition (you want new operations to land in a particular group). It stops short of explicit when-not guidance, such as what to do if a group is already active.

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