Agent tools

Tool reference

Parameters, responses and error behaviour for the twenty-four memory tools.

Agent tools2 pages

All twenty-four tools run over the same MCP endpoint. Parameters marked required must be present; everything else has a safe default.

Hybrid search across both stores, with repository and path signals for code memory.

Free accounts receive at most 5 results per call; Pro up to 50.

query
Type
string, 2+ chars
Notes
What you are trying to recall.
kind
Type
all | personal | code
Notes
Defaults to all.
repo
Type
string
Notes
Repository as owner/name, used for ranking and to include shared memory.
paths
Type
string[] (max 20)
Notes
Files being edited; matching memories rank higher.
types
Type
category or type[]
Notes
Personal categories or code types; mixing the two is rejected with the valid values.
limit
Type
1–50
Notes
Default 6; still capped by the plan.
offset
Type
0–500
Notes
Skip ranked results to reach a second page.
includeSuperseded
Type
boolean
Notes
Also rank values a newer memory replaced.
response
{
  "personal": [
    { "id": "…", "content": "Prefers pnpm over npm.", "category": "preference", "importance": 0.8, "status": "active", "createdAt": "2026-11-20T08:00:00.000Z", "score": 0.61 }
  ],
  "code": [
    { "id": "…", "content": "Deploy only after typecheck and tests pass.", "type": "convention", "repo": "acme/memo", "score": 0.72 }
  ],
  "count": 2
}

memory_context

A prompt-ready pack. Cheapest possible start to a session.

preset
Type
chat | coding | full
Notes
Budgets of ~1,200, ~1,600 and ~2,800 characters; free accounts cap every preset at 1,200.
repo
Type
string
Notes
Include that repository's code memory, ranked first for coding.
path
Type
string
Notes
File or directory being worked on.
task
Type
string
Notes
Short description of the current task; matching memories move up.
limit
Type
1–100
Notes
Caps how many memories of each kind feed the pack.
pinned
Type
0–20
Notes
Always include this many highest-importance personal memories.
pinnedIds
Type
uuid[] (max 20)
Notes
Memories that must appear, whatever the task text matches.
categories, excludeCategories
Type
category[]
Notes
Restrict which kinds of personal memory can appear.

Returns plain text, not JSON — it is meant to be read by the model as-is.

memory_add

Store one durable memory. Personal and code memory share the tool.

content
Type
string, 3–4,000 chars
Notes
One self-contained statement.
items
Type
array (max 50)
Notes
Batch form: each entry takes the same fields, so eight skills are one call.
kind
Type
personal | code
Notes
Defaults to code when type is present, personal when category is.
category
Type
personal category
Notes
preference, fact, goal, relationship, event, skill, opinion — or any category you added under Settings → Categories (key or label).
type
Type
code type
Notes
preference, convention, decision, fact, gotcha, pattern.
scope
Type
global | repo | branch
Notes
Defaults to repo for code memory.
key
Type
string, max 120
Notes
Stable identity such as build:flags; makes the write an upsert.
repo
Type
string
Notes
Repository as owner/name.
path, symbol, language, branch, commit_sha
Type
string
Notes
Optional location metadata.
confidence
Type
0.05–0.99
Notes
How sure the writer is; affects ranking.
importance
Type
0.05–0.99
Notes
Personal memories only.
source
Type
string, max 40
Notes
Which client wrote it, for display.
response — resolution is created, merged or superseded
{ "id": "…", "kind": "code", "resolution": "created", "content": "…" }
{ "id": "…", "kind": "personal", "resolution": "merged", "content": "…" }

memory_update

Corrects a memory in place. The row keeps its id and history; nothing is duplicated. Works for both stores.

id
Type
uuid, required
Notes
The memory to change, from a search or context result.
kind
Type
personal | code
Notes
Optional; the id decides when omitted.
content
Type
string, 3–4,000 chars
Notes
Replaces the whole text (2,000 for personal memory).
category
Type
personal category
Notes
Personal memory only.
importance
Type
0.05–0.99
Notes
Personal memory only.
type
Type
code type
Notes
Code memory only.
key
Type
string or null, max 120
Notes
A stable identity for the rule; personal memory accepts it too.
path, symbol, language
Type
string or null
Notes
Code memory only.
confidence
Type
0.05–0.99
Notes
Code memory only.
response
{ "id": "…", "kind": "personal",
  "memory": { "id": "…", "content": "Prefers pnpm, not npm.", "category": "preference", … } }

Use it whenever a stored fact changed: a corrected name, a new command, a decision that replaced an older one. Adding a second memory leaves two contradictory rows in recall.

memory_delete

Removes one memory. It moves to status: deleted instead of vanishing, so memory_restore can bring it back; memory_list with status: "deleted" shows what was removed. Use it for rows that are wrong or no longer useful; prefer memory_update when the fact simply changed.

