Skip to main content
Glama

ProtoJoint

Pin, place or give a material to a part

set_part

Sets what a part is. pinned: fixed to the world, so it does not move; Export Robot takes it as the robot's root link, so pin the base or the chassis and nothing else. A part inside another part - one of an imported assembly - is pinned together with the parts it is in; a part that get_document gives as fixed_to_parent is only held to the part above it, and is not pinned. under: the part it rides on and moves with - a motor, a board or a battery fixed to a chassis goes under the chassis; null frees it. material: what it is made of, for its mass and inertia - a library part has its own; give your printed parts theirs (pla, petg, abs, nylon) and machined ones al6061 or steel. mass_g: the part's mass in grams, as its maker gives it - for a bought part that is not in the library, such as a board or a battery modelled as a block: it then weighs that, whatever its bodies are made of (a library part has its maker's already); null or 0 clears it, and its bodies' volume and material weigh it again. name: a new name.

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": "set_part"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNo
partYesA part by its name in get_document (components).
underNoThe part to ride on, or null for none.
infillNoA 3D-printed part's infill in percent, 20 for 20 %: its walls, top and bottom weigh as solid, the inside at this (the robot export and mass_properties use it). For a part in pla, petg, abs, nylon or pc. null or 100: solid.
mass_gNoThe part's mass in grams, from its maker; null or 0 clears it.
pinnedNo
materialNoA material: pla, petg, abs, nylon, pc, acrylic, rubber, al6061, al7075, steel, stainless, brass, copper, titanium, plywood, oak, pine or glass.
print_upNoA printed part's way up: the direction of the design, as it stands, that points up from the bed when the part is printed. Its pins and thin tabs are then checked against the layers (print_check in the answer, get_document's problems). null clears it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / print_up
      Added value: +{
      +  "anyOf": [
      +    {
      +      "enum": [
      +        "+x",
      +        "-x",
      +        "+y",
      +        "-y",
      +        "+z",
      +        "-z"
      +      ],
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "A printed part's way up: the direction of the design, as it stands, that points up from the bed when the part is printed. Its pins and thin tabs are then checked against the layers (print_check in the answer, get_document's problems). null clears it."
      +}
  2. Changed1 schema field changed
    • addedInput schema / properties / infill
      Added value: +{
      +  "anyOf": [
      +    {
      +      "maximum": 100,
      +      "minimum": 0,
      +      "type": "number"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "A 3D-printed part's infill in percent, 20 for 20 %: its walls, top and bottom weigh as solid, the inside at this (the robot export and mass_properties use it). For a part in pla, petg, abs, nylon or pc. null or 100: solid."
      +}
  3. Changed1 schema field changed
    • addedInput schema / properties / mass_g
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "number"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "The part's mass in grams, from its maker; null or 0 clears it."
      +}
  4. First observed

TDQS

A4/5.0
Behavior4/5

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

Beyond the annotations, the description explains important behavioral effects: pinned parts are fixed to the world and become the robot root link in Export Robot, assembly parts are pinned with their container, under controls what a part moves with, and mass_g overrides body-derived mass. It does not cover all parameters, but it adds substantial behavioral context.

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?

The description is dense but front-loaded and organized around parameter names. Most sentences earn their place by explaining non-obvious behavior, though the single long paragraph makes it slightly harder to scan than a segmented structure would.

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?

Given eight parameters, no output schema, and existing annotations, the description covers the most important mutation semantics and special cases. It omits infill and print_up, but those are documented in the input schema, so the definition remains complete enough to invoke correctly.

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 75%, and the description adds meaningful semantics for pinned, under, material, mass_g, and name, including special cases like fixed_to_parent and non-library bought parts. It does not explain infill or print_up, relying on the schema for those, but overall it adds strong meaning beyond the schema.

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 description states a specific operation: setting a part's pinned state, parent/placement, material, mass, and name. It is clear what the tool does, though the opening phrase 'Sets what a part is' is broad and it does not explicitly distinguish the tool from siblings such as set_body or make_part.

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 concrete usage guidance for key parameters: pin only the base/chassis, use under for parts that ride on another part, set material for printed/machined parts, and use mass_g for bought non-library parts. It lacks explicit when-to-use-this-vs-alternative guidance, so it is strong but not complete.

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