Skip to main content
Glama
1C OData MCP

1C OData MCP

Создать акт об оказании услуг

write.sales.create_services_act

Creates an unposted 1C act for production services, requiring a nomenclature group and line items, with dry-run preview and confirmation before saving.

Instructions

Создаёт «Акт об оказании производственных услуг» (услуги с учётом доходов/расходов по номенклатурной группе). Отличается от create_act тем, что требует номенклатурную группу (субконто счёта 90.01) — она НЕ угадывается. Проводки Дт 62 Кт 90.01, НДС 90.03 (счёт расчётов — по настройке договора, источник виден в предпросмотре). НЕПРОВЕДЁННЫЙ; провести — 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": {
      "counterpartyRef": "<counterpartyRef>",
      "nomenclatureGroupRef": "<nomenclatureGroupRef>",
      "lines": "<lines>"
    },
    "name": "write.sales.create_services_act"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateNoДата YYYY-MM-DD (по умолчанию — момент предпросмотра)
linesYesПозиции-услуги
confirmNofalse (по умолчанию) — только предпросмотр (dry-run), запись НЕ выполняется. true — выполнить создание. Сначала всегда показывайте dry-run и получайте согласие пользователя; при подтверждении передавайте operationId из результата предпросмотра и те же аргументы. После таймаута повторяйте подтверждение с тем же id, не создавая новый предпросмотр.
databaseNoИмя базы 1С из list_databases. Без указания — база по умолчанию; если баз несколько и неясно какая, спросите пользователя.
contractRefNoRef_Key договора
operationIdNoUUID из предпросмотра. Передайте его при confirm=true, чтобы повтор не создал дубликат.
organizationNoОрганизация (юрлицо) для фильтра: часть названия, ИНН или Ref_Key из list_organizations. Без указания — все организации базы.
incomeAccountNoСчёт доходов для ВСЕХ строк (напр. «90.01.2»); счёт в строке важнее
expenseAccountNoСчёт расходов для ВСЕХ строк (напр. «90.02.2»); счёт в строке важнее
responsibleRefNoОтветственный документа — Ref_Key пользователя 1С (read.catalog.list_users): ставится в «Ответственный» или, где его нет (продажи и закупки УТ), в «Менеджер». Помеченный, недействительный и служебный — отказ; у документов без обоих полей (ПКО, РКО и заявка на расходование УТ) — отказ. Заменяет ответственного из fields
sumIncludesVatNoСумма включает НДС
counterpartyRefYesRef_Key покупателя
nomenclatureGroupRefYesRef_Key номенклатурной группы (ОБЯЗАТЕЛЬНО, субконто счёта доходов 90.01 — не угадывается)

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.6/5.0
Behavior5/5

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

Annotations only say non-read-only, non-destructive, open-world; the description goes well beyond that. It discloses that the document is created unposted, gives the expected postings (Дт 62 Кт 90.01, VAT 90.03) and where the settlement account comes from, warns that the nomenclature group is NOT guessed, and points to the preview for the account source.

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?

Four dense sentences with no padding: purpose, the difference from the sibling, postings, and posting/confirmation state. The phrasing is telegraphic (Дт/Кт, «НЕПРОВЕДЁННЫЙ») but appropriately front-loaded, with only mild terseness costing a point.

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 a 13-parameter posting tool with an output schema and annotations covering only safety, the description supplies the missing behavioral core: unposted state, post_document follow-up, posting accounts, preview source, and the mandatory nomenclature group the agent must obtain from the user.

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 the parameters are already fully documented. The description adds the important constraint that nomenclatureGroupRef is mandatory and never inferred, but otherwise restates constraints the schema already states; the 3 baseline for high coverage 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 specific verb and resource («Создаёт «Акт об оказании производственных услуг»») and immediately distinguishes it from the sibling create_act: this tool requires a nomenclature group (subconto of account 90.01). An agent can choose between the two without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It names the alternative (create_act) and the condition that selects it (the nomenclature group is mandatory and not inferred), plus the follow-up path: the document is unposted, so use post_document. The dry-run/confirm protocol is also stated.

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