Skip to main content
Glama
kyvirok for 1C

kyvirok for 1C

Get entity

get_entity

Fetch 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

NameRequiredDescriptionDefault
keyYesEntity key — usually the Ref_Key GUID
compactNoDrop 1С "*_Type" annotation companions and @odata noise to save space. Caveat: also removes composite-type discriminators like Value_Type/Ref_Type.
entitySetYesEntity set, e.g. Catalog_Валюты
connectionYesConnection name

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A4.1/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden. It usefully discloses a real server quirk (1С rejects over-long URLs with HTTP 404) that explains the per-id calling pattern, but it says nothing about behavior on a missing/invalid key, authentication or connection prerequisites, or what the response looks like.

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?

Three dense sentences, front-loaded with the primary action and followed by the failure-mode rationale before the alternative. The phrase 'the right way to look up a record by id' is mildly redundant with 'Fetch one entity by key' but otherwise nothing is wasted.

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 single-record read with full schema coverage and no output schema, the description covers action, key semantics, batching strategy, and the sibling alternative. It stops short of describing the returned payload or the not-found case, which an agent would still have to discover empirically.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so all four parameters are already documented, including the `compact` caveat about removing composite-type discriminators. The description only reinforces the `key` semantics already stated in the schema and adds no new parameter-level meaning.

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 concrete verb and resource ('Fetch one entity by key (Ref_Key GUID)') and immediately positions it as the single-record lookup path versus the query-based alternative. An agent can distinguish it from `query` and `describe_entity` without opening any schema.

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?

Gives explicit when-to-use ('look up a record by id'), an explicit when-not with the reason ('for several ids, call this once per id rather than one long Ref_Key eq … or … filter'), and names the sibling to use for projections/expands with the exact filter syntax to pass it.

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