Skip to main content
Glama

anchor_document

Adds an ADDITIONAL attachment between a document and a block — without touching the document's existing attachments or those of the block. A document's single attachment (the common case) is REPLACED with update_document({cellId}); anchor_document is for when a document must appear on SEVERAL blocks at once.

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": "anchor_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
cellIdYesThe block to attach THIS document to, IN ADDITION to its existing attachments — not a replacement. A document's single attachment is REPLACED with update_document({cellId}).
documentIdYesIdentifier of the document to attach (obtained via list_documents/create_document).
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 auquel ancrer CE document, EN PLUS de ses ancres existantes — jamais un remplacement. L’ancre unique d’un document se REMPLACE par update_document({cellId})."New value: +"The block to attach THIS document to, IN ADDITION to its existing attachments — not a replacement. A document's single attachment is REPLACED with update_document({cellId})."
    • changedInput schema / properties / documentId / description
      Previous value: -"Identifiant du document à ancrer (obtenu via list_documents/create_document)."New value: +"Identifier of the document to attach (obtained via list_documents/create_document)."
    • 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. Changed1 schema field changed
    • changedInput schema / properties / cellId / description
      Previous value: -"Le bloc auquel ancrer CE document, EN PLUS de ses ancres existantes — jamais un remplacement. Pour REMPLACER l’ancre unique d’un document, préfère update_document({cellId})."New value: +"Le bloc auquel ancrer CE document, EN PLUS de ses ancres existantes — jamais un remplacement. L’ancre unique d’un document se REMPLACE par update_document({cellId})."
  5. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false and destructiveHint=false, so the description's job is to say what the mutation touches: it explicitly promises it will not modify the document's existing attachments or the block's. That is genuinely useful beyond the annotations. It stops short of stating idempotency (what happens if the pair already exists) or error behavior, which keeps it out of the top score.

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 sentences, front-loaded with the defining behavior, then the alternative and its condition. Capitalized emphasis on ADDITIONAL, REPLACED and SEVERAL carries the core distinctions without extra prose.

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 three-parameter mutation tool with no output schema, the description covers what changes, what is preserved, and how it differs from the replacement path. The only real gap is duplicate-anchor behavior and return/confirmation semantics, which is minor here.

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 cellId's additive-versus-replacement meaning is already documented in the schema and the description largely restates it. expectedProjectId (session override) is never mentioned in the description but is fully covered by the schema. 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 ('Adds an ADDITIONAL attachment') and the two resources it joins (document and block), then explicitly contrasts itself with update_document. An agent can distinguish it from update_document and unanchor_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 Guidelines5/5

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

Gives an explicit decision rule: use update_document({cellId}) for the common single-attachment case, and anchor_document only 'when a document must appear on SEVERAL blocks at once.' The when-not condition is as clear as the when, and the named alternative is precisely the sibling that would otherwise be confused.

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.