Skip to main content
Glama

memory_recall

Hybrid recall across memory pillars within the caller's org.

Cheap two-step recall: call with detail="summary" first (id, pillar, title/subject, one-line summary, score, provenance per hit), then memory_get(ids=[...]) for the full text of the few hits you will use. detail="full" (default) returns full records at once.

Default scope searches durable pillars only (semantic, episodic, procedural, skill, strategic, work). Pass scope=["working"] to include this chat's open session turns. Shared brain on durable pillars: pass agent="cursor" only to narrow semantic/episodic. For entity/competitor questions use a short keyword anchor in query (e.g. "mex") plus repo / github. Use explain=true; prefer hits with matched_keyword: true. Default recall is current truth (superseded/merged rows are omitted); pass include_superseded=true for the replacement chain, or as_of=<ISO-8601> for transaction-time point-in-time current truth. When namespace= is set, semantic/episodic hits outside that container are excluded. Hits include a small provenance citation block (id, kind, timestamps, optional retired_at, optional title, optional source, optional uncertainty_with when another active row disagrees across writer_class) — metadata only, never page HTML. Current truth may be more than one active row when writers disagree. Result includes org + bound (alias session_bound). bound is the MCP org-session overlay, not GitHub: false on a normal /mcp session still writes to the token's org. GitHub connection is github_repo_list (and the Connected repos line), not this field.

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": {
      "query": "<query>"
    },
    "name": "memory_recall"
  }
}

Input Schema

