Skip to main content
Glama

add_tree

Build a procedural tree with Sapling presets, adjustable height, seed, and branch levels; if headless Sapling yields no renderable geometry, it builds a pine fallback so the tree always renders.

Instructions

Procedural tree via the bundled Sapling Tree Gen extension (enabled headless on demand). preset: a Sapling preset name such as "Douglas Fir", "Small Pine", "White Birch" - unknown presets fall back to the generic broadleaf default. height: metres; 0 keeps the preset's natural size. seed: variation. levels: branch recursion (2 fast, 3 normal). Returns the parent EMPTY; the trunk is a bevelled curve and the leaves a mesh, both parented to it, so move/rotate/scale the EMPTY. SELF-CHECK: if Sapling yields no renderable geometry (known on headless 5.3: 0-vert leaf mesh and a bare Curves object), the tool removes it and builds a procedural pine instead - the result always renders. The 'engine' field in the return says which path produced the tree.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "add_tree"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoTree
seedNo
heightNo
leavesNo
levelsNo
presetNo
locationNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the full behavioral burden, and it does so well: it discloses that the Sapling extension is enabled headless on demand, describes a SELF-CHECK fallback that removes broken geometry and builds a pine instead, and notes that the 'engine' field in the return reports which path ran. It doesn't cover permissions or cost, but for a local procedural-generation tool those are minor gaps.

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 core behavior and parameter hints are front-loaded in the first half, and the SELF-CHECK paragraph earns its place by explaining a non-obvious fallback. It is somewhat dense and the second paragraph could be tightened, but there is little filler.

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?

With no output schema and no annotations, the description does the heavy lifting: it explains the returned parent EMPTY, the child trunk/leaf objects, and the engine field. Only the name, leaves, and location parameters are left unexplained, which is a small gap relative to the tool's complexity.

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 0%, so the description must compensate for all seven parameters. It meaningfully explains preset (with example names and the broadleaf fallback), height (metres, 0 = preset natural size), seed (variation) and levels (2 fast / 3 normal), but says nothing about name, leaves, or location, leaving three parameters undocumented in both places.

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?

States a specific verb and resource — it builds a procedural tree via the bundled Sapling Tree Gen extension — and explains the resulting object hierarchy (parent EMPTY with a bevelled-curve trunk and a mesh of leaves). This distinguishes it clearly from generic add_curve or add_primitive siblings, which would not produce a rigged tree.

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?

The description implies when the tool is appropriate (when you want a ready-made procedural tree), but never explicitly names an alternative or states a when-not condition — for example, whether to use add_curve when a plain curve is wanted. Usage is inferable but not guided.

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