Skip to main content
Glama
1C OData MCP

1C OData MCP

Документ целиком

read.document.get_document
Read-only

Retrieves a 1C document by entity set and Ref_Key, returning all fields including tabular sections; use compact=true for named references and no empty values.

Instructions

Возвращает документ по типу и Ref_Key со всеми полями, включая табличные части. Ref_Key берётся из search_documents или истории взаиморасчётов. compact=true — без пустых значений и служебных ключей, с названиями рядом со ссылками (Контрагент_Название, Номенклатура_Название…): так короче и понятнее; без него — сущность 1С как есть.

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": {
      "entitySet": "<entitySet>",
      "ref": "<ref>"
    },
    "name": "read.document.get_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
refYesRef_Key документа (GUID)
compactNotrue — без пустых значений, с названиями рядом со ссылками; по умолчанию — сущность 1С как есть
databaseNoИмя базы 1С из list_databases. Без указания — база по умолчанию; если баз несколько и неясно какая, спросите пользователя.
entitySetYesИмя документа, напр. Document_РеализацияТоваровУслуг

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint and openWorldHint, so safety is covered; the description adds that the full entity including tabular sections is returned unless compact=true, which hints at payload size. It says nothing about behavior for missing refs, permission scope, or large-document cost, leaving the heavier behavioral questions unaddressed.

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?

Front-loaded with the core purpose, then provenance of ref, then the compact flag — a logical order with no filler. The final clause is somewhat long and semicolon-heavy, but every sentence carries information.

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?

With an output schema and full parameter documentation already present, the description only needs to explain intent and the compact mode, which it does. Missing is any note on failure modes or expected payload volume for documents with large tabular sections.

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 baseline is 3, but the description goes beyond it: it names the concrete derived fields produced by compact (Контрагент_Название, Номенклатура_Название…) and states where Ref_Key originates, which the schema does not say. entitySet is illustrated with a real example name in the schema rather than the description.

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+resource: returns a document by type (entitySet) and Ref_Key with all fields including tabular sections. That framing — full-document retrieval versus a list/search — distinguishes it from read.document.search_documents, which the description explicitly cites only as the source of the Ref_Key.

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?

Gives concrete entry points for obtaining the required ref (search_documents or settlement history) and explains the compact trade-off, so an agent knows how to call it and which mode to pick. It stops short of explicit when-not-to-use guidance or how it relates to get_document_postings/get_document_history.

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

Deploy Server

Other Tools