Skip to main content
Glama
1C OData MCP

1C OData MCP

Цены номенклатуры

read.analytics.get_prices
Read-only

Retrieve effective item prices by price type as of a specified date, filtered by product group, search query, or item IDs. Use it to check current or historical 1C prices.

Instructions

Действующие цены по видам цен на момент (срез последних по регистру цен; в Бухгалтерии — по типам цен). priceKinds — виды цен (Ref_Key или точное название; без параметра — все действующие). Отбор позиций как в get_warehouse_stock: group или groups (с подгруппами), query (название или артикул), items (Ref_Key). asOf — момент (YYYY-MM-DD — на начало дня, YYYY-MM-DDTHH:mm:ss — точно; без параметра — сейчас). Позиции без цены вида в ответ не входят: полный список номенклатуры — read.catalog.list_items. count — всего строк; длинный список читайте с offset=nextOffset.

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_prices"
  }
}

Input Schema

NameRequiredDescriptionDefault
asOfNoМомент цен (YYYY-MM-DD или YYYY-MM-DDTHH:mm:ss)
groupNoГруппа номенклатуры: Ref_Key, название или путь
itemsNo
limitNoСколько строк вернуть
queryNoЧасти слов названия или артикул
groupsNoНесколько групп номенклатуры (вместо group)
offsetNoС какой строки начать (0 — с начала); значение из nextOffset прошлого ответа
databaseNoИмя базы 1С из list_databases. Без указания — база по умолчанию; если баз несколько и неясно какая, спросите пользователя.
mechanismNoМеханизм цен: legacy — прежний УТ (табличная часть «Товары»), 2.5 — ценообразование 2.5, bp — Бухгалтерия (типы цен). Без параметра определяется по последним проведённым документам и записям регистров
priceKindsNo

Output Schema

NameRequiredDescriptionDefault
asOfNo
noteNo
scanYes
countYes
itemsYes
databaseYes
mechanismYes
priceKindsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, and the description adds behavior beyond them: prices are a latest-slice snapshot at asOf, items lacking a price kind are silently excluded, the mechanism is auto-detected from recent documents/registers unless passed, and long results must be paged via offset=nextOffset. It does not quantify cost or latency, but the exclusion and snapshot semantics are the important traits.

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 content is front-loaded with the core definition, then parameter notes, then the alternative routing, and each sentence carries information. It is dense and unsegmented in one block, which makes scanning slightly harder, but there is no 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?

With 10 optional parameters, an output schema, and annotations present, the description covers everything an agent needs: price concepts, time semantics, item filtering, price-kind defaults, database disambiguation, mechanism auto-detection, and pagination. Return-shape details are correctly left to the output schema.

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 80%, so several parameters are already documented; the description still adds meaning where the schema is silent, notably that priceKinds accepts a Ref_Key or exact name and that omitting it selects all active kinds. It also clarifies asOf formats (day-start vs exact) and that group/groups/query/items behave as in get_warehouse_stock.

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: current prices by price kind as of a moment, including the register-slice semantics ('срез последних по регистру цен') and the Accounting variant ('по типам цен'). It is distinguishable from siblings by explicitly reusing get_warehouse_stock's item-filtering semantics and naming read.catalog.list_items as the unfiltered alternative.

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 concrete routing rule: positions without a price for the requested kind are omitted, and the full item list belongs to read.catalog.list_items. It also explains that omitting priceKinds yields all active price kinds, so the agent knows the default behavior. It does not spell out when to prefer this over other analytics reports (e.g. sales), but the price-focused scope is clear.

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