Skip to main content
Glama
1C OData MCP

1C OData MCP

Создать оприходование товаров

write.warehouse.create_surplus

Creates an unposted 1C goods surplus receipt document to record inventory overages, with dry-run preview, confirmation, and an optional inventory count basis.

Instructions

Создаёт документ «Оприходование товаров» (излишки). НЕПРОВЕДЁННЫЙ; провести — post_document (проводки Дт 41 Кт 91.01). Можно указать документ-основание — инвентаризацию. dry-run/confirm. В Управлении торговлей — «Оприходование излишков товаров»: обязательны priceKind, incomeItem и price в каждой строке (уточните у пользователя; действующую цену покажет read.analytics.get_prices), основание — пересчёт; post_document сверяет движения по складу.

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": {
      "lines": "<lines>"
    },
    "name": "write.warehouse.create_surplus"
  }
}

Input Schema

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

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

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

Goes well beyond the annotations: the document lands unposted, posting produces Дт 41 Кт 91.01 entries, dry-run writes nothing until confirm=true with the operationId, and repeats after a timeout must reuse the same id to avoid duplicates. It also discloses the УТ-specific prerequisites and that post_document reconciles warehouse movements. The only gap is permission/authorization behavior, which is not addressed.

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-loads the core action and the unposted/posting distinction, then layers the dry-run protocol and the УТ-specific caveats. It is dense and clause-heavy with abrupt fragments like 'dry-run/confirm', but every sentence carries operational information rather than filler.

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 mutation with an output schema and full parameter coverage, the description supplies what structured fields cannot: the posting workflow, idempotent confirm semantics, the basis-document relationship, and configuration-specific required fields. An agent can execute the two-step creation safely from this alone.

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 the baseline is 3, but the description adds a cross-field constraint the schema does not express clearly: in Управление торговлей priceKind, incomeItem and price are mandatory for every line, even though the schema marks price as an optional default-0 field. It also routes price discovery to get_prices and the basis document to an inventory/пересчёт.

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?

Names a specific verb and resource ('Создаёт документ «Оприходование товаров» (излишки)') and immediately disambiguates from the surrounding warehouse siblings by stating the document is created unposted. The parenthetical '(излишки)' plus the accounting entry Дт 41 Кт 91.01 pins down exactly which business operation this is versus create_writeoff or create_inventory.

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?

Explicitly states that posting is a separate step ('НЕПРОВЕДЁННЫЙ; провести — post_document') and points to read.analytics.get_prices when a current price is needed. It also mandates the dry-run/confirm protocol and warns to ask the user for priceKind/incomeItem rather than guessing, giving clear when/when-not and alternative routing.

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