Skip to main content
Glama
1C OData MCP

1C OData MCP

Создать счёт-фактуру полученный

write.purchase.create_received_invoice

Creates an unposted received invoice from a goods/services receipt, inheriting details and requiring the seller invoice date. Preview with dry-run, then confirm to record it.

Instructions

Создаёт «Счёт-фактура полученный» НА ОСНОВАНИИ поступления товаров и услуг. Реквизиты наследуются от основания; дату входящего счёта-фактуры продавца указывают вручную (в поступлении её нет). НЕПРОВЕДЁННЫЙ; провести — post_document. dry-run/confirm.

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": {
      "baseDocumentRef": "<baseDocumentRef>"
    },
    "name": "write.purchase.create_received_invoice"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateNoДата регистрации YYYY-MM-DD (по умолчанию — момент предпросмотра)
confirmNofalse (по умолчанию) — только предпросмотр (dry-run), запись НЕ выполняется. true — выполнить создание. Сначала всегда показывайте dry-run и получайте согласие пользователя; при подтверждении передавайте operationId из результата предпросмотра и те же аргументы. После таймаута повторяйте подтверждение с тем же id, не создавая новый предпросмотр.
databaseNoИмя базы 1С из list_databases. Без указания — база по умолчанию; если баз несколько и неясно какая, спросите пользователя.
operationIdNoUUID из предпросмотра. Передайте его при confirm=true, чтобы повтор не создал дубликат.
incomingDateNoДата входящего счёта-фактуры продавца YYYY-MM-DD
operationCodeNoКод вида операции (по умолчанию 01)
incomingNumberNoУправление торговлей, обязательно: номер счёта-фактуры поставщика
responsibleRefNoОтветственный документа — Ref_Key пользователя 1С (read.catalog.list_users): ставится в «Ответственный» или, где его нет (продажи и закупки УТ), в «Менеджер». Помеченный, недействительный и служебный — отказ; у документов без обоих полей (ПКО, РКО и заявка на расходование УТ) — отказ. Заменяет ответственного из fields
baseDocumentRefYesRef_Key документа-основания (поступление товаров и услуг)
baseDocumentEntityNoИмя набора документа-основания, если это не «Поступление…»

Output Schema

NameRequiredDescriptionDefault
refNo
codeNo
noteNo
notesNo
dryRunNo
createdNo
payloadNo
retriedNo
warningNo
databaseNo
replayedNo
entitySetNo
reconciledNo
willCreateNo
descriptionNo
operationIdNo
deletionMarkNo
writableBaseNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations only declare it as a non-read-only, non-destructive, open-world write. The description adds genuinely new behavior: the result is left unposted, fields are inherited from the base document, and the seller invoice date cannot be inherited so it must be supplied. It does not discuss failure modes for an unsuitable base document, but the key post-conditions are disclosed.

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?

Three compact sentences, front-loaded with the creation semantics followed by the non-posted status and the dry-run/confirm rule. No filler and no repetition of the title.

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, full parameter coverage and annotations present, the description covers what an agent needs: the required base document, the unposted outcome, the posting follow-up and the preview-confirm cycle. Minor gap: no mention of what happens when the base document type is incompatible or when required supplier invoice number is missing in УТ configurations.

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 would be 3; the description earns extra by explaining why incomingDate must be manually provided (it is absent in the receipt) and that inherited requisites come from the base document. It does not elaborate on operationCode or baseDocumentEntity beyond the schema, so it is not fully additive.

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 and resource (creates a received invoice) and, crucially, the basis document it must be derived from (goods/services receipt), which separates it from the receipt-creation sibling create_purchase and from the invoicing siblings. The inherited-requisites rule and the manually entered incoming date further pin down what this tool produces.

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 clear operational guidance: the document is created unposted and post_document must be called to post it, plus the dry-run/confirm protocol. It does not explicitly state when to prefer this over write.purchase.create_supplier_invoice, but the 'on the basis of a receipt' condition is discriminative enough in practice.

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