Skip to main content
Glama
kyvirok for 1C

kyvirok for 1C

Query data

query

Run read-only OData requests against 1C entity sets with filters, field selection, expansions, sorting, and pagination; use select to keep large results within byte limits.

Instructions

Read-only OData query against an entity set ($filter, $select, $expand, $orderby, $top/$skip, optional count). Large results are truncated to a byte budget — use select to keep them small. With expand, also include the navigation property in select (e.g. "Партнер/Description") or the expanded data is dropped. To look up records by key use get_entity (once per id) — do NOT build long "Ref_Key eq … or …" filters; 1С rejects over-long URLs with HTTP 404 (keep any OR-batch ≤ ~10). For register balances/turnovers/totals use register_query, not raw "*_RecordType" rows.

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>",
      "entitySet": "<entitySet>"
    },
    "name": "query"
  }
}

Input Schema

NameRequiredDescriptionDefault
topNoMax rows to return this page (server-capped; omit for the default)
skipNoOffset for pagination (default 0)
countNoInclude the total row count (OData $inlinecount)
expandNoNavigation properties to expand
filterNoRaw OData $filter, e.g. "DeletionMark eq false"
selectNoProperties to return ("*" = all, "**" = all minus tabular parts). With expand, include the nav prop or "Nav/Field" too.
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.
orderByNoSort specification (applied in order)
entitySetYesEntity set, e.g. Catalog_Валюты
connectionYesConnection name

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A4.6/5.0
Behavior4/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 well: it declares read-only semantics, warns that large results are truncated to a byte budget, and flags that expanded navigation properties are silently dropped unless also listed in select. It stops short of describing the response envelope, auth/connection requirements, or what the truncation signal looks like to the caller.

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?

Four dense sentences, each front-loaded with an imperative point: scope, then truncation mitigation, then the expand trap, then alternative-tool routing. No filler and no restatement of the name or title.

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?

For a ten-parameter, annotation-free query tool with no output schema, the description covers the high-risk behaviors (truncation, expand/select coupling, URL length failures) and routes to siblings. The main remaining gap is what a result set looks like, including how truncation is surfaced to the caller.

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 cross-parameter semantics the schema cannot express — the select/expand coupling with the concrete 'Партнер/Description' example, and the guidance to use select to stay under the byte budget. The compact and top caveats are already in the schema, so those add nothing new.

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 opening clause names a specific verb and resource ('Read-only OData query against an entity set') and immediately enumerates the supported OData operators, so the tool's capability is unambiguous. It also explicitly distinguishes itself from get_entity and register_query, which read or aggregate different data shapes.

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?

The description gives concrete routing rules: use get_entity for key lookups, use register_query for balances/turnovers/totals, avoid long 'Ref_Key eq ... or ...' batches. It even supplies a quantitative guardrail (OR-batch ≤ ~10) and names the failure mode (HTTP 404 from 1С) that motivates it.

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