ModelBrain
v0.1.6One memory for Claude, ChatGPT and Cursor, on your computer.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
ping Check the server is alive
Liveness check that never touches the store. Use `diagnostics` for anything more.
recall Search memories
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 a…
| Parameter | Type | Description |
|---|---|---|
query * | string | The search query. |
as_of | string | null | Optional date the question is asked on, YYYY-MM-DD; today when omitted. |
branch_scope | string | Which git branch's synced chunks to search: "current" (default), "all", or a branch name. |
collapse_sources | boolean | null | Merge the chunks of one synced file into its best chunk. Default true; pass false to see every chunk. |
created_after | string | null | Keep only memories written at or after this UTC date (YYYY-MM-DD) or RFC 3339 timestamp. |
created_before | string | null | Keep only memories written before this UTC date (YYYY-MM-DD) or RFC 3339 timestamp. |
dedupe_identical | boolean | null | Return a passage found word for word in several synced files once, listing the others in `also_in` (default true). |
folder | string | null | Keep only notes under this folder of a connector. |
k | integer | Maximum number of results to return. |
min_relevance | number | null | Drop hits below this `relevance`; off by default. |
object_type | Keep only memories of this type: a string or a list of strings. | |
partition_scope | string | Which partition(s) to search. |
reasoning | boolean | Also ask the local reasoning model for a cited answer drawn from the hits (default false). |
scope | string | Restrict results to a subset of the store before ranking. |
tags | array | Keep only results carrying at least one of these tags (case-sensitive, exact match). |
verify | boolean | With `reasoning`, run two independent passes and keep only answers both agree on. |
widen | boolean | With `reasoning`, also reason over reworded queries and linked memories. |
remember Save a memory
Save a fact, preference or decision so a later conversation can recall it. Use it when the user asks you to remember something, and whenever the user states a fact, preference or decision worth keeping. Required: `text`. Optional: `tags`, `speaker`, `object_type`, `partition`, `supersedes`, `relations`, `inferred`, `similar_min_relevance`. Returns `key`. Separate from Claude's built-in memory. `partition_use` sets the session's default partition. Set `speaker: "user"` when the text is the user's own words. Correct an earlier memory with `supersedes: <key>`; `forget` on the new key reverts. `si…
| Parameter | Type | Description |
|---|---|---|
text * | string | The text to remember. |
inferred | boolean | True for your own inference rather than something the user stated; hidden until reviewed. |
object_type | string | null | Optional free-text label for what kind of memory. |
partition | string | null | Partition to save into; see `partition_list`. |
relations | array | Optional edges from this new memory to existing ones. |
similar_min_relevance | number | null | Optional cutoff on `similar[].relevance`. |
speaker | string | null | `user` for the user's own words, `assistant` for yours. |
supersedes | string | null | Optional: the key of an existing memory this one corrects or replaces. |
tags | array | Optional tags to attach to this memory. |
expand Fetch one memory in full
Fetch one memory by key: full text, tags and provenance. A split memory comes back whole whichever piece you ask for (`chunk_keys` lists the pieces; `piece_only: true` returns just the one). `truncated: true` means the text was cut at 64 KB. Unlike `recall`, this reaches pending, superseded and deleted objects. Cite `source_uri` for a "connector" source. `edges: true` adds links; `history: true` walks the `supersedes` chain.
| Parameter | Type | Description |
|---|---|---|
key * | string | The key to look up, as returned by `remember` or `recall`. |
edges | boolean | Include this object's edges (both directions) in the response. |
history | boolean | Include the `supersedes` chain, oldest last. |
piece_only | boolean | When true and the key is one piece of a long memory, return only that piece. |
forget Delete a memory
Forget a remembered object by key. `mode` defaults to "revert": on a chain head created with `supersedes` it tombstones the head and restores the predecessor; otherwise it tombstones the target. "chain" tombstones every version of the chain. "object" tombstones only this object. On a synced chunk `mode` is ignored: the whole source is forgotten and never re-ingested (`sync_source_id` names it).
| Parameter | Type | Description |
|---|---|---|
key * | string | The key to forget, as returned by `remember`. |
mode | string | null | `"revert"` (default), `"chain"`, or `"object"`. |
list_memories List memories
List memories by scope without a query, newest first. Use `scope: "user"` for what the user told you, or `scope: "connector:<id>"` for a synced source. Filters work as in `recall`. `count` is the total match count; pass `next_cursor` as `after_key` for the next page. Hides pending and superseded memories by default. Unknown arguments are listed in `ignored_params`.
| Parameter | Type | Description |
|---|---|---|
after_key | string | null | Continue after this key: pass the previous page's `next_cursor`. |
branch_scope | string | Same syntax as `recall`'s `branch_scope` - default `"current"`. |
created_after | string | null | UTC date (YYYY-MM-DD) or RFC 3339 time; keep memories at or after it. |
created_before | string | null | UTC date (YYYY-MM-DD) or RFC 3339 time; keep memories before it. |
limit | integer | Maximum number of results. |
newest_first | boolean | `true` (default) lists newest-written first; `false` lists oldest-written first. |
object_type | Keep only memories of this type: a string or a list of strings. | |
partition_scope | string | Which partition(s) to list. |
scope | string | Same syntax as `recall`'s `scope` - default `"all"`. |
tags | array | Same as `recall`'s `tags` - keep only memories carrying at least one of these. |
partition_list List partitions
List partitions, the namespaces that keep memories apart (for example one per client). Every store has a default "unsorted" partition. `include_archived: true` also lists archived ones.
| Parameter | Type | Description |
|---|---|---|
include_archived | boolean | `false` (default) lists only active partitions; `true` also includes archived ones. |
partition_create Create a partition
Create a partition by name. The name may not be "current", "all", "all_active", "none", start with "id:", or match an active partition. Call `partition_use` to save into it.
| Parameter | Type | Description |
|---|---|---|
display_name * | string | The name for the new partition. |
partition_use Choose the partition for this session
Bind this connection to one partition (an unbound connection searches every active partition): later `remember` calls without `partition` land there, and `recall`/`list_memories` without `partition_scope` search only there. Not persisted across connections. Accepts a name or "id:<ulid>"; "all" is invalid. Returns the bound partition.
| Parameter | Type | Description |
|---|---|---|
partition * | string | Partition name or "id:<ulid>"; "all" and "all_active" are invalid. |
partition_rename Rename a partition
Rename a partition by id. Refused for the default partition and for reserved or taken names.
| Parameter | Type | Description |
|---|---|---|
display_name * | string | The new name. |
id * | string | The partition's id, as returned by `partition_list`/`partition_create`. |
partition_archive Archive a partition
Archive a partition by id. Its memories stay reachable with `partition_scope: "id:<ulid>"`. Refused for the default partition. Idempotent.
| Parameter | Type | Description |
|---|---|---|
id * | string | The partition's id, as returned by `partition_list`/`partition_create`. |
partition_restore Restore an archived partition
Restore an archived partition by id. Refused if an active partition now has its name. Idempotent.
| Parameter | Type | Description |
|---|---|---|
id * | string | The partition's id, as returned by `partition_list`/`partition_create`. |
diagnostics Report server health
Report health: version, store location, `live_count`, search mode, uptime, connector sync state and degraded status. `live_breakdown` explains why `list_memories` may show fewer than `live_count`. Check `connectors[].failures` for files that did not index and `degraded` for skipped corrupt records. Not needed for normal use.
usage Summarize tool usage
Summarize this server's local tool-call log over the last `days`: calls per session by tool, empty recalls, saves per session and errors by code. The log holds no memory content. Not needed for normal use.
| Parameter | Type | Description |
|---|---|---|
days | integer | Summarize the last this-many days (1-90; default 7; the log keeps 90). |
sessions | integer | How many of the most recently active sessions to break down by tool (0-50). |