Skip to main content
Glama

sw_insert_component

Inserts a saved part or sub-assembly into the active SolidWorks assembly, with optional placement, fixed positioning, and configuration selection.

Instructions

Insert a saved part or sub-assembly into the active assembly.

Input Schema

NameRequiredDescriptionDefault
docNoDocument title or path. Defaults to the active document.
pathYesFull path of a saved .sldprt or .sldasm.
fixedNoFix it in place (usually the first component).
positionNoWhere to place it; defaults to the origin.
configurationNoUse this configuration of the component.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.1/5.0
Behavior2/5

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

Annotations already declare this a non-read-only, non-destructive mutation, so the description need only add context. It adds almost none: nothing about what happens if the active document is a part rather than an assembly, whether the source file is referenced/linked versus copied, or whether the operation is reversible via sw_undo.

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 zero redundancy. It is efficient, though arguably undersized rather than oversized for a five-parameter mutation tool.

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?

No output schema exists, so the description should carry more of the burden. For a mutation tool with five parameters and only generic annotations, it omits the active-document precondition, error behavior, and the result of the operation (e.g., a new component entry visible via sw_list_components).

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 coverage is 100%, with all five parameters fully documented in the input schema (path, doc, fixed, position in model mm, configuration). The description adds no clarification or constraints beyond that schema, so the baseline 3 applies.

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?

Names a specific verb ('Insert') and a specific resource ('saved part or sub-assembly') plus the target ('active assembly'), which is far more precise than the bare tool name. It stops short of differentiating from the closest sibling, sw_insert_fastener, which also inserts a component-like object.

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 phrase 'into the active assembly' implies the prerequisite that an assembly document must be active, but the description never states when to choose this over sw_insert_fastener, sw_new_document, or sw_open, nor any exclusions or failure conditions.

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

Deploy Server

Other Tools