Skip to main content
Glama
1C OData MCP

1C OData MCP

Хронология документа (аудит)

read.audit.get_document_history
Read-only

Retrieve provable document time evidence from standard 1C OData: separate accounting date and derived Ref_Key creation timestamp, with confidence, limitations, and read-only audit details.

Instructions

Что можно доказуемо сказать о времени документа по данным стандартного OData. Возвращает раздельно: documentDate (Document.Date — учётная дата, не время действия) и refCreatedAt (метка генерации Ref_Key, выведенная из UUIDv1; confidence=derived — НЕ проверенное время создания/выполнения/проведения). Фактическое время выполнения и последнего изменения через стандартный OData недоступны и не возвращаются. Также: ответственный (реквизит документа, не автор), DataVersion как есть (не интерпретируется), наличие движений в регистре Хозрасчетный (только факт наличия), evidence и limitations. Только чтение. documentEntity — Document_* из list_entities, documentRef — Ref_Key.

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": {
      "documentEntity": "<documentEntity>",
      "documentRef": "<documentRef>"
    },
    "name": "read.audit.get_document_history"
  }
}

Input Schema

NameRequiredDescriptionDefault
databaseNoИмя базы 1С из list_databases. Без указания — база по умолчанию; если баз несколько и неясно какая, спросите пользователя.
documentRefYesRef_Key документа (GUID)
documentEntityYesИмя документа, напр. Document_РегламентнаяОперация

Output Schema

NameRequiredDescriptionDefault
scanYes
databaseYes
documentYes
evidenceYes
timestampsYes
limitationsYes
responsibleNo
accountingMovementsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

A4.4/5.0
Behavior5/5

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

Annotations only declare readOnlyHint and openWorldHint, and the description goes well beyond them: it labels refCreatedAt as UUIDv1-derived with confidence=derived and explicitly not verified creation/posting time, notes DataVersion is returned uninterpreted, clarifies that the responsible party is a document attribute and not the author, and states that register movements are reported only as a presence flag. It also commits to returning evidence and limitations, which is unusually transparent for an audit tool.

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?

Every clause carries real information — no filler — but the content is delivered as one dense paragraph with heavy parenthetical nesting, which makes it harder to scan than the same material split into returns / does-not-return / caveats. Front-loading is good, since the scope statement comes first.

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

Completeness5/5

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

For an audit-oriented read tool with an output schema, annotations, and full schema coverage, the description covers the remaining risk surface: what is provable, what is derived, what is unavailable, and how to obtain valid inputs. Nothing an agent needs in order to call this correctly or to interpret the result is missing.

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 all three parameters are already documented in the schema, including the default-database fallback and the Document_* naming convention. The description's closing restatement of documentEntity and documentRef adds no format or semantic detail beyond the schema, so the baseline of 3 applies.

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?

The description states a precise scope: 'what can provably be said about a document's time from standard OData', then enumerates the exact outputs (documentDate, refCreatedAt) and explicitly names what is not returned (actual execution time, last-modified time). An agent can tell this apart from read.document.get_document because the tool is framed as an evidentiary/audit lens rather than a field reader.

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?

Clear context for use: audit questions about document timing, with the warning that derived timestamps are unverified. It also gives a prerequisite path (documentEntity comes from list_entities, documentRef is the Ref_Key). What it lacks is an explicit pointer to alternatives — e.g. that read.document.get_document should be used when full document attributes rather than timing evidence are needed.

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