Skip to main content
Glama
inventor-mcp-server

inventor-mcp-server

manage_occurrences

List, find, ground, delete, or replace assembly components, and convert points between component and assembly coordinates in Autodesk Inventor.

Instructions

Components of the active assembly.

"list": a table with positions; depth=2 also lists what is inside sub-assemblies, with paths. "find": components by what they are and where — definition name pattern, the direction of their Z axis, distance from a point. E.g. definition="ISO 4017M8*", axis=[0,0,1]. "ground": fix a component in space (grounded=False releases it). Ground the first one. "delete": says first what depends on it (patterns, constraints) and stops; force=True deletes, cascade=True also deletes pattern members. Reports components that moved. "replace": put with_file in the component's place — a rebuilt part saved under a new name, a new revision. Constraints stay where Inventor can match the geometry; reports the ones it lost and what moved. "to_top" / "to_local": a point in the component's own coordinates → assembly coordinates, and back — for a sub-assembly that was moved, or a part placed turned.

Args: action: "list", "find", "ground", "delete", "replace", "to_top" or "to_local". path: Component name, path ("Sub:1/Part:1") or list index. depth: For "list". definition: For "find": name pattern on the part / file name. axis: For "find": direction of the component's Z axis, either way along it. near: For "find": a point [x, y, z] in mm. within: For "find": largest distance from near, mm. grounded: For "ground". cascade: For "delete". force: For "delete". with_file: For "replace": full path of the .ipt / .iam that takes its place. all_same: For "replace": every occurrence of the same file at that level (default), or only this one. archive_old: For "replace": then move the old file into an "_old" folder beside it — only if no open document still uses it; never a library file. point: For "to_top" / "to_local": [x, y, z] in mm.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "manage_occurrences"
  }
}

Input Schema

NameRequiredDescriptionDefault
axisNo
nearNo
pathNo
depthNo
forceNo
pointNo
actionNolist
withinNo
cascadeNo
all_sameNo
groundedNo
instanceNoWhich connected Inventor to use (list_instances). Leave empty when only one is connected.
with_fileNo
definitionNo
archive_oldNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv1.1.0
    • addedInput schema / properties / all_same
      Added value: +{
      +  "default": true,
      +  "title": "All Same",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / archive_old
      Added value: +{
      +  "default": false,
      +  "title": "Archive Old",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / point
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "type": "number"
      +      },
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Point"
      +}
    • addedInput schema / properties / with_file
      Added value: +{
      +  "default": "",
      +  "title": "With File",
      +  "type": "string"
      +}
  2. Addedv1.0.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does so well: it discloses that delete is blocked by dependents before acting, that force/cascade change that behavior, that replace loses unmatched constraints, that archive_old is refused if an open document uses the file or it is a library file, and that operations report moved components. It does not state document/permission prerequisites or reversibility, leaving a real gap for a mutation-heavy tool.

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?

Front-loaded with the resource, then quoted action blocks, then an Args list — scannable and nearly every clause adds information. It is long, and the Args section partly restates the action blocks, but the redundancy aids lookup rather than padding.

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?

For a 15-parameter, seven-mode tool with no annotations, the definition covers action semantics, side effects, failure paths, and destructive-mode differences, and an output schema exists so return values need not be described. Missing only entry prerequisites (connected Inventor/active assembly) and error surface, which are handled elsewhere or not at all.

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

Parameters5/5

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

Schema description coverage is only 7% (just 'instance'), so the description must compensate, and it documents 14 of 15 parameters with per-action binding plus semantics the schema lacks: definition glob syntax with an example ('*ISO 4017*M8*'), axis meaning 'either way along it', near/within in mm, with_file as a full .ipt/.iam path, and all_same defaulting to every occurrence at that level.

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?

The opening line names the resource (components of the active assembly) and the description then scopes all seven actions concretely: list with positions, find by definition/axis/distance, ground, delete with dependency reporting, replace with file substitution, and coordinate conversion. An agent can tell which operation it needs without opening the 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?

Each action carries operational context: 'Ground the first one', delete 'says first what depends on it and stops', replace keeps constraints 'where Inventor can match the geometry'. There is no explicit routing to siblings (e.g. manage_constraints, add_circular_pattern) or statement of prerequisites like an open assembly document, so it stops short of full when/when-not guidance.

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