Skip to main content
Glama

get_document

Retrieve a specific Diadoc document using box, message, and entity IDs, optionally including document content in the response.

Instructions

Получить конкретный документ по box/message/entity ID. / Get a specific document.

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": {
      "box_id": "<box_id>",
      "message_id": "<message_id>",
      "entity_id": "<entity_id>"
    },
    "name": "get_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
box_idYesИдентификатор ящика (boxId)
entity_idYesИдентификатор сущности документа (entityId)
message_idYesИдентификатор сообщения (messageId)
inject_entity_contentNoВключать содержимое документа в ответ (injectEntityContent, по умолчанию true)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden, but it says nothing about permissions, error behavior when an ID is wrong, or what the response contains. Beyond the schema's inject_entity_content flag, there is no added behavioral context.

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 short sentences with the action front-loaded and no filler. The Russian/English duplication is slightly redundant but harmless.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

This is a simple read tool with full schema coverage and no output schema, but the description omits what the returned document looks like and does not reference inject_entity_content, leaving a modest gap for an agent to reason about the result.

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 documents all four parameters. The description merely echoes the box/message/entity ID lookup and adds no meaning beyond the schema, which is baseline for high coverage.

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?

The description gives a specific verb and resource ("Get a specific document") and identifies the lookup keys (box/message/entity ID), which distinguishes it from list_documents. It does not name a sibling explicitly, so it falls short of a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

There is no explicit statement of when to use this tool versus list_documents or other siblings, and no prerequisites or exclusions. Usage is only implied by the phrase "specific document ... by ID".

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.