id
Type
uuid, required
Notes
The memory to remove.
kind
Type
personal | code
Notes
Optional; the id decides when omitted.
response
{ "id": "…", "kind": "code", "deleted": true }

A teammate with viewer access cannot update or delete a shared repository's memory; the call returns a read-only error.

memory_list

Browses stored memory in creation order, newest first, with a cursor. Use it to enumerate or audit memory instead of guessing search queries — searching for “goal” returns whatever ranks highest, not the goals.

kind
Type
all | personal | code
Notes
Defaults to all.
status
Type
active | pending | superseded | all
Notes
Defaults to active.
categories
Type
personal category[]
Notes
Personal memory only.
types
Type
code type[]
Notes
Code memory only.
repo
Type
string
Notes
Limit code memory to one repository.
since, until
Type
ISO date
Notes
Created-on-or-after, created-before.
includeSuperseded
Type
boolean
Notes
Include rows a newer value replaced.
limit
Type
1–100
Notes
Default 20.
cursor
Type
string
Notes
The nextCursor from the previous page.
response
{ "memories": [ { "id": "…", "kind": "personal", "content": "…", "supersededBy": null } ],
  "count": 20, "nextCursor": "MjAyNi0xMS0yOFQwOTowMDowMFp8…" }

memory_get

Reads one memory by id, superseded or not, and returns its supersede chain: the value that replaced it and the values it replaced. This is how a row that no longer ranks in search is still readable.

id
Type
uuid, required
Notes
Any id from list, search or context.
kind
Type
personal | code
Notes
Optional; the id decides when omitted.
history
Type
boolean
Notes
Default true; pass false for the row alone.

memory_restore

Undoes a delete, a supersede, or an in-place rewrite. A deleted row returns to status active; a supersede makes the older value current and hides the newer one; a merged or updated row gets its previous text back. Nothing is removed, so restoring again swaps them back.

id
Type
uuid, required
Notes
The memory to bring back.
kind
Type
personal | code
Notes
Optional; the id decides when omitted.

memory_export

Exports personal and code memory as JSON, superseded versions included, in the same shape memory_import and the dashboard accept.

kind
Type
all | personal | code
Notes
Defaults to all.
repo
Type
string
Notes
Limit code memory to one repository.

memory_import

Restores an export, or seeds a new account from another client. Accepts a JSON string, an array of memories, or an object with personal and code arrays; at most 100 per call. Personal imports skip duplicate resolution so the restored text is exactly what was exported.

data
Type
string | array | object, required
Notes
The export, or a list of memories.

memory_add_personal and memory_add_code

The same write as memory_add, narrowed to one store. memory_add_personal takes content, category, importance and source; memory_add_code takes content, type and the location fields. Both accept items for up to 50 writes in one call, and both refuse a token whose scope excludes that store.

memory_personal_categories

Lists the seven built-ins and the account's custom categories with how many memories each holds. Call it before filing into a category, or when the user asks what categories exist.

memory_personal_category_add, memory_personal_category_update, memory_personal_category_delete

Manage custom categories over MCP. add takes a label, an optional key and an optional color (#rrggbb); update renames or recolours by key; delete removes one and moves its memories to Fact. Built-ins cannot be changed or deleted, and an account can hold 30 custom categories.

memory_code_types, memory_code_category_*, memory_repos, memory_repo_create, memory_repo_share

Code memory has six built-in types (convention, decision, gotcha, pattern, fact, preference) plus whatever the account adds: memory_code_types lists both with counts, and memory_code_category_add, memory_code_category_update, memory_code_category_delete manage the custom ones exactly like personal categories. Repositories scope code memory: memory_repos lists the repositories the account owns or was invited to, with role and memory count; memory_repo_create registers a repository before anything is written to it; memory_repo_share invites a teammate by email and returns a /invite/… path to send them (Pro only, owner only, expires in seven days).

memory_feedback

id
Type
uuid
Notes
The memory id from a search or context result.
helpful
Type
boolean
Notes
Mark useful or not; helpful memories rank higher over time.
response
{ "id": "…", "helpful": true, "found": true }

Errors

  • Invalid input returns an MCP tool error with a readable message; the client shows it to the model instead of crashing.
  • A write past the plan's memory or repository limit returns a tool error naming the limit (402 under the hood); reads keep working.
  • A write with neither type nor category is rejected: code memory needs a type, personal memory needs kind: "personal".
  • memory_update or memory_delete with an id that does not exist, was superseded, or belongs to a repository you can only view returns a not-found or read-only error.
  • Queries below two characters are refused — they match too broadly to be useful.
  • An expired or revoked token fails before any tool runs, with the message Unauthorized: send Authorization: Bearer <mcp token>.
Stateless by design

Tools are stateless: there is no session to keep open and no conversation id to manage. Every call carries its own context.