Skip to main content
Glama

Ask what NEXUS knows

cognitive_query
Read-onlyIdempotent

Get what NEXUS has stored about a topic in one read-only call: memories, facts, hypotheses and rules, returned as one structured object.

- memories: semantic retrieval over episodes and facts (up to 15).
- facts: if entity_id is given, all facts of that entity. Otherwise, the
  entities linked to the top 3 retrieved episodes are used (returned as
  `entity_ids`, and the first becomes `entity_id`), and their facts are
  ranked against the topic (top 10). This inference needs 'memories' in
  include; without it and without entity_id, facts is empty.
- hypotheses and rules: filtered by topic keywords in their text fields
  (top 10). If nothing matches, the result is an empty list.
For a single kind of data, use retrieve_memories, get_facts_by_entity or
list_hypotheses instead.

Returns:
    {"topic", "entity_id", "entity_ids"?, "memories": {"episodes", ...},
     "facts": [...], "hypotheses": [...], "rules": [...]}, where only
     the included modules are present.

Args:
    topic: Natural-language description of what you want to know.
    entity_id: Optional entity UUID. If given, all facts of that entity are returned.
    include: Subset of ['memories', 'facts', 'hypotheses', 'rules'] (default: all).
    time_range: Optional time window for the memories module only. It accepts the same values as retrieve_memories (e.g. 'last_7d', 'last_30d').
    since: Optional ISO-8601 start of the window (memories module only).
    until: Optional ISO-8601 end of the window (memories module only).

Input Schema

NameRequiredDescriptionDefault
sinceNo
topicYes
untilNo
includeNo
entity_idNo
time_rangeNo

Output Schema

NameRequiredDescriptionDefault
factsNo
rulesNo
topicYes
conceptsNo
memoriesNo
entity_idNo
hypothesesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, so the safety profile is covered. The description genuinely adds behavioral detail beyond annotations: the inference path where facts requires 'memories' in include, the empty-list behavior for hypotheses/rules, and the 15/10 caps. However, it does not describe the return object's structure in depth or error conditions. With annotations carrying the safety profile, a 3 is appropriate – useful additions but not fully rich behavioral coverage.

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 the core purpose, then organized as bullets per module, a Returns block, and an Args block. Every line carries needed information for a 6-param, multi-module tool; no repetition of annotation fields.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 6-parameter tool with an output schema present, the description is complete enough: it explains module semantics, the include-based inference dependency, time-window scoping, and the alternatives. Output structure is summarized even though the output schema already covers it, so nothing an agent needs to call correctly is missing.

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 full burden and does document all 6 parameters: topic, entity_id, include (subset of four modules with default all), and time_range/since/until scoped to the memories module only. That is meaningful semantic value beyond the bare param names. Minor gap: since/until format details ('ISO-8601') are thin and include's array item type is undocumented beyond the enumerated values.

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 opening sentence names a specific verb ('Get what NEXUS has stored'), the resource (memories, facts, hypotheses, rules), the return shape (one structured object), and the read-only scope. It also names the sibling tools (retrieve_memories, get_facts_by_entity, list_hypotheses) to route away from them, so an agent can distinguish it without opening the schema.

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 condition that selects this tool ('one read-only call' spanning multiple kinds) and the alternatives ('For a single kind of data, use retrieve_memories, get_facts_by_entity or list_hypotheses instead'). It also documents the include/entity_id dependency that changes fact behavior, giving the agent concrete invocation context.

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