Skip to main content
Glama

Soft-delete a node

delete_node

Deletes a node while preventing accidental cascades: refuses if it has active descendants, unless transplanting mode allows a hard delete.

Instructions

Sets removed_at on the node. By policy this tool rejects deletion if the node has any active descendant — delete children explicitly first to avoid accidental cascades. (The underlying REST API would cascade; the MCP layer guards against silent loss.) EXCEPTION — while the ground is transplanting (project.transplanting=true), the active-descendant guard is lifted (subtree cascade allowed) and you may pass hard=true to permanently remove import mistakes, including grown (past-season) nodes. Once the human roots the ground, normal guards return.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesNode id.
hardNoPermanently delete (incl. descendants via FK cascade) instead of soft-delete. Only honored while the ground is transplanting; irreversible — use for import cleanup.
slugYesGround slug.
Behavior5/5

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

With no annotations provided, the description fully carries the burden of behavioral disclosure. It reveals that the underlying REST API would cascade but the MCP layer guards against silent loss, explains that hard=true is irreversible, and outlines the specific condition (project.transplanting=true) under which the guard is lifted — all crucial behavioral traits.

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 front-loaded with the core action, then efficiently covers the policy, the rationale, and the exception in a logical sequence. Each sentence adds essential information—no fluff or redundancy—and the use of parentheses and an EXCEPTION marker makes the structure easy to parse.

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

Completeness5/5

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

Despite lacking an output schema and annotations, the description is remarkably complete for the tool's complexity. It covers the primary soft-delete behavior, the safety guard, the underlying cascade risk, the transplanting exception, and the irreversible hard-delete option. Nothing critical is missing for an agent to invoke it correctly.

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?

The schema already provides 100% parameter coverage, including a detailed description for the 'hard' parameter that states it is permanent, only honored during transplanting, and irreversible. The main description adds contextual policy around the guard but does not introduce new parameter-level meaning beyond what the schema already offers, so a baseline 3 is appropriate.

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 description opens with 'Sets removed_at on the node' which precisely and concretely defines the tool as a soft-delete operation. It distinguishes itself from sibling tools like delete_edge, delete_api, and delete_bug by targeting a node specifically, and the title reinforces this.

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

Usage Guidelines5/5

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

The description gives explicit when-to-use and when-not-to-use guidance: it states that deletion is rejected if the node has active descendants and instructs to 'delete children explicitly first'. It also details the transplanting exception where the guard is lifted and hard=true becomes available, covering both normal and exceptional usage scenarios.

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