Skip to main content
Glama

korely_get_context

Recall what Korely knows for one end user as a prompt-ready block (the primary recall path). Call before answering. user_id scopes to one end user; agent_id to one agent's namespace (what korely_add wrote under it). token_budget: 50 to 8000 tokens. known_as_of (ISO date) rebuilds the block as Korely knew it then. exclude_sessions leaves out the work sessions a coding assistant saved, and the facts only they state. reader (your agent's name): the block then opens with what changed since you last read, and keeps which facts you were handed; it filters nothing. changes=all: every kind of change.

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": {
      "query": "<query>"
    },
    "name": "korely_get_context"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYes
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.
changesNoWhich changes the block tells a `reader`. Left out: every kind in a memory with an end user, and in an agent's memory with no end user only the explicit ones (corrected, forgotten, stated by a caller), since there the closures read from memories were mostly wrong when measured. `all`: those too.
user_idNo
agent_idNo
known_as_ofNo
token_budgetNo
exclude_sessionsNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/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 does well: it discloses the token budget range, that known_as_of rebuilds a historical view, that exclude_sessions also removes dependent facts, and that reader records which facts were handed over (a write side effect). It omits the retention window, the 'not authenticated, any name works' caveat, and which reads skip recording (the schema covers those, but the description does not summarize them).

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with purpose and the imperative call-to-action, then a compact per-parameter walkthrough. Every clause carries information; the telegraphic style is dense but not padded, and nothing is repeated.

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?

An output schema exists, so return values need not be described, and the description covers the temporal, scoping, and side-effect behavior of a fairly complex tool. The unexplained required `query` parameter and the unstated interaction when both user_id and agent_id are supplied leave real holes.

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?

Seven of eight parameters get substantive meaning beyond the schema: scoping rules for user_id/agent_id, the 50–8000 token_budget range, ISO format and rebuild semantics for known_as_of, the tie between exclude_sessions and dependent facts, plus reader and changes behavior. The notable gap is `query`, the only required parameter, which is never explained here and has no schema description either.

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?

The first sentence names a specific verb (recall), a specific resource (what Korely knows for one end user), and the output form (prompt-ready block), and positions itself as 'the primary recall path', which implicitly separates it from korely_get_facts and korely_search.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

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

'Call before answering' gives an explicit trigger condition, which is stronger than most definitions. It lacks any when-not guidance or named alternatives (e.g. when to prefer korely_get_facts or korely_search), so an agent must infer the boundary between recall paths.

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.