Read Your Recent Memories from an A2A Agent
An agent that picks up work after a break needs what is new since it last looked, not an answer to a question. The memory-list-recent skill of the A2A endpoint returns your memories newest first, without a query.
Before you start
- An API key,
mk_live_..., from the console, in the environment asMNEMOVERSE_API_KEY. Keep it out of scripts and shell history: set it from your password manager or a file only you can read. curl, andjqto read the answer.
The call
This request lists at most five memories of the domain a2a-test dated 2026-11-20 or later:
curl -sS -X POST https://mcp.mnemoverse.com/a2a \
-H 'Content-Type: application/json' \
-H 'A2A-Version: 1.0' \
-H "Authorization: Bearer $MNEMOVERSE_API_KEY" \
--data '{
"jsonrpc": "2.0",
"id": "recent-1",
"method": "SendMessage",
"params": {
"message": {
"messageId": "recent-1",
"role": "ROLE_USER",
"parts": [{ "text": "list recent" }],
"metadata": {
"skillId": "memory-list-recent",
"domain": "a2a-test",
"arguments": { "limit": 5, "since": "2026-11-20T00:00:00Z" }
}
}
}
}' | jq '.result.message.parts[1].data // .error'What each key does:
skillIdselects the skill. Without it the message is a search.domainreads one domain, or a shared room when you give its address. It is short forarguments.domain; set one of the two.argumentsholds the tool's parameters:limitfrom 1 to 100,sinceanduntilas ISO 8601 times. The other parameters are listed under Skills.- The text is not read by this skill. The message still needs one text part; any text will do.
The answer
The answer is one message with two parts, as for every skill: a text part for a model to read, and a data part, with mediaType: "application/json", for code. The jq filter above prints the data part. It carries items, the memories newest first, each with its memory_id, content, domain and created_at, and next_cursor.
A page can hold fewer than limit entries when the entries are long. Nothing is skipped: the rest is on the next page.
The next page
When next_cursor is a string, there are older entries. Send the same request with that value as arguments.cursor:
"arguments": { "limit": 5, "since": "2026-11-20T00:00:00Z", "cursor": "<next_cursor of the previous page>" }When next_cursor is null, the listing is complete. When the key is missing, the text part says why the next page cannot be given.
When a parameter is wrong
A parameter the tool does not take, a value of the wrong type or a value out of range runs nothing. The answer is JSON-RPC error -32602, and its data names the field. Send the call with "limit": 500 and read the error with this filter in place of the one above:
jq '{code: .error.code, field: .error.data[0].fieldViolations[0].field}'{
"code": -32602,
"field": "message.metadata.arguments.limit"
}Skills shows a whole error. A misspelt key, such as "limt", is refused the same way, so a typo never returns a default page that looks like an answer.
Things to know
sincereads a memory's own date. A memory's time is itsoccurred_atwhen it was written with one, and the time it was saved otherwise. A memory imported today with an October date falls before asinceof 2026-11-20 and is not listed, so asincewatermark does not catch every write made after it.- Reading changes nothing.
memory-list-recentonly reads. A memory is stored only withskillIdset tomemory-write. - Rooms are separate. A call without
domainlists your own memories. To catch up on a shared room, pass its address asdomain. - The same answer as MCP. The skill runs the MCP tool
memory_list_recent, so the items and the cursor are what an MCP client gets for the same key.
Related
- A2A endpoint: every skill, its parameters, the errors and the limits.
- Shared Memory for A2A Agents: storing and searching from A2A agents, end to end.
- Rooms: shared memory and room addresses.