Skip to main content
Glama

macro_run

Executes Creo mapkey macro scripts to run UI commands like view refit, enabling automation when direct API commands are unavailable.

Instructions

Run a Creo mapkey macro (UI command script). Can reach any Creo command but depends on the UI.

Example (refit the view): "~ Command ProCmdViewRefit;" Lines start with "~"; do not include the "mapkey xx" header or "mapkey(continued)" prefixes.

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": {
      "script": "<script>"
    },
    "name": "macro_run"
  }
}

Input Schema

NameRequiredDescriptionDefault
scriptYes
delay_msNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It usefully discloses UI dependence, arbitrary command reach, and script formatting rules, but it omits safety implications of running arbitrary commands, permissions, execution timing, and delay_ms behavior.

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?

The description is short and front-loaded, with the core purpose stated first, followed by a useful example and formatting constraints. The wording is efficient and avoids unnecessary repetition.

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?

The tool executes arbitrary UI commands and has no annotations, making safety and execution behavior important. The description explains script formatting but leaves delay_ms undocumented and does not address side effects or execution constraints; output schema coverage reduces the need to explain return values.

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%, so the description must explain both parameters. It gives meaningful syntax guidance for the required script parameter, including line prefixes and header exclusions, but says nothing about the optional delay_ms 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?

The description states a specific verb and resource: 'Run a Creo mapkey macro (UI command script).' It clearly identifies the tool as a generic macro/command runner, but does not explicitly differentiate it from alternative invocation tools among the siblings.

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?

It implies broad usage by saying the macro 'Can reach any Creo command but depends on the UI,' and gives a concrete example. However, it does not explicitly state when to use this versus direct feature tools or other call tools, nor does it provide when-not guidance.

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