Skip to main content
Glama

TOP Įmonės - Lithuanian company registry (beta)

When an identity attribute changed

get_entity_history
Read-onlyIdempotent

Use it for every period of an attribute; for the identity on one date, get_entity with as_of is simpler. The periods of the name, legal form and status of one entity (country + the national id, the part after "LT:" of a public id): each value with the day it was first observed (valid_from) and the day it was replaced (valid_to, exclusive; null = current). History starts at the first register load that recorded the attribute; before it the attribute is unknown (meta.withheld: unknown_for_date). Oldest first, at most 100 periods per page. An id outside coverage answers not_in_coverage, which does not mean the entity does not exist. Costs one identity disclosure.

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": {
      "country": "<country>",
      "id": "<id>"
    },
    "name": "get_entity_history"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesNational id as issued by the register (the part after "CC:" of a public id).
toNoYYYY-MM-DD: only periods that started on or before this date.
fromNoYYYY-MM-DD: only periods still valid on or after this date.
cursorNometa.next_cursor of the previous page, with the same parameters.
countryYesISO 3166-1 alpha-2 country code, any case (e.g. "LT").
attributesNoAttributes whose periods to return. Default: all three.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already cover readOnly/idempotent/non-destructive, and the description goes well beyond them: history boundary at first register load, meta.withheld: unknown_for_date, oldest-first ordering, 100-period page cap, not_in_coverage semantics, and a cost of one identity disclosure. The only minor gap is that cursor/paging mechanics are only implied via the schema.

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?

Front-loaded with the usage rule, then the payload shape and edge cases; almost every sentence earns its place. Slightly dense phrasing around the id format ('country + the national id, the part after "LT:" of a public id') costs a bit of readability.

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?

Output schema exists so return values needn't be described, and the description still covers boundaries, ordering, paging, coverage failure and cost. Complete enough for an agent to call it correctly on the first try.

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 baseline is 3, but the description adds real meaning: it explains the id format relative to a public id and the inclusive exclusivity of valid_from/valid_to (valid_to exclusive, null = current). It does not spell out how from/to interact with the period boundaries, which the schema covers separately.

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?

Names a specific verb (returns periods) and resource (name, legal form, status of one entity) and explicitly contrasts with the sibling get_entity plus as_of. The agent can tell exactly what this returns versus the point-in-time lookup.

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?

Explicitly states the selection rule: use this for every period of an attribute, use get_entity with as_of for the identity on a single date. That is a direct when/when-not with the alternative named.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.