Skip to main content
Glama
1C OData MCP

1C OData MCP

Создать инвентаризацию товаров

write.warehouse.create_inventory

Creates a 1C warehouse inventory document comparing actual and accounting quantities, with dry-run preview and confirmation; records discrepancies without posting stock movements.

Instructions

Создаёт документ «Инвентаризация товаров на складе» (сверка факт/учёт). Документ НЕ проводится (движений не делает) — служит основанием для оприходования/списания. 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": {
      "lines": "<lines>"
    },
    "name": "write.warehouse.create_inventory"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateNoДата YYYY-MM-DD (по умолчанию — момент предпросмотра)
linesYesПозиции инвентаризации
commentNoУправление торговлей: комментарий документа
confirmNofalse (по умолчанию) — только предпросмотр (dry-run), запись НЕ выполняется. true — выполнить создание. Сначала всегда показывайте dry-run и получайте согласие пользователя; при подтверждении передавайте operationId из результата предпросмотра и те же аргументы. После таймаута повторяйте подтверждение с тем же id, не создавая новый предпросмотр.
databaseNoИмя базы 1С из list_databases. Без указания — база по умолчанию; если баз несколько и неясно какая, спросите пользователя.
warehouseNoНазвание, код или Ref_Key склада (если несколько)
operationIdNoUUID из предпросмотра. Передайте его при confirm=true, чтобы повтор не создал дубликат.
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

A3.7/5.0
Behavior4/5

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

The description adds a genuinely non-obvious behavioral fact: the created document is NOT posted and produces no stock movements, serving only as a basis for later capitalization/write-off. This goes well beyond the annotations (which only say non-readonly, open-world, non-destructive). The UT nuance about «Пересчёт товаров» adds further domain transparency.

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?

The core purpose and the critical "not posted" caveat are front-loaded, and there is no filler. The UT aside is slightly tangential but still carries behavioral value, so it is not wasteful enough to penalize heavily.

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?

Given an output schema, full annotation set, and 100% schema coverage, the description supplies the essential missing pieces: purpose, non-posting behavior, and dry-run/confirm flow. It is complete enough for an agent to call correctly, with only explicit sibling routing left implicit.

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?

With 100% schema description coverage, the schema already documents all parameters, so the baseline is 3. The description's note "Для каждой позиции: фактическое и учётное количество" restates what the schema already declares for factQuantity/accountingQuantity and adds little new meaning.

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?

States a specific verb and resource ("Создаёт документ «Инвентаризация товаров на складе»") and clarifies the nature of the document (сверка факт/учёт). It implicitly distinguishes itself from the downstream surplus/write-off documents by saying it serves as the basis for оприходование/списание, but it does not name the closest sibling tools explicitly.

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

Usage Guidelines3/5

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

Mentions the dry-run/confirm workflow ("dry-run/confirm"), which is real usage context, but the description itself does not spell out when to choose this tool versus create_surplus or create_writeoff. Usage is implied rather than stated, and the detailed confirm choreography lives in the schema rather than the description.

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