Skip to main content
Glama

send_document

Send a document to a counterparty via Diadoc; the client supplies the detached base64 signature, or omits it for unsigned or sandbox documents.

Instructions

Отправить документ контрагенту. Подпись (base64) формирует клиент; для песочницы шлите без подписи. / Send a document; the client supplies the signature.

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": {
      "from_box_id": "<from_box_id>",
      "to_box_id": "<to_box_id>",
      "type_named_id": "<type_named_id>",
      "content_base64": "<content_base64>"
    },
    "name": "send_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
file_nameNoИмя файла (сохраняется в метаданных)
to_box_idYesИдентификатор ящика-получателя (ToBoxId)
from_box_idYesИдентификатор ящика-отправителя (FromBoxId)
type_named_idYesТип документа Diadoc (TypeNamedId), напр. 'Nonformalized', 'UniversalTransferDocument'
content_base64YesСодержимое документа в base64
signature_base64NoОткрепленная подпись (base64). Опустите для неподписанных/неформализованных документов. Diadoc сам подпись НЕ создаёт — её формирует клиент (КриптоПро/CAdES).
need_recipient_signatureNoТребуется ответная подпись получателя (NeedRecipientSignature)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden and does disclose real behavior: the signature is produced client-side and Diadoc does not create one, plus the sandbox exception. However, it says nothing about irreversibility of the send, required permissions/auth, or what happens when submission fails — important for a mutation tool with zero annotation coverage.

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, front-loaded with the action. The full Russian/English duplication doubles length without adding information, which slightly weakens economy but keeps it easily scannable.

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?

For a 7-parameter mutation tool with no output schema, the description omits what the call returns (e.g., a document ID) and how signing status is conveyed. Parameters themselves are fully covered by the schema, so the gap is confined to return behavior and preconditions.

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 every parameter is already documented, including the note that Diadoc does not generate signatures. The description's only added semantic is the sandbox case for omitting the signature, which is marginal beyond the schema baseline of 3.

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 states a concrete verb and resource — send a document to a counterparty — which is unambiguous on its own. It does not contrast with the sibling sign_document or explain the relationship between sending and signing, so an agent must infer the boundary between the two.

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?

There is one useful conditional: in the sandbox, send without a signature. Beyond that, there is no guidance on when to pick this over sign_document, no prerequisites (must the document be pre-signed? does the box need authentication?), and no exclusions.

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