Skip to main content
Glama
Mastercam MCP Server

Mastercam MCP Server

by FunSize77

create_tool

Creates a cutting tool in the open Mastercam part with type, diameter, rpm, and feed, setting its speeds and feeds as defaults for toolpaths that use it.

Instructions

Create a tool in the open part (units follow the part). Its rpm/feeds become the default for toolpaths that use 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": {
      "type": "<type>",
      "diameter": "<diameter>"
    },
    "name": "create_tool"
  }
}

Input Schema

NameRequiredDescriptionDefault
rpmNo
feedNo
nameNo
typeYesflat_endmill, bull_endmill, ball_endmill, drill, spot_drill, center_drill, tap_rh, tap_lh, reamer, bore_bar, counterbore, countersink, chamfer_mill, face_mill, slot_mill, thread_mill, high_feed_mill, engrave, taper_mill, lollipop, dovetail, radius_mill
flutesNo
lengthNoOverall length
numberNoTool number (default: next free)
threadsNoTaps: threads per inch (pitch in mm for metric parts). Required for taps to post a feed
diameterYes
tip_angleNo
plunge_feedNo
flute_lengthNo
retract_feedNo
corner_radiusNo
length_offsetNo
diameter_offsetNo
shoulder_lengthNo

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 this is a non-readonly, non-idempotent, non-destructive mutation, so the description's marginal value is what it adds: units inherit from the part, and the tool's rpm/feeds become defaults for downstream toolpaths. That default-propagation side effect is genuinely useful. It omits duplicate/conflict behavior (e.g., reused tool numbers) and any indication of what is returned or whether the creation is reversible.

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?

Two tight sentences with zero filler, and the core action is front-loaded before the side-effect note. The brevity is appropriate in form, though it borders on under-specification for a 17-parameter mutation tool.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 17-parameter creation tool with 24% schema coverage and no output schema, the description is too thin: it never indicates which fields are required (type, diameter), what a tool type implies for other params, or what happens on invalid combinations. The defaulting behavior is covered, but the parameter surface is largely unaddressed.

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?

With 17 parameters and only 24% schema description coverage, the schema leaves most semantics (tip_angle, corner_radius, offsets, plunge/retract feed, shoulder_length, flutes) undocumented. The description does add real meaning for two areas: "units follow the part" clarifies that diameter/length are unitless, and the rpm/feed defaulting sentence explains why those two params matter beyond their numeric type. That partial compensation supports a 3, not higher.

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 ("Create a tool") and scopes it to "the open part," which distinguishes it from sibling geometry/toolpath creators like create_pocket or create_circle_mill. It does not explicitly name a sibling it is not, so it falls just short of 5.

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 phrase "in the open part" implicitly conveys the precondition that a part must be open, which is useful context. However, there is no explicit when-to-use guidance versus alternatives such as list_library_tools or create_circle_mill, and no exclusion or error-condition guidance.

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