Query data
queryRun 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
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | Max rows to return this page (server-capped; omit for the default) | |
| skip | No | Offset for pagination (default 0) | |
| count | No | Include the total row count (OData $inlinecount) | |
| expand | No | Navigation properties to expand | |
| filter | No | Raw OData $filter, e.g. "DeletionMark eq false" | |
| select | No | Properties to return ("*" = all, "**" = all minus tabular parts). With expand, include the nav prop or "Nav/Field" too. | |
| compact | No | Drop 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. | |
| orderBy | No | Sort specification (applied in order) | |
| entitySet | Yes | Entity set, e.g. Catalog_Валюты | |
| connection | Yes | Connection name |