Skip to main content
Glama

memory_query

Search your agent's stored memories to recall past transactions, vendor reputations, spending patterns, or errors using natural language queries.

Instructions

Search memories by relevance. Returns the most relevant matches.

Use this to recall past transactions, check vendor reputation, retrieve spending patterns, or find any previously stored information.

Args: query: Natural language search query. Examples: - "bitrefill payment history" - "which APIs gave rate limit errors?" - "spending decisions this week" limit: Maximum number of results (default 10, max 100). type: Optional filter by memory type (transaction, vendor, preference, error, decision, general).

Returns: List of matching memories ranked by relevance, with scores.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYes
limitNo
typeNo
Behavior4/5

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

No annotations are provided, so the description carries the full burden. It states the tool returns matches ranked by relevance with scores, implying a read-only operation. It could be more explicit about no side effects, but it is adequately transparent.

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 concise and well-structured: a one-sentence summary, a bullet list of use cases, and a clear args section. Every sentence adds value, and the purpose is front-loaded.

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?

Despite lacking an output schema, the description states the return format (list of memories ranked by relevance with scores). Combined with thorough parameter explanations, it is complete for a search tool with no missing context.

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

Parameters5/5

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

Schema description coverage is 0%, but the description compensates excellently: it explains the 'query' with natural language examples, 'limit' with default and maximum, and 'type' with a list of possible values (e.g., transaction, vendor, preference). This adds significant meaning beyond the bare schema.

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 it searches memories by relevance and returns most relevant matches. It distinguishes itself from siblings like memory_list (which likely lists all) and memory_edit/store/sync, providing a specific verb and resource.

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 gives explicit use cases such as recalling past transactions, checking vendor reputation, and retrieving spending patterns. While it does not explicitly state when not to use it, the use cases are clear and sufficient for an AI agent to decide.

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/singularityjason/lightning-memory'

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