Skip to main content
Glama
Mastercam MCP Server

Mastercam MCP Server

by FunSize77

create_drill

Creates or regenerates drill, peck, tap, and bore toolpaths from entity IDs, arc diameters, positions, or bolt-circle patterns for Mastercam machining operations.

Instructions

Create and regenerate a drill/peck/tap/bore toolpath. Give entity_ids, arc_diameter, positions and/or bolt_circle.

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": {
      "tool_number": "<tool_number>",
      "depth": "<depth>"
    },
    "name": "create_drill"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNo
peckNo
cycleNodrill, peck, chip_break, tap, bore1, bore2, misc1, misc2
depthYesHole bottom (absolute Z unless linking.depth_incremental)
dwellNoSeconds at the bottom (default 0)
peck2No
planeNoTool plane: top, front, back, bottom, left, right or a plane name (HMC: front = B0). Positions and bolt circles are in this plane
shiftNoBore shift distance (default 0 except bore/misc cycles)
coolantNoflood, mist, thru or off
linkingNoHeights: {"clearance", "retract", "feed_plane", "top_stock"} are absolute Z unless the matching "*_incremental": true (also "depth_incremental"); "clearance_on", "retract_on", "rapid_retract". For drilling, feed_plane is the R plane.
feed_rateNo
positionsNo[[x, y] or [x, y, z], ...]
toleranceNo
entity_idsNoArcs/points to drill (ids from list_geometry)
parametersNoAny other parameter by path, e.g. {"LeadInOut.Enabled": true}. See get_operation_parameters for names.
bolt_circleNoHole pattern(s) like a print callout: {diameter, count, start_angle (deg from +X, CCW; default 0), center [x, y] (default 0,0), z (default 0)}; a list for several patterns
plunge_rateNo
tool_numberYes
arc_diameterNoDrill every full circle of this diameter
retract_rateNo
length_offsetNoH number (default: the tool's)
spindle_speedNo
diameter_offsetNoD number (default: the tool's)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.2

TDQS

B3.3/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, so the safety profile is covered. The description adds the notable trait that the tool also *regenerates* existing toolpaths, which is meaningful behavior beyond the annotations, but it omits what happens to prior operations, whether a tool/machine group must pre-exist, and whether the tool_number must be in the library.

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 sentences with no filler, and the action is front-loaded before the input hint. It is arguably undersized for a 23-parameter tool, but every word carries information and nothing is redundant.

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

Completeness2/5

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

For a 23-parameter CAM tool with no output schema, the description says nothing about cycle selection, plane handling, linking heights, or the required tool_number/depth pairing — all of which materially affect a correct call. The hole-location hint is useful but leaves most of the tool's complexity undocumented.

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 61%, so the baseline is around 3. The description's one contribution is clarifying that the four geometry/pattern inputs are combinable ("and/or") to define hole locations, which the schema presents only as four independent optional arrays; the remaining parameters are left entirely to the schema.

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 pair ("Create and regenerate") and a specific resource ("drill/peck/tap/bore toolpath"), which is enough to separate it from siblings like create_helix_bore or create_pocket. It does not explicitly name a sibling or exclusion, so it stops short of a 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 second sentence gives real invocation guidance by listing the hole-location sources (entity_ids, arc_diameter, positions, bolt_circle) with "and/or", implying at least one must be supplied. However, there is no guidance on when to pick this over create_helix_bore or create_circle_mill, and no prerequisites or exclusions.

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