Skip to content

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 as MNEMOVERSE_API_KEY. Keep it out of scripts and shell history: set it from your password manager or a file only you can read.
  • curl, and jq to read the answer.

The call ​

This request lists at most five memories of the domain a2a-test dated 2026-11-20 or later:

bash
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:

  • skillId selects the skill. Without it the message is a search.
  • domain reads one domain, or a shared room when you give its address. It is short for arguments.domain; set one of the two.
  • arguments holds the tool's parameters: limit from 1 to 100, since and until as 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:

json
"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:

bash
jq '{code: .error.code, field: .error.data[0].fieldViolations[0].field}'
json
{
  "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 ​

  • since reads a memory's own date. A memory's time is its occurred_at when it was written with one, and the time it was saved otherwise. A memory imported today with an October date falls before a since of 2026-11-20 and is not listed, so a since watermark does not catch every write made after it.
  • Reading changes nothing. memory-list-recent only reads. A memory is stored only with skillId set to memory-write.
  • Rooms are separate. A call without domain lists your own memories. To catch up on a shared room, pass its address as domain.
  • 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.