Skip to main content
Glama

Memory Query

memory.query
Read-onlyIdempotent

Query owner memory entries by entity_type, category, tags, or time range. Returns ciphertext plus metadata - never plaintext. Requires wallet signature. Compliance: GDPR Art. 15, 20. Cost $0.01 per call.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoPage size (1–200, default 50).
sinceNoISO 8601 lower bound on created_at (inclusive).
untilNoISO 8601 upper bound on created_at (inclusive).
offsetNoPage offset (0–10000, default 0).
categoryNoOptional memory category filter.
tags_allNoReturn rows whose tags contain every item in this list.
tags_anyNoReturn rows whose tags overlap this list.
entity_idNoOptional exact entity identifier.
entity_typeNoOptional entity type filter.
owner_walletYes0x-prefixed owner address. Signature must recover to this wallet.
entity_id_prefixNoOptional entity_id prefix (minimum 3 characters).
wallet_signatureYesEIP-191 signature over the exact canonical filter set.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
okNoTrue when the tool completed without a validation error.
toolNoTool name that produced this payload.
countNoEntries on this page.
limitNoPage size.
totalNoMatching row count before pagination.
offsetNoPage offset.
entriesNoCiphertext rows owned by the signer (never plaintext).
filtersNoValidated filters that were applied.
paymentNoSettlement receipt after x402 or sandbox payment.
queried_atNoUTC timestamp of the query.
accessed_asNoAlways owner in Prompt 5.

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?

Annotations declare readOnlyHint=true and idempotentHint=true, and the description adds the crucial fact that it returns ciphertext, never plaintext, which is a significant behavioral disclosure that the annotations do not cover. It also mentions cost per call and compliance references, adding context beyond annotations. No contradiction with annotations.

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?

The description is concise, with three sentences, but it front-loads the key purpose and critical behavior (ciphertext) before legal/cost details. It is not overly verbose and every sentence adds value.

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?

Given the tool has 12 parameters, a complex output schema (output schema exists), and the description covers the key behavioral aspects (ciphertext, signature requirement), it is reasonably complete. However, it does not detail return value structure, pagination, or error scenarios, which might be expected for a query tool with such rich filters.

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 the schema documents all parameters. The description lists some filter dimensions (entity_type, category, tags, time range) but adds little detail beyond what the schema gives. For example, the schema already describes each parameter. The description does not introduce new semantics that aren't already in the schema.

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?

The description specifies the verb 'Query' and the resource 'owner memory entries' with clear filter dimensions. It distinguishes from likely write tools (memory.write) and read tools (memory.read) by focusing on querying with filters corrected. However, it doesn't explicitly differentiate from memory.read, though the mention of filters and metadata suggests a more advanced read.

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?

The description states it requires a wallet signature, which implies when authentication is needed, but it does not explicitly say when to use this vs memory.read or when not to use it. The context is clear for querying filtered memory, but no alternatives are mentioned.

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