Skip to main content
Glama
Mastercam MCP Server

Mastercam MCP Server

by FunSize77

create_facing

Creates or regenerates a facing toolpath over a chained boundary such as a part outline, enabling flat surface machining with a specified tool, depth, and stepover.

Instructions

Create and regenerate a facing toolpath over the chained boundary (usually the part outline).

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_facing"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNo
chainNoGeometry to machine: {"entity_ids": [..]} (ids from list_geometry), or {"level": n, "depth": z or "all", "closed_only": bool}: curves lying flat in the tool plane. Omit = all levels. If curves are at several depths, depth (plane Z) is required. Closed chains run clockwise seen from the plane, so comp_side left = outside, right = inside.
depthYesFinal faced Z
planeNoTool plane: top, front, back, bottom, left, right or a plane name (HMC: front = B0). Curves are chained in this plane
styleNozigzag, one_way, one_pass, dynamic
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.
stepoverNoMax stepover distance (default 75% of the tool diameter)
feed_rateNo
depth_cutsNoMultiple Z steps: {"max_rough_step", "finish_cuts", "finish_step"}
parametersNoAny other parameter by path, e.g. {"LeadInOut.Enabled": true}. See get_operation_parameters for names.
plunge_rateNo
tool_numberYes
retract_rateNo
along_overlapNoPercent of tool diameter (default 110)
length_offsetNoH number (default: the tool's)
spindle_speedNo
across_overlapNoPercent of tool diameter (50 = 50%, converted to a distance); default 50; Mastercam needs at least 50 to face a boundary
diameter_offsetNoD number (default: the tool's)
leave_stock_floorNoFloor stock (default 0)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.2

TDQS

B3.1/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 idempotentHint=false, so the agent knows this creates something without being destructive. The description adds that the operation can be regenerated and that it works over a chained boundary, but says nothing about side effects such as appending to the operation list, computation cost, or failure modes when the chain or tool is invalid.

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?

A single front-loaded sentence with no wasted wording. It is efficient, though its brevity leaves the definition thin for a 20-parameter creation tool.

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 20-parameter, 2-required-parameter mutation tool with no output schema, one sentence is inadequate. It omits prerequisite relationships (tool_number must reference an existing tool), what 'regenerate' implies for existing operations, and any indication of the result returned to the caller.

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 70% and the schema itself carries detailed descriptions for chain, linking, stepover, depth, offsets and overlap. The description only echoes the chain concept ('chained boundary') and adds no format, default, or constraint detail beyond what the schema already provides, so the baseline 3 applies.

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 names a specific verb ('Create and regenerate') and resource ('facing toolpath') plus the geometry it acts on ('the chained boundary, usually the part outline'). An agent can distinguish it from siblings like create_contour or create_pocket by the word 'facing', though no sibling is named explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no explicit when-to-use or when-not-to-use guidance, and no alternatives are named. The parenthetical '(usually the part outline)' hints at the typical chain input but does not tell the agent when facing is the right choice over another toolpath type, nor what prerequisites (e.g. an existing tool number) are needed.

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