Skip to main content
Glama
danielproxd2

MCP_CAD

by danielproxd2

stack_components

Fully constrain two components in a stacked arrangement by creating three mates in one call. The named faces touch and positions match on the other two axes.

Instructions

Apila dos componentes con restricción completa (3 mates en una llamada).

Un solo mate cara-contra-cara solo bloquea UN eje — los componentes quedan libres en los otros dos. Esta herramienta hace tres mates en una sola llamada: las dos caras nombradas se tocan Y los componentes comparten posición en los otros dos ejes. Uso típico: apilar piezas para fixture de ensamble, montar bocina sobre placa, alinear placas paralelas. [en: Fully constrain two components in a stacked arrangement (3 mates in one call). A single face mate locks only ONE axis — this tool creates three so the components are fully positioned: the named faces touch AND positions match on the other two axes.]

Args: component1_name, component2_name: SW component instance names from get_active_assembly_info. face1_position, face2_position: One of "top", "bottom", "left", "right", "front", "back". MUST be on opposite ends of the same axis (e.g., "top" + "bottom", "left" + "right", "front" + "back"). Same-direction pairs or different-axis pairs raise ValueError.

Example — stack Pieza1-A on top of Pieza1-B (A's bottom touches B's top, same X and Z position): stack_components("Pieza1-A", "bottom", "Pieza1-B", "top")

Returns: Dict with mates list of three Mate dicts in creation order: [touching_faces_mate, perp_axis_1_mate, perp_axis_2_mate].

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
face1_positionYes
face2_positionYes
component1_nameYes
component2_nameYes
Behavior4/5

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

With no annotations, the description discloses that the tool creates three mates, requires opposite face positions on the same axis, and raises ValueError for invalid pairs. It also notes that a single face mate only locks one axis. Missing details like whether previous mates are affected or if the operation can be undone as a group.

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 well-structured with purpose, explanation, parameter descriptions, example, and return value. It is front-loaded with the key purpose. However, the bilingual text (Spanish and English) makes it slightly verbose than necessary.

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?

No output schema, but the description details the return (Dict with mates list in order). It covers all parameters, includes an example, and explains the behavioral constraints. For a 4-parameter tool with no annotations, this is very complete.

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 coverage is 0%, so the description compensates fully. It specifies that component names come from get_active_assembly_info, and face positions must be from a set of six directions and required to be on opposite ends of the same axis, with an example.

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 description clearly states the tool's goal: 'Fully constrain two components in a stacked arrangement (3 mates in one call).' It specifies the resource (components) and action (stack/full constraint), and distinguishes from single face mate tools like add_mate_by_face_position.

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 description explains when to use the tool (for full constraint in stacking) and contrasts with a single face mate that only locks one axis. It provides typical use cases and an example. However, it does not explicitly state when NOT to use it, such as when a distance mate is needed.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/danielproxd2/solidworks-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server