Skip to main content
Glama

move_content_block

Destructive

Moves a content block (contentBlock) from one block to another, KEEPING its id and all its content (no manual retyping needed — that was the blind spot: without this tool, relocating a content block required retyping it by hand in both blocks, an action that has already destroyed a real label in production). sourceCellId===targetCellId is a successful no-op (the content block stays where it is). Exception: if the target block ALREADY carries a content block with that same id (two unrelated content blocks, identical id by coincidence — the content block id is unique per PROJECT, not per block), the moved content block is given a new id so nothing is lost; movedBlockId then reflects the id ACTUALLY persisted, and renamedBlockIds declares it. Any comment thread anchored on this content block (anchor_type='content_block') FOLLOWS the move: its anchor is rewritten to the target block (and to the id actually persisted in case of re-identification), best-effort — a failure on the comments never blocks the move itself.

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": {
      "sourceCellId": "<sourceCellId>",
      "targetCellId": "<targetCellId>",
      "blockId": "<blockId>"
    },
    "name": "move_content_block"
  }
}

Input Schema

NameRequiredDescriptionDefault
blockIdYesID of the content block to move (must exist in sourceCellId).
sourceCellIdYesID of the block that currently CARRIES the content block to move.
targetCellIdYesID of the block that must RECEIVE the content block (at the end of its existing contentBlocks).
expectedProjectIdNoUUID of the project THIS call targets (overrides the session project).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / expectedProjectId / description
      Previous value: -"UUID of the project THIS call targets (overrides the session project). No access: refused, nothing changed."New value: +"UUID of the project THIS call targets (overrides the session project)."
  2. Changed1 schema field changed
    • changedInput schema / properties / expectedProjectId / description
      Previous value: -"UUID of the project targeted by THIS call. ACTUALLY targets this project instead of the session project. Refused without changing anything if access is not granted."New value: +"UUID of the project THIS call targets (overrides the session project). No access: refused, nothing changed."
  3. Changed4 schema fields changed
    • changedInput schema / properties / blockId / description
      Previous value: -"ID du bloc de contenu à déplacer (doit exister dans sourceCellId)."New value: +"ID of the content block to move (must exist in sourceCellId)."
    • changedInput schema / properties / expectedProjectId / description
      Previous value: -"UUID du projet visé par CET appel. Cible RÉELLEMENT ce projet au lieu du projet de session. Refusé sans rien modifier si l'accès n'est pas accordé."New value: +"UUID of the project targeted by THIS call. ACTUALLY targets this project instead of the session project. Refused without changing anything if access is not granted."
    • changedInput schema / properties / sourceCellId / description
      Previous value: -"ID de la cellule qui PORTE actuellement le bloc à déplacer."New value: +"ID of the block that currently CARRIES the content block to move."
    • changedInput schema / properties / targetCellId / description
      Previous value: -"ID de la cellule qui doit RECEVOIR le bloc (à la fin de ses contentBlocks existants)."New value: +"ID of the block that must RECEIVE the content block (at the end of its existing contentBlocks)."
  4. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and readOnlyHint=false, and the description goes well beyond that: id re-identification when the target already carries a block with the same id, the fact that ids are unique per project rather than per block, comment anchors following the move, and best-effort comment failures never blocking the move. This is exactly the kind of consequence-level detail an agent needs before mutating content.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core action and the id/content preservation guarantee are correctly front-loaded, but the narrative asides ("that was the blind spot", "has already destroyed a real label in production") add length without adding decision-relevant information, and the output-field references arrive without any structural signal that they are return values.

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 mutating tool with no output schema, the description does the heavy lifting on side effects and even names the returned fields that change under re-identification, so an agent can interpret the result. It stops short of describing the success response shape for the ordinary (non-renamed) case, leaving the return contract partly implicit.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning: sourceCellId and targetCellId semantics are exercised through the no-op equality case, target insert position (end of existing contentBlocks) is reinforced, and the blockId parameter is qualified by the re-identification rule. The only noise is that movedBlockId and renamedBlockIds are referenced as if they were parameters or documented outputs, which they are not in the supplied 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 first clause gives a specific verb and resource ("Moves a content block from one block to another") and immediately states the defining property that separates it from add/update/delete siblings: the id and all content are preserved. An agent can tell what this tool does and how it differs from update_content_block or delete+add without reading the 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 clearly frames when to use it (relocating a block without retyping) and calls out the degenerate case sourceCellId===targetCellId as a successful no-op, which prevents a wasted or error-handled call. It never names an alternative sibling tool explicitly, so the routing guidance is strong but not fully comparative.

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.