Skip to main content
Glama

memory_query

Query a temporal knowledge graph to retrieve relevant context with filters, pagination, and session scoping for targeted results.

Instructions

Query the temporal knowledge graph for relevant context. Power use behind the memory_checkout front door: reach for it when you need targeted hits, temporal filters, or pagination rather than a prompt-ready packet.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYesNatural language query
temporal_filterNoISO-8601 point-in-time filter
limitNoMax results
session_idNoSession ID for scoped retrieval
cursorNoOpaque cursor from a prior paged memory_query call
pagedNoReturn contexts with pagination metadata
session_idsNoLocal-only explicit cross-session query scope
Behavior2/5

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

No annotations are provided, so the description must carry the full burden. It does not disclose whether the tool is read-only, requires authentication, or has any side effects. While the name 'query' suggests read-only, the description fails to explicitly state this or any other behavioral traits.

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?

The description is extremely concise: one sentence stating the core action, followed by a usage guideline sentence. No wasted words, and the main purpose is front-loaded.

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

Completeness3/5

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

Despite 7 parameters and no output schema, the description explains the tool's role and usage context adequately. However, it lacks behavioral transparency and does not describe return values or pagination behavior in detail, limiting completeness.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so baseline is 3. The description adds overall context (e.g., 'targeted hits, temporal filters, pagination') but does not add specific parameter details beyond what the schema already provides.

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 description clearly states 'Query the temporal knowledge graph for relevant context,' specifying the verb and resource. It distinguishes itself from siblings like memory_checkout by noting it is for targeted hits, temporal filters, or pagination rather than a prompt-ready packet.

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?

The description explicitly says 'reach for it when you need targeted hits, temporal filters, or pagination rather than a prompt-ready packet,' providing clear when-to-use guidance and contrasting with an alternative tool (memory_checkout).

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/syndicalt/zaxy'

If you have feedback or need assistance with the MCP directory API, please join our Discord server