get_facts
Get Facts ·read-only · non-destructive · idempotent · closed-world
Look up entity-bound facts by attribute or list them.
If attribute is provided, return the current fact for
(entity, attribute). Otherwise, list the entity’s facts ordered by
recency, up to limit. Set include_superseded=True to include
superseded history.
Replaces the legacy get_fact + list_facts split (epic #4197,
issue #4200): same underlying SQL, just an optional WHERE attribute = … clause toggled by the presence of attribute.
Returns: str
Source: backend/src/engram/mcp/tools/facts.py
Parameters
Entity ID or exact entity name/alias to resolve.
Fact predicate to fetch. When omitted, the full list is returned instead of a single fact.
Maximum rows to return in list mode (default 20). Ignored when
attribute is supplied.When true, include superseded and time-bounded facts. Ignored when
attribute is supplied — the single-fact branch always returns the current row.