Get entity
get_entityFetch a single 1C entity by Ref_Key GUID to reliably look up one record; for multiple IDs, call once per ID instead of building long OR filters that can fail.
Instructions
Fetch one entity by key (Ref_Key GUID) — the right way to look up a record by id. For several ids, call this once per id rather than one query with a long "Ref_Key eq … or …" filter (1С rejects over-long URLs with HTTP 404). For a projection or $expand of a single record, use query with filter "Ref_Key eq guid'…'".
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>",
"key": "<key>"
},
"name": "get_entity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Entity key — usually the Ref_Key GUID | |
| compact | No | Drop 1С "*_Type" annotation companions and @odata noise to save space. Caveat: also removes composite-type discriminators like Value_Type/Ref_Type. | |
| entitySet | Yes | Entity set, e.g. Catalog_Валюты | |
| connection | Yes | Connection name |