Skip to main content
Glama

catia_sketch_constraint

Apply dimensional or geometric constraints to CATIA sketch elements, referencing points like start, end, or center. Supports distance, angle, tangency, parallelism, and more.

Instructions

Add a constraint to the current sketch. Dimensional kinds (distance, length, radius, diameter, angle) take a value; geometric kinds (horizontal, vertical, parallel, perpendicular, tangent, coincidence, concentric, symmetry) do not. Element names come from catia_sketch_geometry; append '.start', '.end' or '.center' to reference a point of an element.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
kindYesOne of: horizontal, vertical, radius, diameter, length, distance, angle, parallel, perpendicular, tangent, coincidence, concentric, symmetry.
valueNoDimension value: mm for lengths, degrees for angles.
sketchNoTarget sketch.
elementsYesSketch element names, e.g. ['Line.1'] or ['Line.1','Line.3'] or ['Line.1.start','Circle.1.center'].
reference_onlyNoCreate a driven (measured) dimension instead of a driving one.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

A4/5.0
Behavior3/5

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

Annotations already indicate readOnlyHint=false, destructiveHint=false, idempotentHint=false, and openWorldHint=false, so the description's statement of adding a constraint is consistent. The description adds the context of 'current sketch' and the distinction between dimensional and geometric constraints, but it does not disclose potential side effects, failure modes, or reversibility beyond what the annotations imply. It provides minimal additional behavioral transparency.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is two concise sentences. The first sentence states the primary purpose, and the second provides critical details about parameter usage and element referencing. There is no filler, and the most important information is front-loaded.

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?

The description covers the key aspects of using the tool: how to specify constraint kinds, when a value is needed, and how to reference element points. It implicitly assumes an active sketch. The 'sketch' parameter and 'reference_only' are documented in the schema, so they don't need repeating. However, it does not explicitly mention prerequisites like having geometry created first or that the tool will fail if constraints conflict, but these are minor gaps given the schema coverage.

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?

The schema already documents all parameters with descriptions, including the 'kind' enum and examples for 'elements'. The description adds value by explicitly explaining which kinds require a 'value' and how to reference points via '.start', '.end', or '.center' suffixes. This goes beyond the schema's generic examples and helps an agent construct correct arguments.

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 action ('Add a constraint') and the resource ('to the current sketch'). It differentiates between dimensional and geometric kinds, which is a specific behavior that distinguishes it from other constraint tools like assembly constraints. The purpose is unambiguous.

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 implies usage in the context of sketch geometry and mentions that element names come from catia_sketch_geometry, but it does not explicitly state when to use this tool over alternatives like catia_assembly_constraint or when not to use it. It lacks explicit exclusions or conditions, but the context is clear enough for an agent to infer the primary use case.

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