Skip to main content
Glama

asm_add_component

Adds a part or sub-assembly to a Creo assembly and positions it with either a transform or constraints for precise placement.

Instructions

Add a part/sub-assembly to an assembly.

Without constraints the component is packaged (placed but not fully constrained) at transform. transform example: {"origin": {"x": 0, "y": 0, "z": 100}, "z_rot": 90} (rotations in degrees). constraints example (csys is the reliable type): [{"type": "csys", "asmref": "ACS0", "compref": "PRT_CSYS_DEF"}] Other types: align, mate, insert, orient, ... see creoson_describe("file", "assemble").

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": {
      "component": "<component>"
    },
    "name": "asm_add_component"
  }
}

Input Schema

NameRequiredDescriptionDefault
dirnameNo
assemblyNo
componentYes
transformNo
constraintsNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description must carry the behavioral burden, and it does add real context: 'packaged' is defined as placed but not fully constrained, and rotation units are given in degrees. It still omits error behavior (missing component, bad csys reference), whether a duplicate add is rejected, and any permission/working-directory assumptions; the return value is covered by the existing output schema.

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 core action, then examples that earn their place by making the transform and constraints payloads concrete. Slightly dense with the 'Other types: ...' list, but nothing is truly wasteful.

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

Completeness3/5

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

A mutation tool with an output schema and no annotations needs solid input and side-effect coverage; two of five parameters are explained in depth while three are not, and there is no statement of what state the assembly is left in on failure. Adequate but with clear gaps for a write operation.

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 5 parameters, so the description must compensate. It does this well for transform and constraints with concrete JSON examples, but dirname, assembly, and component receive no explanation at all, leaving the agent to guess whether assembly defaults to the active assembly and how dirname relates to component.

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: 'Add a part/sub-assembly to an assembly', which tells an agent exactly what the operation does. It does not differentiate from the sibling asm_assemble, so an agent cannot tell from the description alone which of the two to prefer.

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 description explains the two modes (packaged at transform vs constrained) and routes the agent to creoson_describe('file','assemble') for unsupported constraint types, which is useful implied guidance. However, it never states when to use this tool versus siblings like asm_assemble or asm_list_components, and no prerequisites are given.

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