mailosaur_messages_get_by_id
Get complete message details by providing its ID. Access email or SMS content, headers, and metadata.
Instructions
Retrieve the full detail for a single message by ID.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"id": "<id>"
},
"name": "mailosaur_messages_get_by_id"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Message ID. |
Implementation Reference
- src/index.ts:163-173 (handler)The main implementation of 'mailosaur_messages_get_by_id'. Registers tool with server.tool(), defines schema (id: string), and handler calls mailosaur.messages.getById(id).
server.tool( "mailosaur_messages_get_by_id", "Retrieve the full detail for a single message by ID.", { id: z.string().describe("Message ID.") }, async ({ id }) => { const message = await mailosaur.messages.getById(id); return response(message); } );