Skip to main content
Glama

korely_get_facts

Read typed (subject, predicate, object) facts: the bi-temporal core. agent_id narrows to one agent's namespace; entity matches subject OR object; predicate is the relation (works_at); predicate_family narrows to one family of relations (its description names them); as_of (ISO date) reconstructs what was true then; known_as_of (ISO date) what Korely knew then (a change told later is not in it); include_invalidated shows superseded facts; exclude_sessions leaves out the facts only work sessions state; reader (your agent's name) keeps which facts you were handed, and filters nothing; limit: 1 to 200. Each fact ends with its id, fct_, the one korely_correct_fact takes. Deterministic, no model.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "korely_get_facts"
  }
}

Input Schema

NameRequiredDescriptionDefault
as_ofNo
limitNo
entityNo
readerNoYour agent's own name, by the rule of `agent_id`. With it, this read keeps the ids of the facts it hands over as true, with the time, for 90 days after the last read unless the install sets READ_MARKS_RETENTION_DAYS, and the context block of this reader opens with what changed since in the facts it was handed (agent notices), each change told at most once. It filters nothing, and a read of the past (`as_of`, `known_as_of`) or of the history (`include_invalidated`) keeps nothing and tells nothing. Not authenticated: whoever holds the key can give any name.
subjectNo
user_idNo
agent_idNo
predicateNo
known_as_ofNo
exclude_sessionsNo
predicate_familyNoFilter to one family: one of `preferences`, `people`, `places`, `work`, `ownership`, `health`, `financial`, `events`, `identity`, `other` (case and surrounding spaces ignored). A name that is not a family matches no fact: an empty result, not an error. An empty value is no filter; one made only of spaces is no family, and matches no fact. A name longer than 200 characters, or with a NUL byte, is refused as an invalid request (a 422 on REST), as every name a read of the facts narrows on.
include_invalidatedNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and largely meets it: it discloses that results are deterministic and involve no model, that include_invalidated surfaces superseded facts, that as_of reconstructs past truth while known_as_of restricts to what was then known, and that reader keeps read-marks for 90 days (overridable via READ_MARKS_RETENTION_DAYS) while filtering nothing. It also flags a genuine security caveat (reader is unauthenticated, any name can be supplied). It stops short of stating overall read-only/idempotent guarantees or what happens on an empty result.

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?

It is front-loaded with the purpose sentence before the parameter walk-through, and each clause carries information. The semicolon-chained parameter list is dense and reads as a near-run-on, but almost 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 12-parameter, zero-required read tool with an output schema, the description covers bi-temporal semantics, session exclusion, invalidation, read-mark retention and the fct_ id handoff to korely_correct_fact. The main omission is user_id and any statement of result ordering or empty-result behavior.

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 description coverage is only 17%, so the description must compensate and mostly does, adding meaning for agent_id, entity (matches subject OR object), predicate, predicate_family, as_of, known_as_of, include_invalidated, exclude_sessions, reader and the 1–200 limit bound. It leaves subject and especially user_id unexplained, which is a real gap in a 12-parameter tool.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Read typed (subject, predicate, object) facts: the bi-temporal core" gives a concrete verb plus resource and names the distinguishing property (bi-temporal facts). It is clearly separable from korely_get_context and korely_search by the typed-triple framing, though it never explicitly contrasts itself with those siblings.

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 enumeration of narrowing dimensions (agent_id, entity, predicate, predicate_family, as_of, known_as_of, include_invalidated) makes it evident this is the filtered fact-listing call, and korely_correct_fact is referenced for ids. There is no explicit when-to-use/when-not guidance or named alternative for a plain keyword lookup versus this structured query.

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.