Skip to main content
Glama
Fusion360 MCP Server

Fusion360 MCP Server

by shinobi81

Add Sketch Constraint

add_constraint

Apply geometric constraints such as coincident, parallel, perpendicular, tangent, or fix to entities in the active sketch by index, controlling relationships and defining geometry precisely.

Instructions

Add a geometric constraint in the active sketch. Entities are referenced by index within the sketch.

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": {
      "constraint_type": "<constraint_type>"
    },
    "name": "add_constraint"
  }
}

Input Schema

NameRequiredDescriptionDefault
entity_oneNoIndex of the first entity: a sketch POINT for midpoint, a curve for every other type
entity_twoNoIndex of the second sketch entity (not needed for fix/horizontal/vertical)
sketch_nameNoSketch name (default: most recent)
symmetry_lineNoIndex of the symmetry line (only for symmetry constraint)
constraint_typeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.10.0
    • addedInput schema / additionalProperties
      Added value: +false
  2. Changed1 schema field changedv0.7.2
    • changedInput schema / properties / entity_one / description
      Previous value: -"Index of the first sketch entity"New value: +"Index of the first entity: a sketch POINT for midpoint, a curve for every other type"
  3. First observedv0.4.1

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, idempotentHint=false, and destructiveHint=false, so the mutation profile is covered. The description adds a genuinely useful convention — entities are addressed by index within the sketch — but says nothing about failure modes such as invalid indices, over-constraining, or conflicting constraints, which are the real behavioral risks for this operation.

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?

Two short sentences with no filler, and the primary action is front-loaded before the secondary indexing convention. Nothing here is wasted, though the second sentence could have carried more information at the same length.

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?

For a 5-parameter mutation tool with annotations but no output schema, the definition covers what the tool does and how entities are referenced. It omits what the agent most needs before calling: whether invalid indices cause an error, whether the constraint type must match entity kinds, and what result is returned.

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 80% and the schema already explains entity_one, entity_two, symmetry_line, and the sketch_name default, including the enum of constraint types. The description's indexing note reinforces but does not extend the schema, so the baseline of 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?

The description states a specific verb and resource ('Add a geometric constraint') plus scope ('in the active sketch'), so the agent knows exactly what the tool does. It does not distinguish itself from siblings like auto_constrain or add_dimension, which is the only missing piece.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no explicit guidance on when to use this tool versus auto_constrain or add_dimension, and no stated prerequisites beyond the ambient 'active sketch' context. The agent must infer that this is the manual, one-constraint-at-a-time counterpart to bulk constraint tools.

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