NameRequiredDescriptionDefault
kNoMax records to return
repoNoWorkspace slug of your current repo. When set, durable memories tagged for this repo are boosted (ranked higher); nothing is hidden — cross-repo and un-scoped memories still appear. Pass your workspace slug when recalling for code/repo-specific work.
agentNoOptional filter — restrict semantic/episodic results to this agent's writes. Default (None) is the shared brain: every agent's durable memories in the org are visible. Working memory is always scoped to the caller regardless.
as_ofNoISO-8601 timestamp. Semantic and episodic rows only (not working, procedural, skill, strategic, or work). Omit for live current truth. A future or unparseable value is invalid_body on as_of. When set, wins over include_superseded.
queryYesNatural-language query
scopeNoPillars to search: working, semantic, episodic, procedural, skill, strategic, work, or all. Default (null) omits working. Add scope=['working'] for this chat's open session turns.
detailNo'full' (default) returns every hit's full record. 'summary' is the cheap scan mode and the preferred first step: per hit only id, pillar, kind, title/subject, a one-line summary (~160 chars), score, matched_keyword (with explain=true) and provenance. Then call memory_get(ids=[...]) for the few records you will use. Summary mode ignores verbose.full
githubNoGitHub repository as owner/repo. Boosts memories tagged github:<owner>/<repo> (portable across checkout paths).
explainNoWhen true, include per-record retrieval attribution in metadata.ranking (base RRF, every factor including bounded feedback trust from memory_feedback votes, relevance floor verdict, diversity penalty; its score equals the hit's score), plus read-only feedback_score when votes exist
filtersNoOptional AND filter. pillar is working, semantic, episodic, procedural, skill, strategic, work, or all. Also kind, subject, tags, since, and until. Unknown keys are rejected. Example: {"kind": "fact", "tags": ["decision"]}.
verboseNoWhen false, truncate record content and omit metadata
namespaceNoOrg-allowlisted container. When set, semantic/episodic hits outside this slug are excluded (not merely demoted). Omit to keep shared-org recall. repo=/github= still boost. Unknown slugs fail. Example: github:acme/app or project:alpha.
time_rangeNoOptional time bounds for episodic/working hits
deadline_secondsNoOptional wall-clock budget for this call. Finished pillars are returned with errors_by_pillar timeout codes and degraded=true instead of letting the MCP client kill the whole call. Omit to use the server TEAMSHARED_RECALL_DEADLINE_SECONDS default (unset = no cutoff).
include_supersededNoWhen true, also return superseded/merged history. Default is current truth only.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedInput schema / properties / as_of / description
      Previous value: -"ISO-8601 timestamp: answer from what was current at that instant (transaction time). created_at <= as_of and not retired before it; soft-deleted rows are never returned. Semantic and episodic memory only (no working buffer, graph expansion, playbooks, skills, strategy or work), read with the same scope and share rules as live recall; relative dates in the query are relative to as_of. Omit for live current truth. A future or unparseable value is a 422 invalid_body on as_of. When set, wins over include_superseded."New value: +"ISO-8601 timestamp. Semantic and episodic rows only (not working, procedural, skill, strategic, or work). Omit for live current truth. A future or unparseable value is invalid_body on as_of. When set, wins over include_superseded."
    • changedInput schema / properties / filters / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": true,
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "description": "Optional AND filter for ``memory_recall``.\n\nUnknown keys are rejected. An empty object is a no-op. When every\ncandidate is dropped, recall retries once without the filter and sets\n``filter_relaxed`` on the result.",
      +    "properties": {
      +      "kind": {
      +        "anyOf": [
      +          {
      +            "enum": [
      +              "fact",
      +              "preference",
      +              "event",
      +              "note",
      +              "procedure",
      +              "skill",
      +              "outreach"
      +            ],
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "fact, preference, event, note, procedure, skill, or outreach."
      +      },
      +      "pillar": {
      +        "anyOf": [
      +          {
      +            "enum": [
      +              "working",
      +              "semantic",
      +              "episodic",
      +              "procedural",
      +              "skill",
      +              "strategic",
      +              "work",
      +              "all"
      +            ],
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "working, semantic, episodic, procedural, skill, strategic, work, or all."
      +      },
      +      "since": {
      +        "anyOf": [
      +          {
      +            "format": "date-time",
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "ISO datetime, inclusive."
      +      },
      +      "subject": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Exact subject, case-insensitive."
      +      },
      +      "tags": {
      +        "anyOf": [
      +          {
      +            "items": {
      +              "type": "string"
      +            },
      +            "type": "array"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Record must include every tag."
      +      },
      +      "until": {
      +        "anyOf": [
      +          {
      +            "format": "date-time",
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "ISO datetime, inclusive."
      +      }
      +    },
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / filters / description
      Previous value: -"Optional AND filter. Keys (all optional): kind (fact|preference|event|note|outreach|skill|procedure), pillar (semantic|episodic|procedural|skill|strategic|work), subject (exact, case-insensitive), tags (list; record must include every tag), since / until (ISO datetimes). Example: {\"kind\": \"fact\", \"subject\": \"HolderBrief\", \"tags\": [\"decision\"]}. Nested AND/OR/NOT is not supported — omit a key instead. Empty result retries once without the filter (filter_relaxed=true on the result). Not for named playbook/skill/entity — use get-by-name tools."New value: +"Optional AND filter. pillar is working, semantic, episodic, procedural, skill, strategic, work, or all. Also kind, subject, tags, since, and until. Unknown keys are rejected. Example: {\"kind\": \"fact\", \"tags\": [\"decision\"]}."
    • changedInput schema / properties / scope / description
      Previous value: -"Pillars to search. Default (null): durable pillars only (semantic, episodic, procedural, skill, strategic, work) — working is omitted. Add scope=['working'] when you need this chat's open session turns."New value: +"Pillars to search: working, semantic, episodic, procedural, skill, strategic, work, or all. Default (null) omits working. Add scope=['working'] for this chat's open session turns."
  2. Changed1 schema field changed
    • addedInput schema / properties / detail
      Added value: +{
      +  "default": "full",
      +  "description": "'full' (default) returns every hit's full record. 'summary' is the cheap scan mode and the preferred first step: per hit only id, pillar, kind, title/subject, a one-line summary (~160 chars), score, matched_keyword (with explain=true) and provenance. Then call memory_get(ids=[...]) for the few records you will use. Summary mode ignores verbose.",
      +  "enum": [
      +    "full",
      +    "summary"
      +  ],
      +  "type": "string"
      +}
  3. Changed1 schema field changed
    • addedInput schema / properties / as_of
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "ISO-8601 timestamp: answer from what was current at that instant (transaction time). created_at <= as_of and not retired before it; soft-deleted rows are never returned. Semantic and episodic memory only (no working buffer, graph expansion, playbooks, skills, strategy or work), read with the same scope and share rules as live recall; relative dates in the query are relative to as_of. Omit for live current truth. A future or unparseable value is a 422 invalid_body on as_of. When set, wins over include_superseded."
      +}
  4. Changed1 schema field changed
    • changedInput schema / properties / explain / description
      Previous value: -"When true, include per-record retrieval attribution in metadata.ranking (base RRF, every factor, relevance floor verdict, diversity penalty; its score equals the hit's score), plus read-only feedback_score when votes exist"New value: +"When true, include per-record retrieval attribution in metadata.ranking (base RRF, every factor including bounded feedback trust from memory_feedback votes, relevance floor verdict, diversity penalty; its score equals the hit's score), plus read-only feedback_score when votes exist"
  5. Changed1 schema field changed
    • changedInput schema / properties / explain / description
      Previous value: -"When true, include per-record retrieval attribution in metadata, plus read-only feedback_score when votes exist"New value: +"When true, include per-record retrieval attribution in metadata.ranking (base RRF, every factor, relevance floor verdict, diversity penalty; its score equals the hit's score), plus read-only feedback_score when votes exist"
  6. Changed1 schema field changed
    • addedInput schema / properties / namespace
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Org-allowlisted container. When set, semantic/episodic hits outside this slug are excluded (not merely demoted). Omit to keep shared-org recall. repo=/github= still boost. Unknown slugs fail. Example: github:acme/app or project:alpha."
      +}
  7. Changed1 schema field changed
    • changedInput schema / properties / explain / description
      Previous value: -"When true, include per-record retrieval attribution in metadata"New value: +"When true, include per-record retrieval attribution in metadata, plus read-only feedback_score when votes exist"
  8. Changed1 schema field changed
    • addedInput schema / properties / deadline_seconds
      Added value: +{
      +  "anyOf": [
      +    {
      +      "exclusiveMinimum": 0,
      +      "type": "number"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Optional wall-clock budget for this call. Finished pillars are returned with errors_by_pillar timeout codes and degraded=true instead of letting the MCP client kill the whole call. Omit to use the server TEAMSHARED_RECALL_DEADLINE_SECONDS default (unset = no cutoff)."
      +}
  9. Changed1 schema field changed
    • addedInput schema / properties / filters
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": true,
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Optional AND filter. Keys (all optional): kind (fact|preference|event|note|outreach|skill|procedure), pillar (semantic|episodic|procedural|skill|strategic|work), subject (exact, case-insensitive), tags (list; record must include every tag), since / until (ISO datetimes). Example: {\"kind\": \"fact\", \"subject\": \"HolderBrief\", \"tags\": [\"decision\"]}. Nested AND/OR/NOT is not supported — omit a key instead. Empty result retries once without the filter (filter_relaxed=true on the result). Not for named playbook/skill/entity — use get-by-name tools."
      +}
  10. Changed1 schema field changed
    • addedInput schema / properties / include_superseded
      Added value: +{
      +  "default": false,
      +  "description": "When true, also return superseded/merged history. Default is current truth only.",
      +  "type": "boolean"
      +}
  11. First observed

TDQS

A4.5/5.0
Behavior4/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, and it does most of it: default current-truth semantics, exclusion (not demotion) under namespace, superseded-chain behavior, timeout degradation via deadline_seconds, and the meaning of the bound/org-session overlay versus GitHub. It stops short of explicitly declaring the operation read-only or describing auth/permission requirements, which leaves a mutation-related ambiguity an agent may care about.

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?

Front-loaded with the two-step pattern before any parameter detail, which is the right ordering for a 15-parameter tool. Density is justified by complexity, though the paragraph on bound/session overlay drifts toward explanatory aside and some clauses ("Shared brain on durable pillars: pass agent="cursor" only to narrow...") are awkwardly compressed.

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

Completeness4/5

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

For a 15-parameter, multi-pillar retrieval tool with an output schema, the description covers defaults, scope semantics, ranking hints, and degradation behavior well; return-value detail is correctly delegated to the output schema. The remaining gap is that read-only/safety and failure modes beyond deadline timeouts are never stated, forcing inference from the name.

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

Parameters4/5

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

Schema coverage is already 100%, so the baseline is 3; the description earns extra by adding meaning the schema does not, notably the rationale for detail="summary" over "full", the exclusivity rule that as_of wins over include_superseded and applies only to semantic/episodic, and the query-craft advice (short keyword anchor like "mex"). It does not explain every parameter, but the high-value ones are covered.

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?

States a specific verb+resource ("Hybrid recall across memory pillars within the caller's org") and immediately distinguishes itself from the sibling that continues the job, memory_get, via the two-step summary→get pattern. An agent can tell what this does and what it does not do without opening a schema.

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?

Names explicit alternatives and conditions: call with detail="summary" first, then memory_get(ids=[...]) for the few hits used; scope=["working"] to include chat turns; agent="cursor" only to narrow semantic/episodic; explain=true with a short keyword anchor for entity/competitor questions; include_superseded or as_of for historical truth. This is genuine when-to-use and when-not guidance rather than implied context.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.