Skip to main content
Glama
cenitu

inventor-mcp-server

cancel_call

Stops a running Inventor call, such as a long execute_python loop, Content Center scan, or unwanted job. Poll cancelled() in long loops to stop cleanly; grace period then raises KeyboardInterrupt.

Instructions

Stop the running call — a long execute_python loop, a Content Center scan, a job that turned out wrong. cancelled() in execute_python code turns True at once (poll it in long loops to stop cleanly); code that hasn't stopped by itself after CANCEL_GRACE seconds gets a KeyboardInterrupt in the Inventor thread. That takes effect at the next Python line: a call stuck INSIDE one COM call (a long Inventor operation, or a modal dialog) stops only once that call returns.

Input Schema

NameRequiredDescriptionDefault
instanceNoWhich connected Inventor to use (list_instances). Leave empty when only one is connected.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.8.0

TDQS

A4.4/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so thoroughly: cancelled() flips immediately, a CANCEL_GRACE timeout triggers KeyboardInterrupt in the Inventor thread, the interrupt lands at the next Python line, and calls stuck inside a COM call or modal dialog only stop after that call returns. This is exactly the behavioral nuance an agent needs to set expectations.

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 core action is front-loaded in the first clause, and every sentence conveys necessary cancellation semantics. The prose is dense and semicolon-heavy, making it slightly harder to scan than it could be, but there is no filler.

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

Completeness5/5

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

For a behaviorally complex cancellation tool with no annotations, the description covers mechanism, grace period, thread behavior, and COM-call limitations. An output schema exists, so return values need not be explained; nothing critical is missing.

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 description coverage is 100%, so the single 'instance' parameter is already documented in the schema. The description adds no syntax or selection guidance beyond what the schema provides, making the baseline 3 appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource — 'Stop the running call' — and gives concrete examples (long execute_python loop, Content Center scan, wrong job). This clearly distinguishes it from siblings like call_status and execute_python without needing to open either schema.

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

Usage Guidelines4/5

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

The use cases make it obvious when to invoke cancellation: long-running loops, scans, or erroneous jobs. It even advises polling cancelled() in long loops. However, it never names call_status as the alternative for checking progress, nor states when not to cancel.

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