Skip to main content
Glama

unanchor_document

Destructive

Removes ONE specific attachment between a document and a block, without deleting the document or its other attachments. A document with no attachment left stays readable (list_documents, without cellId) — it is not deleted automatically.

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>",
      "cellId": "<cellId>"
    },
    "name": "unanchor_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
cellIdYesThe block to detach THIS document from — its other attachments, if any, stay intact. The document itself is never deleted.
documentIdYesIdentifier of the document to detach.
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. Changed3 schema fields changed
    • changedInput schema / properties / cellId / description
      Previous value: -"Le bloc dont détacher CE document — ses autres ancres, s’il en a, restent intactes. Le document lui-même n’est jamais supprimé."New value: +"The block to detach THIS document from — its other attachments, if any, stay intact. The document itself is never deleted."
    • changedInput schema / properties / documentId / description
      Previous value: -"Identifiant du document à détacher."New value: +"Identifier of the document to detach."
    • 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."
  4. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and readOnlyHint=false, so the safety class is known; the description adds real value beyond that by bounding the destruction (only one attachment link, other attachments and the document preserved) and by disclosing the non-obvious behavior that an emptied document is not auto-deleted and remains readable via list_documents without cellId. Remaining gaps are error/idempotency behavior for a non-existent attachment.

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?

Two tight sentences with the destructive scope front-loaded and the survivability caveat second, which is the right ordering for a mutation tool. The parenthetical list_documents reference is slightly compressed but not wasteful.

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 destructive, non-idempotent-looking unlink operation with annotations present, a 100%-covered schema, and no output schema, the description covers what is destroyed, what is preserved, and the post-state of the document. Missing only edge-case behavior (already-detached attachment, permission requirements) that an agent might want before calling.

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 the schema already defines all three parameters, and the description's cellId framing largely restates the existing schema text ('other attachments stay intact'). expectedProjectId, the third parameter and its session-override semantics, is not mentioned in the description at all, so no meaning is added beyond the structured fields. Baseline 3 is appropriate.

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?

States a specific verb ('Removes') and a precisely scoped resource ('ONE specific attachment between a document and a block'), and immediately distinguishes itself from delete_document by clarifying the document itself survives. An agent can tell this apart from anchor_document or delete_document 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 Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It implicitly contrasts with delete_document and points to list_documents (without cellId) for verifying a now-unattached document, which gives useful context. However, it never states an explicit when-to-use rule, never names anchor_document as the inverse operation, and gives no guidance on what happens if the specified attachment does not exist.

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.