Skip to main content
Glama

recall_memory

Search agent working memory and constitutional guardrails with BM25 lexical queries, namespace and tag filters, staleness controls, and Git commit provenance.

Instructions

Lexical BM25 search across agent working memory and constitutional guardrails with Git commit SHA provenance and glob namespace filtering.

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": "recall_memory"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagsNoOptional tags filter to match memories with these tags
limitNoMaximum number of memories to return per category (default: 5)
queryNoSearch query string (natural language or keywords) to match against memory content, title, tags, and namespace
namespaceNoOptional namespace filter supporting glob patterns (e.g. "backend/*", "backend/**")
include_staleNoWhether to include hard-expired or stale working memories (default: false)
include_constitutionNoWhether to include high-priority constitutional guardrails (default: true)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.4.0
    • addedInput schema / properties / include_stale
      Added value: +{
      +  "default": false,
      +  "description": "Whether to include hard-expired or stale working memories (default: false)",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / namespace / description
      Previous value: -"Optional namespace filter (e.g. \"backend/payments\")"New value: +"Optional namespace filter supporting glob patterns (e.g. \"backend/*\", \"backend/**\")"
  2. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/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 a meaningful behavioral trait — matching is lexical BM25 rather than semantic, which affects query phrasing — plus Git SHA provenance and two result categories. It omits read-only confirmation, result ordering, and any note about how stale/excluded items affect output.

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?

A single front-loaded sentence with no filler; the mechanism and scope come before the modifiers. The trailing provenance and glob clauses are dense but each maps to real capability, so little 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?

With six fully documented parameters and no output schema, the gaps that remain are the ones the description should fill: what a hit looks like, the two-category result structure implied by 'maximum per category', and default inclusion of constitutional guardrails. Adequate but not complete for a retrieval tool.

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 every parameter already carries its own explanation, making 3 the baseline. The description reinforces the namespace parameter with 'glob namespace filtering' but adds no syntax or default behavior beyond what the schema states.

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 names a specific verb and resource set: 'Lexical BM25 search across agent working memory and constitutional guardrails.' Calling out the lexical/BM25 mechanism is a real differentiator versus semantic recall, and it is distinct from siblings like audit_memory_lineage or commit_memory. It does not, however, distinguish itself from fetch_by_tags_and_keywords.

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

Usage Guidelines2/5

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

There is no when-to-use or when-not-to-use guidance, and no sibling is named as an alternative. An agent must infer from the word 'search' that this is the retrieval path, and cannot tell from the description when to prefer it over fetch_by_tags_and_keywords.

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