Skip to main content
Glama

ProtoJoint

Insert a standard part

insert_part

Puts an accurate model of a standard part from ProtoJoint's library into the design as a part of its own, at the sizes of its maker's drawing: a circuit board with its connectors, components and mounting holes, a servo with its horn, a motor with its shaft, a wheel, a linear rail and carriage, drone parts, sensors, a battery - each body named and coloured as it looks. It returns, in world coordinates: every mounting hole (centre, the axis it goes into the part along, diameter, depth, thread, counterbore), each connector and component (box, which way a connector opens - faces - and how far it stands past a board's edge - overhang), the axes its shafts turn or its carriage runs about (a joint goes there), its mounting faces (origin and outward normal), its sensor (type, optical centre or measuring origin, the way it looks and its up, field of view, range), its mass, the space it takes (envelope) and notes. Design the openings, brackets, standoffs and clearances from these numbers, never from memory: insert the part first, then design round it, and check the fit against its bodies. Each part's origin and axes are in its entry below; position puts the origin, orient tips the part (where its own +z and +y point), rotate then turns it about Z; values sizes a part with parameters. Library: raspberry_pi_5 (Raspberry Pi 5): single-board computer, board 85 x 56 x 1.4, four M2.5 holes 58 x 49; origin the lower-left corner of the board underside; feetech_sts3215 (Feetech STS3215): serial-bus servo of the SO-100 / SO-101 arms, case 45.2 x 24.7 x 35; origin on the output axis at the horn face, +z out of the horn, the case toward +x; dynamixel_xl430 (ROBOTIS Dynamixel XL430-W250-T): smart servo, case 28.5 x 46.5 x 34; origin on the output axis at the horn face, +z out of the horn, +y toward the end the axis is near; jga25_370 (JGA25-370 gear motor): DC gear motor 12 V, 1:34 (gearbox Ø25 x 21, can Ø24.4); origin at the gearbox face centre, +z along the 4 mm D shaft; two M3 holes 17 apart; pololu_wheel_80x10 (Pololu wheel 80 x 10 mm): robot wheel Ø80 x 10 with a 4 mm D-shaft insert and clamp plate; origin at the wheel centre on its inner face, +z along the axle away from the motor; pololu_ball_caster_38 (Pololu ball caster 3/8"): ball caster, Ø9.5 steel ball, 10.16 from its mounting face to the ground, two M2 holes 13.46 apart; origin at the centre of its mounting (top) face, +z up, the ball below; nema17_40 (NEMA 17 stepper 40 mm): stepper motor 42.3 x 42.3 x 40 (17HS4401S, 1.8 deg, 1.7 A), Ø5 D shaft 24 long; origin at the front face centre, +z along the shaft; four M3 on 31 x 31; gt2_pulley_20t (GT2 pulley 20T 5 mm bore): GT2 timing pulley, 20 teeth (pitch Ø12.73), 6 mm belt, 5 mm bore, Ø16 x 16; origin at the centre of its hub end, +z along the bore; mgn12_rail (MGN12 linear rail): miniature linear rail 12 x 8 cut to length (values.length, 50 to 2000), M3 counterbored holes every 25; origin at one end on the centre of its underside, +x along it; mgn12h_carriage (MGN12H carriage): linear guide block for the MGN12 rail, 45.4 x 27, its top 13 above the rail's underside; origin on the rail's centre line at its underside, under the middle of the block, +x along the rail; four M3 on 20 x 20; tmotor_v2207 (T-Motor Velox V2207 V2): brushless FPV drone motor 2207 (Ø27.5 x 31.35), M5 prop shaft, four M3 on a 16 circle; origin at the centre of its base (mounting face), +z along the shaft; hqprop_5x43x3 (HQProp 5x4.3x3 propeller): 5 inch three-blade FPV propeller (Ø127, 4.3" pitch), hub Ø13.2 x 7 on a 5 mm bore; values.hand: "ccw" (the default) turns anticlockwise seen from above, "cw" clockwise - a quadcopter takes two of each; origin at the centre of the hub's underside, +z the way it pulls; rplidar_c1 (Slamtec RPLIDAR C1): 360-degree DTOF lidar, 55.6 x 55.6 x 41.3, scan plane 29.8 up, four M2.5 on 43 x 43; origin at the centre of its underside, +z up, +x its 0-degree front (the cable at -x); rpi_camera_3 (Raspberry Pi Camera Module 3): camera board 25 x 23.9 (12 MP, 66 x 41 degrees), lens on +z; origin the lower-left corner of the board underside, its cable connector along the lower edge (y 0); realsense_d435i (Intel RealSense D435i): stereo depth camera with IMU, 90 x 25 x 25; origin on the 1/4-20 tripod hole's axis at the underside, +x the way it looks, +y toward the RGB camera end, +z up; adafruit_bno085 (Adafruit BNO085 IMU): 9-DOF IMU board that fuses its sensors on the chip, 25.4 x 22.9, two STEMMA QT sockets; origin the lower-left corner of the board underside, the chip's x along +x; lipo_3s_2200 (LiPo 3S 2200 mAh): LiPo battery 3S 11.1 V 2200 mAh, 108 x 34 x 21.7, XT60 and balance leads out of the -x end; origin at the centre of its underside.

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": {
      "part": "<part>"
    },
    "name": "insert_part"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoThe part's name (default the part's own).
