Skip to main content
Glama

ProtoJoint

Draw in a sketch

add_geometry

Adds curves to a sketch in its own coordinates (mm). Rectangles, polygons and slots come with their usual constraints (corners joined, sides horizontal / vertical). Returns the new entity ids per item, the degrees of freedom left, and the closed profiles to extrude.

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>",
      "items": "<items>"
    },
    "name": "add_geometry"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemsYes
sketch_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / items / items / properties / end / description
      Previous value: -"line / slot: end [u, v]"New value: +"line: end [u, v]; slot: the centre of the other round end"
    • changedInput schema / properties / items / items / properties / start / description
      Previous value: -"line / slot: start [u, v]"New value: +"line: start [u, v]; slot: the centre of one round end"
    • changedInput schema / properties / items / items / properties / width / description
      Previous value: -"center_rectangle: size along u, or slot: its width"New value: +"center_rectangle: size along u, or slot: its width (its length overall is the centres apart plus this)"
  2. First observed

TDQS

A4/5.0
Behavior4/5

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

Goes meaningfully beyond the annotations by disclosing a non-obvious side effect: rectangles, polygons and slots arrive pre-constrained (corners joined, sides horizontal/vertical), so the agent knows these are not free-floating curves and that extra constraints may be redundant. It also states what the call returns (entity ids per item, remaining degrees of freedom, closed profiles). It does not say whether a batch is atomic when one item fails, which matters for a non-idempotent mutation.

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?

Three sentences, front-loaded with what the tool does and in what coordinate system, then constraints, then return values. No filler or restatement of the title.

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?

With no output schema, the description compensates by enumerating the three things returned, and it covers the units and implicit-constraint behaviour an agent needs. The gap is batch failure semantics for a mutation taking up to 100 items: it never says whether a partial failure rolls back or leaves earlier items in the sketch.

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?

The item-level schema is richly self-documenting (positions, angles, per-type fields), so the schema carries most of the parameter burden. The description adds the coordinate frame and mm units, which the top-level schema omits, but leaves 'sketch_id' and the batch 'items' container entirely to the schema, including the 100-item cap.

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 curves to a sketch'), pins the coordinate frame and units ('its own coordinates (mm)'), and names the family of entity types it accepts. An agent can tell this apart from create_sketch or edit_feature without opening a schema.

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?

Usage is only implied: the description establishes that geometry is added inside an existing sketch and that resulting closed profiles are what you extrude next, which hints at the workflow order. It never states when to prefer this over edit_feature, add_constraints or create_sketch, and gives no exclusions or prerequisites.

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