Skip to main content
Glama
mastercam-mcp

mastercam-mcp

by Praket7

analyze_cycle_time

Read-onlyIdempotent

Breaks down machining events into cutting and non-cutting time, then flags air-time opportunities for cycle-time review and optimization.

Instructions

Decompose supplied motion/events into cutting and non-cutting time and identify reviewable air-time opportunities

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": {
      "events": "<events>",
      "machineRapidRate": "<machineRapidRate>"
    },
    "name": "analyze_cycle_time"
  }
}

Input Schema

NameRequiredDescriptionDefault
eventsYes
machineRapidRateYes
defaultToolChangeSecondsNo
opportunityThresholdSecondsNo

Output Schema

NameRequiredDescriptionDefault
okYes
dataNo
liveNo
toolYes
errorNo
receiptNo
documentRevisionNo
operationFingerprintNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.3.1
    • changedInput schema / properties / events / items / oneOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "end": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "x": {
      -            "type": "number"
      -          },
      -          "y": {
      -            "type": "number"
      -          },
      -          "z": {
      -            "type": "number"
      -          }
      -        },
      -        "required": [
      -          "x",
      -          "y",
      -          "z"
      -        ],
      -        "type": "object"
      -      },
      -      "engaged": {
      -        "type": "boolean"
      -      },
      -      "feedRate": {
      -        "exclusiveMinimum": 0,
      -        "type": "number"
      -      },
      -      "id": {
      -        "maxLength": 128,
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "kind": {
      -        "const": "move",
      -        "type": "string"
      -      },
      -      "motion": {
      -        "enum": [
      -          "rapid",
      -          "feed"
      -        ],
      -        "type": "string"
      -      },
      -      "operationId": {
      -        "anyOf": [
      -          {
      -            "maxLength": 128,
      -            "minLength": 1,
      -            "type": "string"
      -          },
      -          {
      -            "maximum": 9007199254740991,
      -            "minimum": -9007199254740991,
      -            "type": "integer"
      -          }
      -        ]
      -      },
      -      "start": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "x": {
      -            "type": "number"
      -          },
      -          "y": {
      -            "type": "number"
      -          },
      -          "z": {
      -            "type": "number"
      -          }
      -        },
      -        "required": [
      -          "x",
      -          "y",
      -          "z"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "id",
      -      "kind",
      -      "motion",
      -      "start",
      -      "end"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "id": {
      -        "maxLength": 128,
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "kind": {
      -        "const": "dwell",
      -        "type": "string"
      -      },
      -      "operationId": {
      -        "anyOf": [
      -          {
      -            "maxLength": 128,
      -            "minLength": 1,
      -            "type": "string"
      -          },
      -          {
      -            "maximum": 9007199254740991,
      -            "minimum": -9007199254740991,
      -            "type": "integer"
      -          }
      -        ]
      -      },
      -      "seconds": {
      -        "minimum": 0,
      -        "type": "number"
      -      }
      -    },
      -    "required": [
      -      "id",
      -      "kind",
      -      "seconds"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "id": {
      -        "maxLength": 128,
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "kind": {
      -        "const": "tool_change",
      -        "type": "string"
      -      },
      -      "operationId": {
      -        "anyOf": [
      -          {
      -            "maxLength": 128,
      -            "minLength": 1,
      -            "type": "string"
      -          },
      -          {
      -            "maximum": 9007199254740991,
      -            "minimum": -9007199254740991,
      -            "type": "integer"
      -          }
      -        ]
      -      },
      -      "seconds": {
      -        "minimum": 0,
      -        "type": "number"
      -      }
      -    },
      -    "required": [
      -      "id",
      -      "kind"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "end": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "x": {
      +            "type": "number"
      +          },
      +          "y": {
      +            "type": "number"
      +          },
      +          "z": {
      +            "type": "number"
      +          }
      +        },
      +        "required": [
      +          "x",
      +          "y",
      +          "z"
      +        ],
      +        "type": "object"
      +      },
      +      "engaged": {
      +        "type": "boolean"
      +      },
      +      "feedRate": {
      +        "exclusiveMinimum": 0,
      +        "type": "number"
      +      },
      +      "id": {
      +        "maxLength": 128,
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "kind": {
      +        "const": "move",
      +        "type": "string"
      +      },
      +      "motion": {
      +        "enum": [
      +          "rapid",
      +          "feed"
      +        ],
      +        "type": "string"
      +      },
      +      "operationId": {
      +        "anyOf": [
      +          {
      +            "maxLength": 128,
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          {
      +            "maximum": 9007199254740991,
      +            "minimum": -9007199254740991,
      +            "type": "integer"
      +          }
      +        ]
      +      },
      +      "pathLength": {
      +        "exclusiveMinimum": 0,
      +        "type": "number"
      +      },
      +      "start": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "x": {
      +            "type": "number"
      +          },
      +          "y": {
      +            "type": "number"
      +          },
      +          "z": {
      +            "type": "number"
      +          }
      +        },
      +        "required": [
      +          "x",
      +          "y",
      +          "z"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "id",
      +      "kind",
      +      "motion",
      +      "start",
      +      "end"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "id": {
      +        "maxLength": 128,
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "kind": {
      +        "const": "dwell",
      +        "type": "string"
      +      },
      +      "operationId": {
      +        "anyOf": [
      +          {
      +            "maxLength": 128,
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          {
      +            "maximum": 9007199254740991,
      +            "minimum": -9007199254740991,
      +            "type": "integer"
      +          }
      +        ]
      +      },
      +      "seconds": {
      +        "minimum": 0,
      +        "type": "number"
      +      }
      +    },
      +    "required": [
      +      "id",
      +      "kind",
      +      "seconds"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "id": {
      +        "maxLength": 128,
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "kind": {
      +        "const": "tool_change",
      +        "type": "string"
      +      },
      +      "operationId": {
      +        "anyOf": [
      +          {
      +            "maxLength": 128,
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          {
      +            "maximum": 9007199254740991,
      +            "minimum": -9007199254740991,
      +            "type": "integer"
      +          }
      +        ]
      +      },
      +      "seconds": {
      +        "minimum": 0,
      +        "type": "number"
      +      }
      +    },
      +    "required": [
      +      "id",
      +      "kind"
      +    ],
      +    "type": "object"
      +  }
      +]
  2. Addedv0.3.0

TDQS

C2.9/5.0
Behavior3/5

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

Annotations already declare readOnly/idempotent/non-destructive, so the safety profile is covered. The description adds that the tool decomposes time and surfaces 'reviewable' opportunities, which signals an analytical, advisory output rather than a mutation. It does not mention the 20,000-event cap, that rapid times are derived from machineRapidRate, or any performance characteristics.

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 filler and no repetition of the name. It is efficient, though the brevity is partly the cause of the specification gaps elsewhere.

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?

An output schema exists so return values needn't be described, but the input side is a complex oneOf union of move/dwell/tool_change events with zero schema descriptions and no compensation in the description. Combined with the unexplained threshold parameter and the unaddressed estimate_cycle_time sibling, an agent cannot confidently call this correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across 4 parameters, so the description carries the burden and largely fails. It never explains machineRapidRate (required), defaultToolChangeSeconds (default 8), or opportunityThresholdSeconds (default 1, which directly defines what counts as an 'air-time opportunity'). Only the vague notion of 'motion/events' maps to the events parameter.

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 (decompose) and a specific resource (supplied motion/events) and names the two outputs: cutting vs non-cutting time plus air-time opportunities. It is clear on its own terms, but there is a sibling named estimate_cycle_time whose overlap it never addresses, leaving the agent to infer the distinction.

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?

The phrase 'supplied motion/events' hints that the caller must already have event data, but there is no explicit when-to-use, when-not-to-use, or alternative. Given the presence of estimate_cycle_time in the sibling list, the absence of any routing guidance is a real gap.

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