partYes
underNoPut it on this part, to move with it.
orientNoTips the part: where its own +z and +y point in the world, e.g. {z: '+x'} lays a servo on its side with its output axis along +x, a camera to look along +x. y defaults to +y while z is up or down, else to +z. Leave out to keep the part upright.
rotateNoDegrees about Z after orient: 0, 90, 180 or 270.
valuesNoParameter values of a part that has them, e.g. {"length": 400} for mgn12_rail (its range in its entry), {"hand": "cw"} for a clockwise hqprop_5x43x3.
in_partNoPoints and directions in this part's coordinates, as it stands now; default the world.
positionNoWhere the part's origin goes, [x, y, z] in mm (default the world origin).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations only declare that this is a non-read-only, non-destructive, non-idempotent local write; the description adds a great deal beyond that. It states the result is a body of its own that can be parented to another part via 'under' so it moves with it, and it discloses that the tool returns world-coordinate mounting holes, connector boxes and facing, axes for joints, mounting faces, sensor fields, mass, and envelope. It also documents each part's origin and axis convention, which is exactly the information needed to place and later attach to the inserted body.

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

Conciseness3/5

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

The behavioral and parameter guidance is front-loaded before the catalog, which is the right order. However, the description is dominated by a very long, densely punctuated per-part catalog whose origin/axis facts are essential but would be far more scannable as structured data or resource references; as prose it is difficult to parse quickly.

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?

This is an 8-parameter tool with nested objects and no output schema, and the description compensates by describing the returned quantities in detail. Combined with the per-part origin and axis conventions, an agent has what it needs both to invoke the tool and to consume its result without a documented return type.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 88%, but the description still adds meaning the schema does not: it explains that position places the origin (not the centroid), that orient tips the part by declaring where its own +z and +y point with a worked example of laying a servo on its side, that rotate is a subsequent turn about Z limited to 0/90/180/270, and that values carries per-part sizing (e.g. length for mgn12_rail, hand for the propeller). It also clarifies that in_part defines the frame for points and directions as the part currently stands.

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 opening sentence gives a specific verb and resource: it puts a library model of a standard part into the design as a part of its own, and it enumerates the concrete part species covered (circuit board, servo, motor, wheel, rail, propeller, sensors, battery). That is far more specific than the title. It never explicitly contrasts itself with a sibling such as make_part, so an agent must infer that this is the shortcut for known library parts rather than building geometry.

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?

It gives a clear operational rule: 'insert the part first, then design round it, and check the fit against its bodies,' and warns 'never from memory.' That is a real when-to-use directive for a design workflow. It stops short of naming an alternative tool or stating when-not to use this one, so the routing decision against siblings is left implicit.

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