Skip to main content
Glama

ask_memory

Ask questions against stored long-term memory to get direct answers with citations showing which memories were used.

Instructions

One answer to message, written from what the user's memory holds, with the Memory it came from (citations). The passages themselves are not returned.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "message": "<message>"
    },
    "name": "ask_memory"
  }
}

Input Schema

NameRequiredDescriptionDefault
messageYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It usefully discloses two behavioral traits: the answer is synthesized from stored memory, and the underlying passages are withheld while `citations` are returned. However it says nothing about read-only nature, cost/latency, behavior with no matching memory, or failure modes — significant gaps for a tool with zero annotation coverage, partly offset by the existence of an output schema.

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 tight sentences with no filler, leading with what is produced. The parenthetical '(`citations`)' is slightly awkward and the phrase 'written from what the user's memory holds' is a little indirect, but nothing is wasted.

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?

For a one-parameter tool with an output schema, the description covers the essential shape of the result and even clarifies what is not returned. It is still incomplete on routing (when to prefer this over retrieval siblings) and on edge-case behavior when memory has no relevant content.

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?

There is a single parameter with 0% schema description coverage. The description references `message` and frames it as the thing being answered, which implies it is a natural-language question rather than an ID or filter, but it adds no detail on length, phrasing constraints, or whether conversation context matters.

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 uses a specific verb+resource framing: it produces 'one answer to `message`' derived from 'what the user's memory holds', and returns the originating Memory as citations. It also implicitly distinguishes itself from retrieval siblings by stating 'The passages themselves are not returned', making clear this is a synthesized answer rather than raw passage retrieval. It stops short of naming the sibling to use instead (e.g. search_memories).

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: an agent can infer this tool is for getting a single synthesized answer with provenance, versus raw passages. There is no explicit when-to-use statement, no condition selecting it over search_memories or get_memory, and no guidance for what to do when memory is empty.

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