Skip to main content
Glama

tree_set

Create or update a tree node at a specified path, replacing fields and auto-creating intermediate groups; writes return any rule violations on that branch.

Instructions

Create or update the node at path (e.g. 'wardrobe/frame'). Fields given replace those fields; missing intermediates become plain groups. A node: {kind, name, params: {name: {value, unit, provenance, tolerance, source}}, links: {name: [paths]}, meta, payload, children}. Geometry lives in payload: {shape: box {size:[w,d,h]} | prism {polygon, height} | cylinder {diameter, height} | mesh {uri} | union|difference|intersection over children, transform: {translate:[x,y,z] mm, rotate_z_deg}}. Numeric shape args may name a param from any ancestor — so a shape written in terms of its params follows them when they are corrected, and cannot disagree with them. Declare what a kind MEANS with tree_vocabulary.

The write answers with any rule it broke — on the branch itself or on one that contains it. Treat that as the verdict: it is the same thing tree_check would tell you, said at the moment you caused it.

Input Schema

NameRequiredDescriptionDefault
nodeYes
pathYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does well: it discloses partial-update semantics ('Fields given replace those fields'), that missing intermediates become plain groups, and that the write returns rule violations as a verdict. It does not mention permission or auth requirements, a minor gap for a mutation tool.

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?

Purpose is front-loaded and every section (node shape, geometry, param references, validation verdict) earns its place given the nested data model. It is dense and merges several concerns with inline braces, but the length is largely justified by the complexity.

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?

For a nested two-parameter tool with an output schema already covering returns, the description supplies the structural and semantic detail needed to build a valid node. It leaves some fields (meta, payload, links) under-explained relative to geometry, but is broadly complete.

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 0% and the `node` object is a bare additionalProperties map, so the description must compensate — and it does, defining the node shape (kind, name, params, links, meta, payload, children) and the geometry payload formats. The `path` parameter gets only an example, not format rules, keeping it from a 5.

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?

The opening sentence states a specific verb ('Create or update') and resource ('the node at `path`') with a concrete path example, so the agent knows exactly what it does. It also distinguishes from siblings by naming tree_vocabulary for declaring kind meaning and tree_check as the equivalent validation.

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 clear context: create-or-update semantics, use tree_vocabulary to declare a kind's meaning, and that the write's returned rules are equivalent to tree_check. It does not explicitly state when NOT to use it versus other write-ish siblings like tree_app or tree_commit, so it stops short of full alternative routing.

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