Skip to main content
Glama
Mastercam MCP Server

Mastercam MCP Server

by FunSize77

create_geometry

Create wireframe points, lines, arcs, circles, rectangles, or polylines and return new entity IDs for chaining or drilling by entity ID.

Instructions

Create wireframe (all or nothing). Returns the new entity ids per shape, ready for chain={"entity_ids": [...]} or drilling by entity_ids. Rectangles are lines (and corner arcs) in a closed loop.

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": {
      "entities": "<entities>"
    },
    "name": "create_geometry"
  }
}

Input Schema

NameRequiredDescriptionDefault
zNoDepth in the plane for 2D shapes (default 0)
colorNo
levelNoLevel (default: the active level)
planeNoCoordinates are in this plane (top = world, default; front, right, ... or a plane name)
entitiesYes{"type":"point","at":[x,y,z]} | {"type":"line","from":[x,y],"to":[x,y]} | {"type":"arc","center":[x,y],"radius":r,"start_angle":deg,"end_angle":deg} (CCW from plane X) | {"type":"circle","center":[x,y],"radius":r or "diameter":d} | {"type":"rectangle","corner":[x,y] or "center":[x,y],"width":w,"height":h,"corner_radius":r} | {"type":"polyline","points":[[x,y],...],"closed":true}. A third coordinate overrides z.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.2

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint=false, destructiveHint=false, idempotentHint=false), so the bar is lower; the description still adds real value by disclosing transactional semantics ('all or nothing') and the return shape (new entity ids per shape). It does not explain what happens on partial failure or validation errors, which would be the next layer.

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?

Three short sentences with the atomicity constraint front-loaded and the return/chaining info immediately after. The chain= notation is dense but every sentence carries information; no filler.

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?

No output schema exists, yet the description explains the return value (entity ids per shape) and its intended downstream use. Combined with annotations covering the mutation profile and an 80%-documented schema, an agent has enough to call it correctly; only failure-mode behavior is left unstated.

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 80%, so the schema already documents z, level, plane, and the entity object shapes thoroughly. The description's one genuine addition is 'Rectangles are lines (and corner arcs) in a closed loop', which clarifies the resulting geometry type, but it adds nothing about color, plane, or level semantics.

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 wireframe') plus the atomicity constraint, which is enough to distinguish it from the toolpath siblings like create_circle_mill or create_pocket. It never explicitly names a contrasting sibling, so differentiation is inferred from the resource type rather than stated.

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 'all or nothing' parenthetical signals atomicity and the closing note about chain={"entity_ids": [...]} hints at the follow-on workflow, but there is no explicit when-to-use or when-not-to-use guidance relative to alternatives. Usage is implied rather than directed.

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