Agent tools

Agent tools

Twenty-four MCP tools, one instruction block, and the patterns that make an agent use memory well.

Agent tools2 pages

An agent does not need a memory API. It needs a small, predictable set of tools and a clear idea of when to call them. Memo exposes twenty-four: eight that read, and sixteen that write.

memory_context
Call it when
A session starts, or the user names a new project
Cost
One read, a few hundred tokens returned
memory_search
Call it when
You need one specific fact before answering
Cost
One read, up to 50 results
memory_list
Call it when
You need to enumerate or audit what is stored
Cost
One read, 20 rows per page
memory_get
Call it when
You have an id and need the row or its supersede history
Cost
One read
memory_personal_categories
Call it when
You are about to file a memory and want the valid categories
Cost
One read
memory_add
Call it when
The user states a durable preference, decision or gotcha
Cost
One write per item, up to 50 per call
memory_add_personal
Call it when
You already know it is user memory
Cost
One write per item
memory_add_code
Call it when
You already know it is project memory
Cost
One write per item
memory_update
Call it when
A stored memory is wrong, outdated or incomplete
Cost
One write, no duplicate row
memory_delete
Call it when
A memory is wrong and should not exist at all
Cost
One delete
memory_restore
Call it when
A supersede replaced the value you actually want
Cost
One write, nothing deleted
memory_export
Call it when
The user wants a backup or is moving to another client
Cost
One read, JSON
memory_import
Call it when
Restoring an export, or seeding a new account
Cost
Up to 100 writes per call
memory_personal_category_add
Call it when
The user wants a category of their own
Cost
One write
memory_personal_category_update
Call it when
Rename or recolour a custom category
Cost
One write
memory_personal_category_delete
Call it when
Remove a custom category; its memories move to Fact
Cost
One write
memory_code_types
Call it when
You need the valid code types and their counts
Cost
One read
memory_code_category_add
Call it when
The user wants a custom code type
Cost
One write
memory_code_category_update
Call it when
Rename or recolour a custom code type
Cost
One write
memory_code_category_delete
Call it when
Remove a custom code type; its memories move to Fact
Cost
One write
memory_repos
Call it when
You need the repositories you can file memory under
Cost
One read
memory_repo_create
Call it when
Register a repository before writing to it
Cost
One write
memory_repo_share
Call it when
Invite a teammate to a repository you own (Pro)
Cost
One write
memory_feedback
Call it when
A retrieved memory was clearly useful or clearly wrong
Cost
One small write

The pattern that works

  • Start with context, not search. memory_context returns the small pack that makes an agent feel like it already knows the project. Searching first produces narrow answers to broad questions.
  • Search when the question is specific. “What command do we use for migrations?” is a search. “What are you working on?” is context.
  • Write only what is durable. A preference, a decision, a rule, a gotcha. Not the task, not the plan for this turn, not something already stored.
  • Update instead of adding again. When the user corrects a stored fact, call memory_update with its id. A second memory_add leaves two contradictory rows.
  • Use a key for rules with one current answer. Commands, paths, environment variables, package managers. The next save replaces the value.
  • Rate what was used. Feedback is the only signal that tells Memo a memory was worth retrieving.

The server's instructions

Connecting over MCP also sends an instruction block, which most clients surface to the model automatically:

server instructions
Memo is the user's long-term memory across AIs: personal preferences, facts,
goals, people, skills, plus project conventions, decisions and gotchas for code.

- Call memory_context at the start of a task.
- Call memory_search when you need a specific fact.
- Call memory_add when the user states a durable preference, fact, goal,
  decision or gotcha.
- When a stored memory is wrong or out of date, correct it with memory_update
  using its id instead of adding a second row; use memory_delete to remove one.
- For code memories pass repo as 'owner/name'; for personal memories pass
  kind='personal'.
- Pass a stable key on code or personal memories so updated values overwrite
  instead of duplicating.

If your client ignores server instructions

Some clients show tools but do not forward the server's instruction text. Put the same rules in your project instructions — CLAUDE.md, AGENTS.md, .cursor/rules or the equivalent — so the behaviour survives a client that only reads its own prompt files.

CLAUDE.md
## Memory
Use Memo for anything I would otherwise repeat:
- start tasks with memory_context (repo: current repository)
- search before assuming a convention
- save durable preferences, decisions and gotchas with memory_add
- do not save task instructions or one-off plans
Scope

Tools are scoped to the token's owner. A shared repository appears automatically, but personal memory from a teammate never does.

The next page is the full parameter reference for each tool, including the response shapes your client will see.