Skip to main content
Glama

ProtoJoint

Constrain and dimension

add_constraints

Adds geometric constraints and dimensions to a sketch. Geometric: coincident, horizontal, vertical, parallel, perpendicular, equal, tangent, concentric, midpoint, collinear, symmetric (two points or curves and a line), fix. Dimensions (value in mm, or degrees for angle): distance, horizontal_distance, vertical_distance, length, radius, diameter, angle. A dimension becomes a named parameter (d1, d2...). Redundant or conflicting ones are refused and reported.

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": {
      "sketch_id": "<sketch_id>",
      "constraints": "<constraints>"
    },
    "name": "add_constraints"
  }
}

Input Schema

NameRequiredDescriptionDefault
sketch_idYes
constraintsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare this as a non-read-only, non-idempotent, non-destructive mutation. The description adds real behavioral detail beyond that: dimensions become named parameters (d1, d2...), and redundant or conflicting constraints are refused and reported — both non-obvious outcomes. It stays silent on whether a failed constraint in a batch aborts the rest or which ones were applied.

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?

Front-loaded with the action and scope, then a compact enumeration of types and one sentence on parameter naming and failure behavior. The type list is long but each token is load-bearing for an agent choosing a constraint; little waste overall.

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?

A batch mutation tool (up to 100 constraints) with no output schema and no annotations covering semantics, so the description carries more burden than it discharges. It never says whether the call is atomic, what the reported refusal looks like, or how to reference newly created named parameters — meaningful gaps for a modeling workflow.

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 has no coverage for the top-level required parameters (sketch_id, constraints), so the description must compensate, and it does: it explains that dimension values are mm or degrees for angle, and that a dimension produces a named parameter. Nested fields carry inline schema descriptions, so the remaining gap is the batch size limit and sketch_id, both minor.

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?

States a specific verb and resource ('Adds geometric constraints and dimensions to a sketch') and then enumerates the exact accepted constraint and dimension types, which lets an agent distinguish this from add_geometry without opening the schema.

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?

Implicit usage context is strong: entity ids come from add_geometry/get_sketch, and 'symmetric (two points or curves and a line)' signals the required reference shape. It also warns that redundant or conflicting constraints are refused. It does not explicitly state ordering prerequisites (e.g., must a sketch exist first) or when to prefer editing an existing constraint over adding one.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources