get_stats
Pack: sendgrid · Endpoint: https://gateway.pipeworx.io/sendgrid/mcp
Fetch email sending statistics (delivered, opens, clicks, bounces, etc.) for a date range. Example: get_stats({ start_date: “2024-01-01”, end_date: “2024-01-31”, _apiKey: “SG.xxx” })
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
start_date | string | yes | Start date in YYYY-MM-DD format, e.g. “2024-01-01” |
end_date | string | no | Optional end date in YYYY-MM-DD format. Defaults to today. |
_apiKey | string | yes | SendGrid API key (SG.xxx) |
Example call
Arguments
{
"start_date": "2024-01-01",
"_apiKey": "your-sendgrid-api-key"
}
curl
curl -X POST https://gateway.pipeworx.io/sendgrid/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_stats","arguments":{"start_date":"2024-01-01","_apiKey":"your-sendgrid-api-key"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('get_stats', {
"start_date": "2024-01-01",
"_apiKey": "your-sendgrid-api-key"
});
More examples
{
"start_date": "2024-01-01",
"end_date": "2024-01-31",
"_apiKey": "your-sendgrid-api-key"
}
Response shape
Full JSON Schema
{
"type": "object",
"description": "Email sending statistics for a date range"
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"sendgrid": {
"url": "https://gateway.pipeworx.io/sendgrid/mcp"
}
}
}
See Getting Started for client-specific install steps.