Skip to main content
Glama

Update a node

update_node

Partially update a node's fields while automatically handling hierarchy validation, role reclassification on type change, and tree path recomputation on parent change.

Instructions

Partial update of a node. Patchable fields: label, type, parent, season, description, tags, metadata, sproutedAt. Type change reclassifies role; parent change recomputes the ltree path automatically. On a grown (past-season) node, only the tree's shape and timeline are locked — parent, season, type and sproutedAt are rejected. Content fields (label, description, metadata, tags) stay editable, so you can keep metadata.implements current when code moves without reopening transplanting. Moving any node into a past season is rejected. Both restrictions lift while the ground is transplanting (project.transplanting=true), so historical structure can be reconstructed (see umtri://rules/transplant). Same protocol validation as create_node — reject on hierarchy violations, warn on soft issues.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesNode id.
slugYesGround slug.
patchYesOnly the fields you want to change.
Behavior5/5

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

With no annotations, the description fully discloses the behavioral implications: type changes reclassify roles, parent changes recompute ltree paths, restrictions on past-season nodes, and the effect of transplanting mode. This is far beyond the simple 'update' implied by the title.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is dense but every sentence adds value: patch semantics, restrictions, exceptions, validation behavior, and a reference for transplant rules. It front-loads the purpose and patchable fields before diving into edge cases.

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?

The description thoroughly covers operation, constraints, exceptional modes, and validation for a complex update tool with no annotations or output schema. It does not describe the return value, but this is not critical given the detailed behavior and no output schema requirement.

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 100%, so parameters are already documented. The description adds meaningful context by explaining the effects of changing specific fields (type, parent, season, sproutedAt) and highlights metadata.implements as a use case, going beyond raw schema definitions.

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?

Description clearly states 'Partial update of a node' and enumerates the exact patchable fields, making the tool's purpose unambiguous. It differentiates from siblings like create_node and delete_node by focusing on modification of an existing node.

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?

The description implies usage by defining what can be patched and provides detailed conditions (grown-node restrictions, transplanting mode, past-season rejection). It references create_node for validation parity, but does not explicitly contrast with other update tools or state when not to use it.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/bepuljang/umtri-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server