Skip to main content
Glama

Lilia Editor

Reorder blocks

reorder_blocks
Idempotent

Put the document's blocks in this exact order (every block id, from get_outline).

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>",
      "blockIds": "<blockIds>"
    },
    "name": "reorder_blocks"
  }
}

Input Schema

NameRequiredDescriptionDefault
blockIdsYesAll block ids in the new order.
documentIdYesThe document id.

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnly=false, idempotent=true, destructive=false, and closed-world, so safety is largely covered. The description adds the meaningful constraint that the input is a complete replacement list ('every block id'), but it does not say what happens with unknown, duplicate, or missing ids.

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?

A single short sentence that front-loads the action, with a parenthetical that earns its place by naming the id source. Nothing is redundant.

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?

For a two-parameter tool with full schema coverage and rich annotations, the definition covers purpose, input source, and the all-ids requirement. Only failure behavior for malformed or partial id lists 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 coverage is 100%, so both documentId and blockIds are already documented, including 'All block ids in the new order'. The description reinforces completeness and points to get_outline as the source, but adds no format or error semantics 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 names a specific verb ('Put ... in this exact order') and resource ('the document's blocks'), and the parenthetical identifies where the ids come from (get_outline). An agent can distinguish this from edit_block, add_block, and remove_block without opening any schema.

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 clear usage context: fetch ids via get_outline and supply every block id, which implicitly rules out partial reorders. There is no explicit when-not guidance or mention of alternatives, but the prerequisite is stated precisely.

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