Skip to main content
Glama
kyvirok for 1C

kyvirok for 1C

Query register virtual table

register_query

Query 1C registers server-side for aggregated stock balances, period turnovers, and slices grouped by dimensions; supports date ranges and pagination.

Instructions

Server-side analytics on a 1С register — stock balances, period turnovers/sales totals, slices. 1С aggregates by the register dimensions and returns compact pre-summed rows; prefer this over query on raw "*_RecordType" records for totals/by-dimension breakdowns. Use dimensions (comma-separated) to control grouping. Tables: balance/turnovers/balanceAndTurnovers (accumulation), sliceFirst/sliceLast (information), drCrTurnovers/extDimensions/recordsWithExtDimensions (accounting). Dates are ISO 8601. Paginated via top/skip.

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": {
      "connection": "<connection>",
      "register": "<register>",
      "table": "<table>"
    },
    "name": "register_query"
  }
}

Input Schema

NameRequiredDescriptionDefault
topNoMax rows to return this page (server-capped; omit for the default)
skipNoOffset for pagination (default 0)
tableYesVirtual table to query
periodNoISO date — point in time for balance/slice (range tables: taken as range start)
compactNoDrop 1С "*_Type" annotation companions and @odata noise to save space. Caveat: also removes composite-type discriminators like Value_Type/Ref_Type, so omit it when you need to know which entity a "*_Key" points to.
periodToNoISO date — range end (EndPeriod) for turnovers/accounting tables
registerYesRegister entity set, e.g. AccumulationRegister_ТоварыНаСкладах
conditionNoRaw OData condition expression on the register records
connectionYesConnection name
dimensionsNoComma-separated dimension names
periodFromNoISO date — range start (StartPeriod) for turnovers/accounting tables
extraDimensionsNoAccountingRegister: ext-dimension condition
accountConditionNoAccountingRegister: condition on the (main) account, e.g. "Account_Key eq guid'…'"
balancedExtraDimensionsNodrCrTurnovers: ext-dimension condition for the corresponding account
balancedAccountConditionNodrCrTurnovers: condition on the corresponding/balanced account

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A4.2/5.0
Behavior3/5

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

With no annotations, the description carries the full burden and does disclose key behavior: aggregation happens server-side, rows come back pre-summed, and results are paginated via top/skip with a server-capped top. It stops short of the safety/permission profile (read-only nature, connection requirements, failure modes) and gives no sense of the returned row shape, which matters for a 15-parameter tool with no output schema.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the purpose and the sibling trade-off before the table taxonomy, with no filler sentences. Every clause (aggregation model, table families, date format, pagination) carries operational information.

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 15 parameters, 3 required, rich enum and per-parameter schema documentation, and no output schema, the description covers the pieces an agent most needs: which table for which register kind, how grouping works, and pagination. The main residual gap is return-value expectations, which the description only gestures at with "compact pre-summed rows".

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 on top: `dimensions` is explained as the grouping control, dates are declared ISO 8601, and top/skip are framed as pagination. It goes beyond the schema's parameter text rather than merely repeating it.

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 ("server-side analytics on a 1С register") and immediately scopes it with concrete outputs (stock balances, turnovers/sales totals, slices). It also distinguishes itself from the sibling `query` by naming the raw "*_RecordType" record case it is not for.

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?

Explicitly routes the agent away from `query` for "totals/by-dimension breakdowns", and the table list maps each virtual table to the register kind it belongs to (accumulation, information, accounting), which is genuine selection guidance. It does not state exclusions or prerequisites such as when a raw-record query is still the right choice, so it falls short of full when/when-not coverage.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.