Skip to main content
Glama
danielproxd2

MCP_CAD

by danielproxd2

place_and_mate

Place a component at a target pose, create ordered mates, and verify that the mates hold the intended position, preventing branch flipping in assemblies.

Instructions

Posicionar y matear — pose a component exactly, THEN create its mates.

The branch-safe mating recipe: angle/distance mates are bistable (two solutions; rebuilds can flip to the mirror). Creating each mate while the component already sits at the exact target pose makes the solver capture the intended branch. After the mates, the pose is read back and compared against the request — pose_held=False means a mate pulled the component elsewhere (wrong branch / conflicting mate): fix it, don't trust it.

Args: component_name: Instance name from get_active_assembly_info. origin_mm / rotation_rows: Exact target pose (see move_component). mates: Ordered mate specs, each {"type": "coincident"|"concentric"|"distance"|"angle", "entity1_id": ..., "entity2_id": ..., "component2_name": ..., # the mate partner "align": "ALIGNED"|"ANTIALIGNED", # optional "distance_mm": float, "angle_deg": float} # per type pose_tolerance_mm: Max |Δorigin| per axis for pose_held (default 0.1).

Returns {pose_before, mates, pose_after, pose_held}.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
matesNo
origin_mmYes
rotation_rowsNo
component_nameYes
pose_tolerance_mmNo
Behavior4/5

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

No annotations are provided, so the description bears full responsibility. It explains the bistable nature of angle/distance mates, the risk of rebuilds flipping, and the pose_held check that indicates problems. It does not detail permissions or side effects, but the core behavioral traits are well disclosed.

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 front-loaded with the core purpose and rationale. It is structured with a brief intro, detailed reasoning, argument list, and return value description. Every sentence adds value, though a slight tightening could be achieved.

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?

Given 5 parameters and no output schema, the description covers the purpose, usage rationale, argument details, and return keys. It explains the pose_held concept which is critical for interpreting results. It lacks error handling details but is otherwise comprehensive.

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

Parameters4/5

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

With 0% schema description coverage, the description compensates by explaining each parameter: component_name from get_active_assembly_info, origin_mm/rotation_rows as exact target pose, mates structure with example fields, and pose_tolerance_mm default. It adds meaningful context beyond the schema's type-only definitions.

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 purpose: to pose a component exactly and then create its mates. It distinguishes itself from sibling tools like add_angle_mate or move_component by combining both actions in a specific order, with a rationale about branch-safe mating.

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 the branch-safe mating recipe and why the order matters, providing clear context for when to use this tool. It does not explicitly list alternatives or when not to use, but the context implies it is for precise placement where mate branch stability is critical.

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