Skip to main content
Glama

memory_query

Query stored conversational memories by text using full-text search, filter by short- or long-term tier, and sort by recency by default to recall what matters.

Instructions

查询记忆。给 text 走全文检索;不按权重排序时默认按最近触及排序。

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "memory_query"
  }
}

Input Schema

NameRequiredDescriptionDefault
textNo
tierNo
limitNo
sessionIdNo
includeArchivedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations exist, so the description carries the full burden. It does disclose one genuinely useful behavior (default ordering by most recently touched), but says nothing about whether archived entries are included by default, what tier scoping does, permission requirements, pagination via limit, or the shape of results. It also references ordering "by weight" even though no such parameter appears in the schema, which is confusing rather than clarifying.

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?

Two short sentences with the primary mode of operation stated first and the default ordering second; there is essentially no filler. The only defect is the dangling reference to weight-based sorting, which adds ambiguity instead of value.

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

Completeness2/5

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

For a five-parameter retrieval tool with no annotations, no output schema, and zero schema coverage, the description is far too thin: it omits scoping, limits, archival behavior, and return characteristics. An agent could invoke it, but not confidently or correctly in most cases.

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

Parameters2/5

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

Schema description coverage is 0%, so the description must compensate, but it only touches `text` (full-text search). The other four parameters — `tier`, `limit`, `sessionId`, `includeArchived` — receive no explanation anywhere, and the mention of a weight-based sort corresponds to no parameter at all.

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?

"查询记忆" names a specific verb and resource, and the description further specifies that supplying `text` triggers full-text search with recency-based default ordering. It is clear what the tool does, but it never distinguishes itself from close siblings such as memory_recall or memory_context_head, leaving the agent to guess which retrieval tool applies.

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

Usage Guidelines3/5

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

Usage is only implied: the clause about `text` suggests this tool is for keyword/full-text lookups, but there is no explicit when-to-use, when-not-to-use, or named alternative. With a sibling named memory_recall in the catalog, the absence of routing guidance is a real gap.

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