MCP tool reference
The 12 tools the Tess Memory server offers an agent. The descriptions below are
the ones the agent itself reads. Every project argument accepts a project key from
list_projects, or an absolute path for a project named after its working directory.
Recall
get_project_context
Orient in a project: rolling profile, open plan, last 10 session summaries.
Call this when starting work in a project the user has history with — it covers architecture, key decisions, current state, known problems, the user's preferences for that project, and the open plan board, cheaper than re-exploring.
| Argument | Type | Default | Meaning |
|---|---|---|---|
project | str | required | Logical project key from list_projects, e.g. 'assistant' or '-Users-sam-agents-assistant'. Absolute cwd paths are also accepted for cwd-derived projects. |
search_memory
Search past-session memory and authored plans.
Use mode='static' for routine/direct recall (one hybrid lookup, no retrieval LLM), or mode='agentic' for multi-step historical research. mode='auto' follows the configured default. Structurally empty scopes return immediately without constructing embedding or LLM providers.
Use it for: "have we solved this before", past decisions and their rationale, exact commands/flags/paths from earlier work, error messages seen before, and the user's preferences. In agentic mode, an agent inside the server reformulates the query, fans out sub-searches, follows session links across projects, and returns curated evidence (never a synthesized answer) — so state the FULL information need in one call instead of firing keyword fragments. Results carry session ids — drill down with get_session. If something is missing, refine the request and call again.
| Argument | Type | Default | Meaning |
|---|---|---|---|
query | str | required | A SELF-CONTAINED, context-rich query — NOT the user's literal words. You have the conversation context; the search does not. Rewrite the ask into a standalone query naming the project, technologies, file names, and any error text verbatim (error strings retrieve extremely well). Bad: 'the bug from before'. Good: 'fix for FTS5 trigger corruption during incremental ingest in tess-memory sqlite store'. |
project | str | None | None | Logical project key to scope the search (get keys from list_projects), or an absolute cwd path for a cwd-derived project. Omit to search across all projects. |
level | str | None | None | Timescale filter: 'chunk' = raw activity (exact commands, error output, code snippets); 'memory' = distilled atomic facts; 'session' = whole-session summaries; 'digest' = weekly summaries; 'project' = rolling project profiles; 'plan' = authored plan items (vision/epics/slices/tasks/notes). Omit to search all levels. |
kind | str | None | None | Memory-kind filter (applies to level='memory'): decision | fact | preference | solution | problem | task_state. Use 'solution' for past fixes, 'preference' for how the user likes things done. |
after | str | None | None | ISO date lower bound, e.g. '2026-07-01'. |
before | str | None | None | ISO date upper bound, e.g. '2026-07-31'. |
limit | int | None | None | Max evidence items returned (default: search.evidence_limit in settings.toml, 12). |
mode | str | 'auto' | 'static' runs one hybrid lookup without the retrieval LLM (routine recall); 'agentic' enables multi-step search; 'auto' follows [search] agent. |
recent_activity
What the user worked on recently, across all projects.
Answers "what was I doing last week / where did I leave off" — weekly digests plus per-session outcomes, newest first.
| Argument | Type | Default | Meaning |
|---|---|---|---|
days | int | 7 | Lookback window in days (default 7). |
get_session
Drill into one past session: full summary, outcome, and its memories.
Use after search_memory or get_project_context surfaces a session id you want the complete picture of.
| Argument | Type | Default | Meaning |
|---|---|---|---|
session_id | str | required | Session id exactly as shown in search results or project context (a UUID, 'codex:<native-id>' for Codex, or 'agent-...' for subagent tasks). |
get_session_transcript
Read one bounded page from a session's existing source transcript.
This tool is strictly read-only: it does not ingest, distill, embed, index,
or modify the transcript or memory database. Continue with next_cursor
until complete is true.
| Argument | Type | Default | Meaning |
|---|---|---|---|
session_id | str | required | Session id exactly as shown by search_memory, get_project_context, or get_session. The source path is resolved internally; arbitrary paths cannot be read. |
cursor | int | 0 | Zero-based BYTE offset returned as next_cursor by the previous page. Use 0 for the first page. |
max_bytes | int | 12000 | Maximum source bytes in this page. A page may be slightly smaller so that it ends on a character boundary. |
list_projects
List all known projects, newest activity first.
Covers both planes: projects with ingested session memory and projects that so far exist only as a plan board (planned before their first session). This is the authority for logical project keys.
Takes no arguments.
Plan
plan_add
Create a plan item: vision, epic, slice, task, or freeform note.
When the user asks to plan work, capture the plan HERE — one call per item, parents before children (each call returns the new item's id) — not just as prose in your reply. New items start as 'planned'. The plan is durable working memory: it persists across sessions and harnesses, and items are searchable via search_memory (level='plan'). Check plan_board first to pick the right parent and avoid duplicates.
| Argument | Type | Default | Meaning |
|---|---|---|---|
project | str | required | Logical project key the item belongs to — use the exact key from list_projects. Absolute cwd paths are also accepted for cwd-derived projects. |
kind | str | required | vision | epic | slice | task | note. Typical nesting: vision -> epic -> slice -> task (a convention, not enforced). 'note' is freeform scratchpad — attach it to any item or leave it top-level. |
title | str | required | Short imperative title; for notes, a one-line gist. |
body | str | '' | Full text: context, rationale, acceptance criteria, scratch content. Write it SELF-CONTAINED — future sessions read this without today's conversation. |
parent_id | int | None | None | id of the parent item (find ids with plan_board). Omit for top-level. |
priority | int | 3 | 1 (highest) to 5 (lowest); default 3. |
tags | list[str] | None | None | Lowercase keyword tags for retrieval. |
plan_update
Update a plan item: move status, edit, reprioritize, or re-parent.
Maintain status LIVE, at the moment it changes: in_progress when you begin an item, complete when the work is done AND verified, blocked or dropped when reality changes (put the reason in the body). Roll status up the tree too: a parent epic/slice goes in_progress with its first started child and complete with its last finished one. Do not batch updates for session end — a stale board misleads every future session. Every transition is timestamped and recorded in the item's history.
| Argument | Type | Default | Meaning |
|---|---|---|---|
item_id | int | required | Plan item id (see plan_board). |
status | str | None | None | New status: planned | in_progress | blocked | complete | dropped. Items are never deleted — 'complete' finishes, 'dropped' retires. Every change is timestamped in the item's history. Omit to keep. |
title | str | None | None | New title. Omit to keep. |
body | str | None | None | Replacement body text (full replacement, not appended). Omit to keep. |
priority | int | None | None | New priority 1-5. Omit to keep. |
parent_id | int | None | None | New parent id; 0 makes the item top-level. Omit to keep. |
tags | list[str] | None | None | Replacement tag list. Omit to keep. |
plan_board
The project's authored plan as a tree: vision/epics/slices/tasks/notes.
Shows ids, status, and priority for every item. Call it when starting work, and before plan_add to find parent ids and avoid duplicates.
| Argument | Type | Default | Meaning |
|---|---|---|---|
project | str | required | Logical project key — use the exact key from list_projects. Absolute cwd paths are also accepted for cwd-derived projects. |
include_done | bool | False | Include complete/dropped items (default: open work only). |
plan_get
One plan item in full: body, parent, children, and change history.
| Argument | Type | Default | Meaning |
|---|---|---|---|
item_id | int | required | Plan item id, as shown by plan_board or search results. |
Share and inspect
memory_share
Change who may read one of YOUR memories or sessions.
Only the author (or an administrator) may change a row's visibility. Use it when the user asks to share something with their team or take it back.
| Argument | Type | Default | Meaning |
|---|---|---|---|
target | str | required | What to share: 'memory:<id>' for one memory, or 'session:<id>' for a session's distilled output (its memories and summary, never raw chunks). |
visibility | str | required | 'team' (the project's team may read it), 'org' (everyone on this instance), 'private' (only you), or 'default' (back to the policy). |
memory_status
Report stored counts, source progress, failures and pending rollups.
Existing count fields remain at the top level. The ingestion section distinguishes published source coverage from worker/supervisor liveness.
Takes no arguments.