Skip to main content
Glama
1C OData MCP

1C OData MCP

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

write.sales.create_issued_invoice

Creates an issued invoice from a sales or shipment document, inheriting organization, counterparty, contract, amounts, and VAT. The invoice is unposted and supports dry-run confirmation.

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.sales.create_issued_invoice"
  }
}

Input Schema

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

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/5.0
Behavior4/5

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

Annotations only declare write, non-destructive, open-world; the description adds the meaningful behavioral facts that the created document is left UNPOSTED, that field values are inherited from the base document, and that a dry-run/confirm cycle applies. These are exactly the mutation-state details the annotations cannot convey. It does not cover duplicate handling or failure modes beyond the confirm flow.

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 short sentences, front-loaded with the resource and its origin, then document state, then the confirm protocol. No filler; every clause carries information an agent needs before calling.

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 a complete input schema, an output schema, and annotations present, the description supplies the remaining essentials: required base document, inherited fields, unposted state, and the next action. The omission of what happens when the base document is already invoiced is a minor gap given the rich schema.

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 nine parameters, including confirm/operationId semantics and responsibleRef override rules, are already documented in the schema. The description's inheritance statement implicitly explains why most parameters are optional, but it adds no parameter-level detail beyond that. Baseline 3 applies.

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 (creates an issued invoice) and adds the crucial qualifier that it is generated from a base shipment document, with details inherited rather than supplied. It also states the resulting document is unposted, which distinguishes the outcome from a posted document. Only gap: it never contrasts with the sibling write.sales.create_invoice, so an agent must infer the difference between an issued invoice and a plain invoice.

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?

It gives a clear trigger (must be based on a realization or other shipment document) and an explicit next step for the adjacent task: post via post_document. The dry-run/confirm protocol is also called out. It stops short of saying when to prefer this over sibling creation tools or what to do when no base document exists.

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