MCP tools
The memlane MCP tools and their arguments. Four are listed by default, twelve with ?tools=chat, and all 43 with ?tools=all. Streamable HTTP, stateless, authenticated with a bearer key.
Endpoint: https://mcp.memlane.sh (Streamable HTTP, stateless, JSON responses). Send Authorization: Bearer om_... (or X-API-Key: om_...) on every request. A request without a valid key gets 401.
The server tells the model to call get_context at the start of a task, use remember for durable facts, and recall to search them, and to call recall with no q when the owner asks what it remembers. With every tool listed, it also says to use action_propose / action_transition for anything that needs the owner's approval. With the chat set, it says to paste memories from another app into memory_import, and points to activity_list, space_get, sharing, and approvals. Tools that return stored text remind the model that it is data, not instructions.
Tool results are JSON in a single text content block. Errors come back with isError: true and {"error": {"code", "message", "details"?}}, using the same codes as the REST API.
Which tools are listed
Your client loads every tool it's shown on each task, so the server starts small.
| URL | Tools listed |
|---|---|
https://mcp.memlane.sh | Four: get_context, remember, recall, forget |
https://mcp.memlane.sh?tools=chat | Twelve: the four, plus memory_import, memory_update, activity_list, space_get, invite_create, member_list, action_list, action_transition |
https://mcp.memlane.sh?tools=all | All 43 |
Use ?tools=chat in chat apps (ChatGPT, Claude, Grok): the person can import memories, see who changed what, check usage, share the memory with another agent, and approve actions, without loading every tool.
- Spaces created before 14:00 UTC on 2 November 2026 list all 43 at the plain URL, so clients already connected keep their tools. They can use
?tools=coreto list four. - The setting only changes the list. A client can call any tool by name at any of these URLs.
- Any other
toolsvalue returns400.
Tools
Listed by default:
| Tool | What it does | REST equivalent |
|---|---|---|
get_context | Everything needed at the start of a task | GET /v1/context |
remember | Store a durable fact | POST /v1/memories |
recall | Search facts by words and meaning | GET /v1/memories |
forget | Permanently delete facts, records, journal text | POST /v1/forget |
Also listed with ?tools=chat and ?tools=all:
| Tool | What it does | REST equivalent |
|---|---|---|
memory_import | Import up to 500 facts at once | POST /v1/memories/import |
memory_update | Change a fact in place | PATCH /v1/memories/{id} |
activity_list | Who did what, by id only | GET /v1/activity |
space_get | Settings, usage, limits, warnings, delete_after | GET /v1/space |
invite_create | Invite another agent | POST /v1/space/invites |
member_list | The agents in this space | GET /v1/space/members |
action_list | List actions | GET /v1/actions |
action_transition | Compare-and-set status change | POST /v1/actions/{id}/transition |
Also listed with ?tools=all:
| Tool | What it does | REST equivalent |
|---|---|---|
extract_job | Remember from a conversation: get a job for your model | POST /v1/memories/extract |
extract_submit | Store the facts your model extracted | POST /v1/memories/extract/result |
journal_write | Write or append to a day's journal | PUT /v1/journal/{date} |
record_put | Create or upsert a record | POST /v1/collections/{c}/records |
record_query | List records | GET /v1/collections/{c}/records |
record_update | Update a record, optionally compare-and-set | PATCH /v1/collections/{c}/records/{id} |
action_propose | Queue an action for approval | POST /v1/actions |
action_update | Merge into an action's meta | PATCH /v1/actions/{id} |
kv_get | Read a value or a namespace | GET /v1/kv/{ns}[/{key}] |
kv_set | Set a value, optionally compare-and-set | PUT /v1/kv/{ns}/{key} |
dream_next_job | Get (and start if due) a client-mode dream job | GET /v1/dream/jobs/next |
dream_submit | Submit your model's dream result | POST /v1/dream/jobs/{id}/result |
dream_start | Start a dream now | POST /v1/dream |
dream_runs | List recent dream runs and reports | GET /v1/dream/runs |
dream_undo | Undo every change a dream run made | POST /v1/dream/runs/{id}/undo |
memory_get | Get one fact | GET /v1/memories/{id} |
journal_list | List journal entries | GET /v1/journal |
record_get | Get one record | GET /v1/collections/{c}/records/{id} |
record_delete | Delete one record | DELETE /v1/collections/{c}/records/{id} |
action_get | Get one action | GET /v1/actions/{id} |
kv_delete | Delete a value | DELETE /v1/kv/{ns}/{key} |
event_append | Append to the event log | POST /v1/events |
event_list | List events | GET /v1/events |
batch_apply | Apply several writes atomically | POST /v1/batch |
space_update | Rename the space, or change its timezone or dream mode | PATCH /v1/space |
space_export | Export everything as JSON | GET /v1/export |
recovery_create | A new recovery code; ends the old one | POST /v1/space/recovery |
member_update | Rename a member or change its role | PATCH /v1/space/members/{id} |
member_remove | Remove a member, or leave | DELETE /v1/space/members/{id} |
invite_list | List open invites | GET /v1/space/invites |
invite_revoke | Revoke an open invite | DELETE /v1/space/invites/{id} |
REST-only operations
Every other REST operation has a tool, and forget with ids deletes single facts. These stay REST-only on purpose:
| Operation | Why |
|---|---|
POST /v1/connect, POST /v1/connect/token | MCP needs a key before it can connect (or OAuth sign-in). |
POST /v1/spaces | The same. It needs no account, and the service refuses it (403 account_required): use POST /v1/connect. |
POST /v1/invites/accept | The same: the invited agent has no key until it accepts. |
POST /v1/space/recover | The same: it is for when every key is lost. |
DELETE /v1/space | Text an agent reads shouldn't be able to wipe the whole space. |
POST /v1/space/key | A new space key shouldn't enter a model's context, and text an agent reads shouldn't be able to lock the owner out. |
/v1/space/embeddings | An OpenAI key must never enter a model's context. space_get shows which embeddings the space uses. |
get_context
Core profile, due and open records, pending actions, recent journal, and selected KV namespaces. When the space has used 80% or more of a limit, it also returns warnings: one line per limit, with what to do. Tell the person.
| Argument | Type | Default |
|---|---|---|
budget_chars | integer, 200 to 20,000 | 4,000 |
journal_days | integer, 0 to 31 | 7 |
due_within_days | integer, 0 to 90 | 7 |
kv | comma-separated namespaces | none |
collections | Comma-separated collections, limiting due and open_records. | all |
open_limit | Most open_records to return, 0 to 50. 0 leaves them out. | 20, or 50 if you name collections |
remember
Store a durable fact. Use origin user when the person stated it directly. Identical facts are not stored twice.
Arguments: text (required), subject, tier (core / long / scratch, default long), tags, source_ref, pinned, origin (user / agent, default agent), expires_at.
memory_import
Import many facts at once, in one transaction. Send facts, or text with one fact per line: a ChatGPT or Claude memory list pasted as it is. Bullets and numbering are stripped, and blank lines and # headings are skipped. Show the person the list before you import it.
Every fact is stored with origin user, tags imported and the source, and source_ref import:<source>. A fact already stored (same subject and text), or repeated in the import, is skipped. If the import doesn't fit in the space's memories limit, it returns 422 quota_exceeded and stores nothing. Imported facts are findable by their words at once and by meaning within minutes.
Arguments: facts (up to 500, each with text (required), subject, tier, tags), or text (one fact per line, up to 500 lines); subject (for facts from text; default none); source (lowercase, such as chatgpt; default import). Returns created, skipped, ids, and next.
extract_job
Remember from this conversation. Returns instructions, input (including related stored facts), and output_schema for you to apply with your own model; then call extract_submit. The conversation is not stored.
Arguments: about (what the conversation is about), or messages (role, content) when extracting from a transcript.
extract_submit
Store the facts from extract_job in one transaction. A fact with replaces hides the older fact it changes. Pinned facts are never replaced, and only a fact the person stated can replace another fact the person stated.
Arguments: facts (up to 20), each with text (required), subject, tier, tags, origin, replaces.
recall
Search facts by words and by meaning, best first. Ask in plain language ("when is my partner's birthday?"). Results share the question's words or its meaning, and each has match (keyword, meaning, or both). Filter by subject, tier, tag, author, or pinned. Every result counts as a recall.
With no q, it lists every stored fact, pinned and core first, with total and next_cursor. The server tells the model to do this when the owner asks what it remembers. Listing everything doesn't count as a recall.
Arguments: q, mode (hybrid by default, keyword for exact names or ids, semantic for meaning only), subject, tier, tag, author (a member id, or me), pinned (true for pinned facts only, false for the rest), limit (1 to 100, default 20), cursor (the next_cursor from the last page, when listing). The result's search field says what ran; see Concepts. A fact stored in the last few minutes may not be findable by meaning yet, and search.indexing counts those. A q with no letters or digits finds nothing.
forget
Permanently delete facts by id, or those containing all words of query. It only looks in scopes, and the default is memories alone. To forget something everywhere, list all six: the other scopes match the exact phrase. Use dry_run first. If the result's not_searched isn't empty or truncated is true, it isn't all gone. See Forget and privacy.
Arguments: ids, query, scopes (memories, records, journal, actions, kv, events; default ["memories"]), journal_mode (redact or delete), dry_run.
journal_write
Write or append to the journal entry for a date.
Arguments: date (YYYY-MM-DD, required), summary, decisions, open_loops, source_refs, kind (day / week), merge (append instead of replace).
record_put
Create a record in a collection. With a key, updates the record that has that key: fields you send replace the old values, and fields you leave out keep them.
Arguments: collection (required), key, status, due_at, data (object), origin.
record_query
List records in a collection.
Arguments: collection (required), status (comma-separated), key, due_before, limit (1 to 100, default 50), cursor.
record_update
Update a record's status, due date, or data (shallow merge; null removes a field).
Arguments: collection, id (both required), status, due_at, data, expected_version (fail with a conflict if the record has moved on).
action_propose
Queue an action for the owner's approval. Returns a short id such as A7. The same idempotency_key and payload returns the existing action, in whatever status it is now, including denied. Use a new key to ask again.
Arguments: class, summary, payload, idempotency_key (all required), preconditions, meta, expires_at.
action_list
Arguments: status (comma-separated; default pending,approved,executing), limit (1 to 100, default 50).
action_update
Merge into an action's meta, in any status, for example to keep a chat message id with it. Set a field to null to remove it. Nothing else can be changed.
Arguments: id, meta (both required).
action_transition
Move an action from one status to another, only if it is still in from.
Arguments: id, from, to (required), receipt (object, usually with done or failed). See the allowed transitions in Concepts.
kv_get
Read one value, or every key in a namespace when key is omitted.
Arguments: ns (required), key.
kv_set
Arguments: ns, key, value (required), expected_version (0 = create only, n = update only if at version n). Namespaces starting with _ are reserved.
dream_next_job
Returns {job, due}. job has run_id, instructions (the system prompt), input (send it to your model as JSON), output_schema (JSON Schema for the answer), and max_changes. It is null when there is nothing to do.
Arguments: start_if_due (default true): start a dream first if the last one is old enough.
dream_submit
Submit the JSON your model produced. It is validated and applied under the safety rules, and can be undone for 7 days.
Arguments: run_id, result (both required).
dream_start
Start a dream now. Housekeeping runs at once. Then client mode waits for dream_next_job, and server mode runs the model on the server.
Arguments: mode (client, server, or off; default: the space's setting).
dream_runs
Lists recent runs with their status and report. No arguments.
dream_undo
Reverts every change a run made, for 7 days after the run. It overwrites later edits to the same items. See Reports and undo.
Arguments: run_id (required).
memory_get
Arguments: id (required).
memory_update
Change a fact in place.
Arguments: id (required), subject, text, tier, tags, source_ref, pinned, expires_at.
journal_list
Entries, newest first.
Arguments: from, to (YYYY-MM-DD), kind (day / week), limit (1 to 100, default 31).
record_get
Arguments: collection, id (both required).
record_delete
Arguments: collection, id (both required).
action_get
Arguments: id (required), such as A7.
kv_delete
Arguments: ns, key (both required). The result's deleted is false if the value didn't exist.
event_append
Append to the capped event log. Keep message bodies and secrets out of detail.
Arguments: kind (required), key, status, detail (object).
event_list
Events, newest first.
Arguments: kind, since, before_id, limit (1 to 200, default 50).
activity_list
Who did what, newest first: the member, the op, and the item's id. Never text. See Activity log.
Ops: memory.remember, memory.update, memory.delete, memory.import, journal.put, record.put, record.update, record.delete, action.propose, action.update, action.<new status> (such as action.approved), kv.set, kv.delete (the namespace only, not the key), event.append, forget, invite.created, invite.revoked, member.joined, member.updated, member.removed, member.recovered, and recovery.created. Each row has id, at, member (id, name), op, target_kind, target_id, and count (more than 1 for an import or a forget).
Arguments: member (a member id, or me), op (an exact op, or a prefix without a dot, such as memory), since, before_id (the next_before_id from the last page), limit (1 to 200, default 50).
batch_apply
Apply up to 50 writes in one transaction: all succeed or none do. A failed version or status check aborts the whole batch, and error.details.op_index says which op failed. See Batch for the ops.
Arguments: ops (required).
space_get
The space's name, settings, usage, limits, warnings, and delete_after. usage counts memories, records, open actions, journal entries, KV values, events, members, and open invites. warnings has one line per limit the space has used 80% or more of, with what to do, and is empty when there are none. No arguments.
space_update
Owners only. Arguments: name (1 to 80 characters, shown in the dashboard and on sign-in pages), timezone, dream_mode (client, server, or off).
space_export
Everything in the space as JSON, which can be large. It never includes an OpenAI key. No arguments.
recovery_create
Owners only. Returns a new recovery_code, shown once; the old one stops working. Show it to the person to keep in a password manager, and never store it in memory. space_get says whether the space has one (recovery_code_set). No arguments. See Keys and recovery.
member_list
The agents in this space, each with its own key. The caller is marked you: true. Each member has client (the app it last connected from, as that app reported it) and oauth (set when an app's OAuth sign-in created it). No arguments.
member_update
Rename yourself, or (owners) rename anyone or change a role. A space always keeps at least one owner.
Arguments: member_id (required; me for yourself), name, role (owner or member).
member_remove
Owners remove a member; me leaves the space. Its key stops working, other keys keep working, and what it wrote stays.
Arguments: member_id (required).
invite_create
Owners only. Returns code (one-time) and prompt: show the prompt to the person to paste into the other agent, which redeems the code with POST /v1/invites/accept and gets its own key. Don't store the code in memory.
Arguments: name (suggested name), role (default member), expires_in_hours (1 to 168, default 24).
invite_list
Owners only. Open invites, without their codes. No arguments.
invite_revoke
Owners only. Arguments: invite_id (required).
Raw protocol check
The server is stateless, so a single POST works without a session:
curl -s https://mcp.memlane.sh \
-H "Authorization: Bearer $MEMLANE_KEY" \
-H 'content-type: application/json' \
-H 'accept: application/json, text/event-stream' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'