mailosaur_analysis_deliverability
Run deliverability analysis on an email message using its ID to assess inbox placement and identify delivery issues.
Instructions
Run deliverability analysis for a message.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| messageId | Yes |
Implementation Reference
- src/index.ts:398-408 (registration)Registration of the 'mailosaur_analysis_deliverability' tool via server.tool(), including its schema (z.object({ messageId: z.string() })) and handler.
server.tool( "mailosaur_analysis_deliverability", "Run deliverability analysis for a message.", { messageId: z.string() }, async ({ messageId }) => { const result = await mailosaur.analysis.deliverability(messageId); return response(result); } ); - src/index.ts:401-403 (schema)Input schema for the tool: expects a single 'messageId' string parameter.
{ messageId: z.string() }, - src/index.ts:404-406 (handler)Handler function that calls mailosaur.analysis.deliverability(messageId) and returns the result.
async ({ messageId }) => { const result = await mailosaur.analysis.deliverability(messageId); return response(result); - src/index.ts:79-88 (helper)The 'response' helper function that wraps the result in MCP content format (JSON.stringify).
function response(value: unknown) { return { content: [ { type: "text" as const, text: JSON.stringify(value, null, 2) } ] }; }