Skip to main content
Glama

ask_memory

Read-onlyIdempotent

Recall everything local memory knows about a task—policy, curated memory, and supporting evidence—in priority order with citations. An empty result means memory has nothing relevant.

Instructions

READ-ONLY: recall one bounded bundle of everything local memory knows about a task, combining mandatory policy, curated memory, and supporting harvested agent evidence in priority order. This is the default recall tool and the right first call when you do not already know which store holds the answer; search_memory and search_evidence each cover only one store. Local and free by default. Returns an empty bundle rather than an error when nothing relevant exists, so an empty result means the memory is genuinely silent. Parameters: task is the natural-language task or question to recall for; answer defaults to false and returns the raw bundle, and setting it true spends a configured provider call, which may leave the machine, to produce a grounded cited answer; mode sets that answer's verbosity to concise, normal, or thorough and is ignored when answer is false; token_budget bounds the bundle size in approximate tokens (default 4000); limit caps how many supporting evidence items are considered (default 12); include_history adds superseded evidence; agent is the requesting agent identifier recorded for attribution (default mcp-client); project_path project root whose memory tree the operation applies to. Omit it to use the machine-wide tree, and always omit it when this server was started pinned to a project. Returns an object with the mandatory policy, curated memory, and evidence sections, each carrying source citations, plus the generated answer when answer is true.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeNoAnswer verbosity when answer is true. Ignored when answer is false. Defaults to normal.normal
taskYesNatural-language task or question to recall relevant policy, memory, and evidence for.
agentNoTarget agent identifier used to shape and attribute the result. Defaults are tool-specific.mcp-client
limitNoMaximum number of matching results to return. Defaults are tool-specific.
answerNoWhen true, spend a configured provider call to generate a grounded cited answer from the recalled memory instead of returning the bundle alone.
project_pathNoProject root whose memory tree the operation applies to. Omit it to use the machine-wide tree, and always omit it when this server was started pinned to a project.
token_budgetNoApproximate maximum token size of the returned bundle. Omit to use the tool default.
include_historyNoWhen true, include historical or superseded memory evidence in addition to active evidence.
Behavior5/5

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

The description adds substantial behavior beyond the readOnly/idempotent annotations: it returns an empty bundle rather than erroring, answer=true may send data to a provider and 'may leave the machine,' and it is local/free by default. It also explains include_history semantics and priority ordering, none of which contradict the 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 front-loaded with purpose and usage, then systematically covers parameters. It is longer than typical one-liners, but every sentence adds necessary nuance for an 8-parameter tool; slight length keeps it from a perfect conciseness score.

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?

With no output schema, the description fully explains the return shape: mandatory policy, curated memory, evidence sections with citations, and the optional generated answer. It also covers defaults, edge cases like empty results, and external side effects, making it complete for an agent to select and invoke the tool.

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?

Even though schema coverage is 100%, the description enriches every parameter: answer's default and provider-call implication, mode being ignored when answer is false, limit capping supporting evidence, include_history adding superseded evidence, agent attribution, token_budget bounding size, and project_path omission rules. This is far beyond the 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 opens with a specific verb and resource: 'recall one bounded bundle of everything local memory knows about a task.' It also explicitly distinguishes itself from search_memory and search_evidence, making it clear this is the broad default recall tool rather than a store-specific search.

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 states this is 'the default recall tool and the right first call' when the correct store is unknown, and notes that search_memory and search_evidence each cover only one store. It also provides clear guidance on when to omit project_path, including the pinned-project exception.

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/docmancer/docmancer'

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