Skip to main content
Glama

remove

Deletes a specified node and its entire subtree from a screen while protecting the root node from deletion.

Instructions

Remove a node and its subtree. root cannot be removed. Example: {"screen":"checkout","id":"old_note"}.

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": {
      "screen": "<screen>",
      "id": "<id>"
    },
    "name": "remove"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesLowercase identifier matching [a-z][a-z0-9_]{0,31}
screenYesLowercase identifier matching [a-z][a-z0-9_]{0,31}

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior2/5

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

With no annotations, the description carries the full burden. It discloses that the node's subtree is removed and that root is protected, but does not state whether removal is permanent, reversible via undo, or requires special permissions. For a destructive mutation, that is a significant missing behavioral disclosure.

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 description is three tight sentences: purpose first, constraint second, example last. No wasted wording.

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

Completeness3/5

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

For a simple two-parameter tool with full schema coverage, the description covers the core action and a key constraint. However, for a destructive operation with no annotations and no output schema, it should say more about permanence and interaction with siblings such as undo.

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%, so both parameters are already documented by the schema. The description adds a usage example and implies that 'root' is a reserved id, but does not deepen parameter meaning substantially beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/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 node and its subtree'), and adds a scoping constraint ('root cannot be removed'). It is clear what the tool does, though it does not explicitly name a sibling alternative such as delete_screen.

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 constraint that root cannot be removed gives useful usage context, but there is no explicit guidance on when to choose this over siblings like delete_screen, batch, or undo. Usage is implied rather than directed.

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