Skip to main content
Glama
LufiSprite Studio

LufiSprite Studio

by Lufi735

add_3d_primitive

Add cube, sphere, cylinder, cone, torus, plane, or cuboid meshes to a 3D layer with optional size, position, rotation, scale, and hex color for building low-poly scenes.

Instructions

Add a 3D primitive mesh (cube, cuboid, sphere, cylinder, cone, torus, plane) to the project 3D layer with optional dimensions, position, rotation (degrees), scale, and hex color.

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": {
      "kind": "<kind>"
    },
    "name": "add_3d_primitive"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindYes
nameNoDisplay name in 3D hierarchy.
colorNoMaterial hex color e.g. "#f59e0b".
scaleNo
paramsNoOptional geometry parameters: s (cube), w/h/d (cuboid/plane), r/rTop/rBot/h/seg (sphere/cylinder/cone), r/tube (torus).
positionNo
rotationNoEuler XYZ rotation in degrees.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It usefully discloses that rotation is in degrees and color is hex, and that the mesh lands in the 'project 3D layer', but it says nothing about prerequisites (active project, layer existence), failure behavior, or whether the new object is selected or returned.

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?

A single front-loaded sentence that names the resource first and then the optional facets; the kind list is long but earns its place by defining valid values. No filler or redundant preamble.

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?

For a 7-parameter mutation tool with no annotations, no output schema, and a nested params object, the description covers the call shape adequately but omits preconditions (open project / target layer) and any notion of what is returned. It is callable from this definition, but not fully self-sufficient.

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?

Schema description coverage is 57%, and the description reinforces the meaning of rotation (degrees) and color (hex) but largely restates what the schema already documents, including the same units. The nested `params` object, whose per-kind geometry keys (s, w/h/d, r/rTop/rBot/h/seg, r/tube) are the most error-prone part, is left to the schema without added guidance.

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 opens with a specific verb and resource, 'Add a 3D primitive mesh', and enumerates every supported kind (cube, cuboid, sphere, cylinder, cone, torus, plane), so the agent knows exactly what is created. It stops short of distinguishing itself from siblings like import_3d_obj or add_3d_scene_item, but the purpose itself is unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use or when-not-to-use guidance. The agent is not told whether this is the right choice versus import_3d_obj (existing mesh files) or add_3d_scene_item, nor whether a project or 3D viewport must already be open before calling.

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