Skip to main content
Glama

ProtoJoint

Add a joint

add_joint

Joins two parts with a joint where they stand now - nothing moves. revolute turns the child about the axis (a wheel on its axle, a hinge, a servo's output); slider moves it along the axis (a carriage on a rail); cylindrical does both; ball turns it any way about the point; rigid fixes the two together. at is a world point on the axis in mm and axis its direction: for a wheel, its hub's centre and the axle's direction, from what insert_part returned. limits stop it where the real joint stops, in degrees for revolute and mm for slider, from where it stands now; a revolute joint without limits turns all the way round, as a wheel or a rotor does. The user can then drag each joint to check it, and Export Robot writes a joint of URDF, MJCF and SDF for each.

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": {
      "type": "<type>",
      "child": "<child>",
      "parent": "<parent>"
    },
    "name": "add_joint"
  }
}

Input Schema

NameRequiredDescriptionDefault
atNoA world point on the axis, [x, y, z] mm; for ball its centre. Not needed for rigid.
axisNoThe axis direction [x, y, z]: revolute, slider and cylindrical need it.
nameNoA name for the joint, e.g. left_wheel.
typeYes
childYesThe part that moves, by name.
limitsNoHow far it goes each way from where it stands now (revolute and slider).
parentYesThe part it moves on, by name.
in_partNoPoints and directions in this part's coordinates, as it stands now; default the world.

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 only declare the safety profile (readOnlyHint=false, not idempotent, not destructive); the description adds real behavior beyond that: the current pose is preserved and nothing moves, limits are measured from the current position, and each joint propagates to URDF, MJCF and SDF on export. What it does not cover is duplication semantics (idempotentHint=false) or whether adding a joint requires the parts to already exist.

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?

It is a single dense block front-loaded with the core action and the 'nothing moves' constraint, and every clause carries semantics. The mid-section parenthetical examples are slightly sprawling and semicolon-chained rather than broken into scannable structure, which costs one point.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an 8-parameter creation tool with no output schema, the description covers the joint-type semantics, the geometric interpretation of at/axis/limits, and the downstream effect on export, which is what an agent needs to call it correctly. Only the in_part coordinate-frame parameter and naming conventions go unexplained, and both are documented in the schema.

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?

Schema coverage is 88%, so the baseline is 3; the description earns above it by giving intuitive anchors for hard parameters ('at is a world point on the axis ... for a wheel, its hub's centre and the axle's direction', 'limits ... from where it stands now', degrees vs mm per type). It leaves name, child, parent and in_part essentially to the schema, which is acceptable given the high coverage.

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 first clause states a specific verb and resource ('Joins two parts with a joint') plus the critical scope constraint 'where they stand now - nothing moves', and the description then defines all five joint types the enum exposes. An agent can distinguish this from insert_part or link_joints without opening any 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 implied well rather than stated: 'revolute ... a wheel on its axle, a hinge, a servo's output' gives concrete selection conditions among the type values, and 'from what insert_part returned' hints at the prerequisite workflow. However, it never says when to use add_joint versus siblings such as add_constraints or link_joints, and there are no explicit exclusions.

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