Skip to main content
Glama
viewer-mcp

viewer-mcp

by Akhil7199

add_object

Adds a box, sphere, cylinder, cone, or torus to a three.js scene with position, color, and scale controls, up to 50 objects.

Instructions

Add a primitive to the scene. At most 50 objects.

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": {
      "shape": "<shape>"
    },
    "name": "add_object"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNo
colorNoHex color like #ff8800. Convert color names to hex yourself.
scaleNo0.1–10, default 1
shapeYes
positionNo[x, y, z]; each value within ±50. y is up.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.7/5.0
Behavior2/5

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

No annotations exist, so the description carries the full burden. It does add one genuinely useful behavioral fact — the scene is capped at 50 objects — but it never says what happens at that cap, what the call returns (no output schema either, so an id for later update/remove is unknown), or whether defaults are applied.

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?

Two short sentences with the purpose front-loaded and no wasted wording. The second sentence is a fragment ("At most 50 objects.") that is terse to the edge of ambiguity, but there is no filler.

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

Completeness2/5

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

For a five-parameter mutation tool with no annotations and no output schema, the definition leaves the agent without the important facts: what is returned, what occurs at the object limit, and how name/shape are constrained. It is far too thin for the tool's complexity.

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

Parameters2/5

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

Schema coverage is a middling 60%: color, scale, and position carry their own descriptions while name and shape do not. The description contributes nothing about any of the five parameters, so it does not compensate for the uncovered fields or clarify units/ranges.

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?

"Add a primitive to the scene" states a specific verb (add) and a specific resource (primitive in the scene), which implicitly separates it from siblings such as remove_object, update_object, and clear_scene. It stops short of naming any alternative, but the operation 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 guidance, no mention of update_object/clear_scene as alternatives, and no stated prerequisites. The only contextual hint is the capacity ceiling, which is a constraint rather than usage direction.

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