Publication keyGenerated from lib/mcp.ts
dispatch_get_stats
Reads a publication's numbers: how many readers it has, how each issue performed, and how many joined in the last 30 days.
Publication analytics: subscriber counts by status, per-issue opens/clicks/bounces, and 30-day growth.
- Use it when: For a weekly check-in, or to answer 'how is it doing?'
- Don't use it when: Do not use it as a live open tracker. Opens are counted when the email is opened, and numbers update as events arrive.
Link and endpoint
Page link
https://dispatch.nshipyard.com/support/mcp/dispatch_get_statsEndpoint
POST https://dispatch.nshipyard.com/api/mcpCall it with method tools/call and name dispatch_get_stats.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
publicationId | string | Required | — |
Returns
subscribersobject- Counts by status: active, pending, unsubscribed, bounced, complained.
newSubscribersLast30dnumber- New active readers in the last 30 days.
issuesarray- The last 20 issues with sent, opened, clicked, bounced, and complaint counts.
Errors
| Error | When it happens | Fix |
|---|---|---|
Not authorized for this publication | The key belongs to a different publication. | Use the publication key shown on that publication's Overview page, or the master key. |
Publication not found | The publicationId does not exist. | List publications to get the right id, or copy it from the dashboard URL: /dashboard/pubs/<id>. |
Related
Reference generated from web/lib/mcp.ts. If this page and your agent disagree, the code wins.