Skip to main content
Glama

Delete node

delete_node
DestructiveIdempotent

Remove a generation (node) from a thread, for example a bad take. This is a soft delete: it can be undone with restore_node, and credits already spent are not refunded.

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": {
      "threadId": "<threadId>",
      "nodeId": "<nodeId>"
    },
    "name": "delete_node"
  }
}

Input Schema

NameRequiredDescriptionDefault
nodeIdYesThe node to delete.
threadIdYesThread containing the node.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the annotations (destructiveHint, idempotentHint), the description adds critical behavioral context: it is a soft delete, undoable via restore_node, and credits already spent are not refunded. This tells the agent exactly what the operation destroys and what recovery is possible.

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?

Two sentences with zero waste. The core action and key caveats (soft delete, undo, no refund) are front-loaded and easy to parse.

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 covers the important behavioral nuances for a destructive tool with annotations and no output schema. It could be slightly more complete by mentioning whether child nodes or media are affected, but it is sufficient 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?

Schema coverage is 100%, and both parameters already have descriptions. The description adds only marginal semantics by equating 'node' with 'generation', but does not provide additional syntax, format, or constraints beyond the schema.

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 states a specific verb ('Remove') and resource ('a generation (node) from a thread'), and clarifies the node concept in domain terms. It distinguishes itself from siblings like delete_reference or remove_clips by focusing on generation nodes within a thread.

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 a concrete use case ('for example a bad take') and points to restore_node for undo, which implicitly defines when to use this versus restoring. However, it does not explicitly contrast with other deletion siblings such as delete_reference or remove_clips, leaving some selection ambiguity.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources