list_messages
Retrieve recent messages, newest first, optionally filtered by recipient or status to see sent, suppressed, or pending approval messages. Requires messages:read scope.
Instructions
List recent messages, newest first, optionally for one person or status: what someone was already sent, what was suppressed, what waits for approval. Use get_message when you have an id. Needs the messages:read scope; agent keys see only their own messages.
Returns items, each with the same fields as get_message, and next_cursor, which is not null when older messages exist beyond limit. Fails with 404 when recipient is not a known external id.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Most messages to return, 1-100 (other values are clamped). | |
| status | No | Only messages with this status; omit for any status. | |
| recipient | No | External id of the person; omit for everyone. |