Skip to main content
Glama
modelbrain-mcp

modelbrain-mcp

Official

Search memories

recall
Read-onlyIdempotent

Find stored memories nearest a query to retrieve relevant user context before answering questions.

Instructions

Find the memories nearest a query, best first. Required: query. Check this before saying you don't know something about the user; it is not consulted automatically. Hits carry key, text, relevance, created_at, source_date, partition, source, tags. Read dates from source_date (when the content happened), not created_at (when it was indexed): resolve relative dates against it and prefer the later one when two hits disagree on a fact. For a "connector" hit cite source_uri, not key. Unbound connections search every active partition; partition_scope narrows ("all" adds archived). Use scope: "user" for what the user told you. Pending and superseded memories are hidden by default. Filters: tags, object_type, created_after, created_before, scope. Use list_memories to browse without a query.

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

Input Schema

NameRequiredDescriptionDefault
kNoMaximum number of results to return.
tagsNoKeep only results carrying at least one of these tags (case-sensitive, exact match).
as_ofNoOptional date the question is asked on, YYYY-MM-DD; today when omitted.
queryYesThe search query.
scopeNoRestrict results to a subset of the store before ranking.all
widenNoWith `reasoning`, also reason over reworded queries and linked memories.
folderNoKeep only notes under this folder of a connector.
verifyNoWith `reasoning`, run two independent passes and keep only answers both agree on.
reasoningNoAlso ask the local reasoning model for a cited answer drawn from the hits (default false).
object_typeNoKeep only memories of this type: a string or a list of strings.
branch_scopeNoWhich git branch's synced chunks to search: "current" (default), "all", or a branch name.current
created_afterNoKeep only memories written at or after this UTC date (YYYY-MM-DD) or RFC 3339 timestamp.
min_relevanceNoDrop hits below this `relevance`; off by default.
created_beforeNoKeep only memories written before this UTC date (YYYY-MM-DD) or RFC 3339 timestamp.
partition_scopeNoWhich partition(s) to search.current
collapse_sourcesNoMerge the chunks of one synced file into its best chunk. Default true; pass false to see every chunk.
dedupe_identicalNoReturn a passage found word for word in several synced files once, listing the others in `also_in` (default true).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare this a safe, idempotent read, and the description adds substantial behavior beyond them: pending and superseded memories are hidden by default, unbound connections search every active partition, `partition_scope: "all"` includes archived, and conflicting hits should be resolved in favor of the later `source_date`. It does not describe ranking mechanics or pagination/truncation behavior, so not a 5.

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 purpose and the sibling alternative, and nearly every clause carries operational detail (date semantics, hidden states, citation rule). It is dense and slightly scattered — the hit-field list and citation guidance sit between the usage trigger and the filter list — but for a 17-parameter tool the length is justified.

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 compensates by enumerating the hit fields (`key`, `text`, `relevance`, `created_at`, `source_date`, `partition`, `source`, `tags`) and explaining how to cite connector hits. Combined with default-hiding rules and partition scoping, an agent has everything needed to call and interpret this correctly.

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 100%, so the baseline is 3, but the description adds real meaning the schema lacks: the valid `scope: "user"` value, the fact that `partition_scope: "all"` includes archived partitions, and the `source_date` vs `created_at` distinction that governs the date filters. Several params (`k`, `as_of`, `widen`, `verify`, `reasoning`, `min_relevance`, `collapse_sources`, `dedupe_identical`) are left entirely to 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?

Opens with a specific verb, resource, and result ordering ("Find the memories nearest a query, best first"), then explicitly contrasts itself with the sibling `list_memories` ("browse without a query"). An agent can distinguish recall from list_memories without opening either 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?

Gives an explicit trigger ("Check this before saying you don't know something about the user"), a caveat ("it is not consulted automatically"), a named alternative with its selecting condition ("Use `list_memories` to browse without a query"), and a scoping rule ("Use `scope: "user"` for what the user told you"). When-to-use and when-not are both covered.

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