Skip to main content
Glama

Get facts for entity

get_facts_by_entity
Read-onlyIdempotent

Get the semantic facts in which an entity is the subject or the object.

Each fact carries `valid_from`, the date OF THE FACT (when it happened or
since when it is true), with `fecha_origen` saying where it came from
('declarada': given by its writer; 'episodio': the date of the episode it
was extracted from, approximate; 'registro': when it was stored, nothing
better known) and `fecha_precision` ('momento', 'dia', 'mes', 'anio').

Args:
    entity_id: UUID of the entity.
    limit: Maximum number of facts to return (1-200).
    offset: Skip the first N facts, to page through the rest.
    orden: 'confianza' (highest confidence first, default), 'reciente'
        (newest `valid_from` first) or 'antiguo' (oldest first).
    time_range: Window label over `valid_from`, same values as in
        `retrieve_memories`.
    since: Inclusive ISO-8601 lower bound over `valid_from`.
    until: Inclusive ISO-8601 upper bound over `valid_from`.

`time_range` and `since`/`until` are mutually exclusive (422).

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": {
      "entity_id": "<entity_id>"
    },
    "name": "get_facts_by_entity"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
ordenNoconfianza
sinceNo
untilNo
offsetNo
entity_idYes
time_rangeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • addedInput schema / properties / limit
      Added value: +{
      +  "default": 50,
      +  "title": "Limit",
      +  "type": "integer"
      +}
    • addedInput schema / properties / offset
      Added value: +{
      +  "default": 0,
      +  "title": "Offset",
      +  "type": "integer"
      +}
    • addedInput schema / properties / orden
      Added value: +{
      +  "default": "confianza",
      +  "title": "Orden",
      +  "type": "string"
      +}
    • addedInput schema / properties / since
      Added value: +{
      +  "default": "",
      +  "title": "Since",
      +  "type": "string"
      +}
    • addedInput schema / properties / time_range
      Added value: +{
      +  "default": "",
      +  "title": "Time Range",
      +  "type": "string"
      +}
    • addedInput schema / properties / until
      Added value: +{
      +  "default": "",
      +  "title": "Until",
      +  "type": "string"
      +}
  2. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), so the description's real contribution is elsewhere: it explains temporal provenance via `fecha_origen` and `fecha_precision` values, the default ordering by confidence, and the 422 behavior on conflicting filters. It stops short of describing the full fact payload or pagination totals.

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 a one-line purpose, then a compact provenance paragraph, then an Args block — a clean structure. The middle paragraph is dense but every clause about `valid_from`/`fecha_origen` adds decision-relevant meaning; nothing is filler.

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 seven-parameter read tool with no output schema, the definition covers filtering, sorting, paging, conflict errors and the temporal return fields. What is missing is modest: the other fact fields returned (e.g. confidence, predicate) and whether an offset beyond the total signals exhaustion.

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?

With 0% schema description coverage the description carries the entire burden and mostly succeeds: it documents all seven parameters including the 1-200 limit range, the three `orden` values with the default, and ISO-8601 bounds. The one gap is `time_range`, whose values are deferred to retrieve_memories instead of being enumerated here.

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 specific verb ('Get') and resource ('semantic facts') plus the exact scope: facts where the entity is subject or object. That scope distinguishes it from nearby siblings such as get_entity_relations (relations) and get_entity_episodes (episodes) without needing to open 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 Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied rather than stated: the ordering options, filtering window and the 422 mutual-exclusivity rule tell an agent how to call it, but there is no explicit guidance on when to prefer this over get_entity_relations, get_entity_graph_context or retrieve_memories, and no prerequisites mentioned.

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.

Resources