Skip to main content
Glama
1C OData MCP

1C OData MCP

Остатки товаров

read.analytics.get_inventory
Read-only

Retrieve inventory balances by item, organization, group, or warehouse as of a date; search by name or SKU to review stock quantities and amounts.

Instructions

Остатки товаров/материалов: сальдо счетов 41/10/43 регистра Хозрасчетный, сгруппированное по номенклатуре; в Управлении торговлей (Хозрасчётного нет) — количество и стоимость по регистру «Себестоимость товаров» (сумма в валюте регламентированного учёта, до расчёта себестоимости — предварительная). Возвращает количество, сумму, артикул и группу номенклатуры (родитель). Можно ограничить организацией и группой номенклатуры с её подгруппами (group). По умолчанию — текущие остатки; asOf=YYYY-MM-DD даёт остатки на конец даты. groupBy=warehouse разбивает по складам и на первой странице добавляет итоги byWarehouse; если склад в субконто этих счетов не ведётся, ответ скажет об этом (warehouseTracked=false), сумму и количество по складам из документов он не выводит. Сумма на счетах без номенклатуры в субконто (например, 41.12) — в withoutNomenclature, она входит в totalAmount. query находит товар по части названия или артикулу: все части запроса, без учёта регистра; похожие буквы кириллицы и латиницы совпадают, только если точных совпадений нет, остальные названы в otherSimilar; словоформы не распознаются (пишите основу: «бумаг»). Итоги — только по найденному; при пустом ответе примечание говорит, есть ли товар в справочнике или группе. count — всего позиций; длинный список читайте с offset=nextOffset, пока он есть. (В БП 3.0 учёт ведётся на счетах бухучёта, а не в отдельном регистре остатков. В УТ остатки по складам без сумм, с резервом к отгрузке — get_warehouse_stock.)

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "read.analytics.get_inventory"
  }
}

Input Schema

NameRequiredDescriptionDefault
asOfNoДата остатков — на конец этой даты (без параметра — текущие) (YYYY-MM-DD)
groupNoГруппа номенклатуры: Ref_Key, название целиком или его часть, путь через «/» («Канцелярия/Бумага»); несколько совпадений — отказ со списком путей. Подгруппы входят. Итоги — только по этой группе
limitNoСколько позиций вернуть
queryNoПоиск товара: части слов из названия или артикул (основа слова: «бумаг а4»). Можно вместе с group
offsetNoС какой строки начать (0 — с начала); значение из nextOffset прошлого ответа
groupByNoitem — по номенклатуре (по умолчанию); warehouse — номенклатура в разрезе складов; itemGroup — ещё итоги по группам товаров (byItemGroup)item
databaseNoИмя базы 1С из list_databases. Без указания — база по умолчанию; если баз несколько и неясно какая, спросите пользователя.
organizationNoОрганизация (юрлицо) для фильтра: часть названия, ИНН или Ref_Key из list_organizations. Без указания — все организации базы.

Output Schema

NameRequiredDescriptionDefault
asOfNo
noteNo
scanYes
countYes
itemsYes
queryNo
groupByNo
accountsYes
databaseYes
itemGroupNo
byItemGroupNo
byWarehouseNo
totalAmountYes
organizationNo
otherSimilarNo
warehouseTrackedNo
withoutNomenclatureNo

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 declare readOnlyHint and openWorldHint; the description goes far beyond by disclosing that amounts before cost calculation are preliminary, that warehouse amounts are omitted and flagged via warehouseTracked=false when warehouses aren't in subconto, that unassigned amounts land in withoutNomenclature but still count in totalAmount, and that totals cover only matched rows. These are non-obvious output-shape behaviors an agent could not infer.

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?

Purpose is front-loaded and nearly every clause carries operational facts, including the configuration caveat at the end. It is nonetheless a single dense paragraph that re-states some schema facts (asOf format, count/nextOffset) and would scan better as short grouped sentences, so it stops short of ideal.

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 an 8-parameter read-only analytics tool with an output schema, the description supplies exactly the non-schema context needed: data provenance per configuration, preliminary-amount caveat, warehouse-tracking degradation path, total semantics, search limitations, and pagination strategy. Nothing required to call it correctly or interpret odd results is missing.

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 real meaning: it explains that group includes subgroups and constrains totals, that query matches all query parts case-insensitively with Cyrillic/Latin lookalike fallback and no stemming, and that offset should be fed from nextOffset. That is genuine semantic enrichment rather than restatement.

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+resource: inventory balances derived from account 41/10/43 balances of the Хозрасчетный register, with a documented fallback (Себестоимость товаров register) for configurations lacking it. It explicitly separates itself from get_warehouse_stock for УТ warehouse-level stock, so an agent can pick correctly 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 Guidelines4/5

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

Gives concrete conditions: default is current balances, asOf switches to end-of-date, groupBy=warehouse changes the shape of the result, and in УТ the warehouse-level view lives in get_warehouse_stock. It lacks explicit 'when not to use' guidance versus the other analytics siblings (e.g. get_prices, get_sales), but the key routing decision is covered.

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