Skip to main content
Glama

Lilia Editor

Remove a block

remove_block
DestructiveIdempotent

Delete one block by id. To put it back, give the reply's undo.versionId to restore_version.

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": {
      "documentId": "<documentId>",
      "blockId": "<blockId>"
    },
    "name": "remove_block"
  }
}

Input Schema

NameRequiredDescriptionDefault
blockIdYesThe block id to delete.
documentIdYesThe document id.

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=true and readOnlyHint=false, so the safety profile is covered. The description adds genuinely new behavior: that the call returns an undo.versionId usable for reversal via restore_version, which tells the agent the operation is recoverable and how. It stops short of saying what happens to nested/child blocks.

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 short sentences, zero filler, with the primary action front-loaded and the recovery hint immediately after. Every clause carries information the agent needs.

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?

There is no output schema, so the mention of the reply's undo.versionId usefully fills in part of the return value. For a two-parameter destructive delete with rich annotations, this is nearly complete; only the effect on child blocks or dependent content is left unstated.

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 description coverage is 100%, so both documentId and blockId are already documented in the schema. The description's 'by id' reinforces blockId but adds no format, sourcing, or constraint detail beyond the schema. Baseline 3 applies.

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?

States a specific verb and resource with scope: 'Delete one block by id', which distinguishes it from multi-block operations like reorder_blocks or bulk import and from non-destructive siblings like get_block. It does not explicitly contrast with edit_block, but the single-block delete intent is unambiguous.

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 gives clear context for invocation and, unusually, an explicit recovery path: pass the reply's undo.versionId to restore_version. It doesn't state prerequisites or exclusions (e.g., whether deleting a parent block affects children), so it falls short of full when/when-not guidance.

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