get_stats

Pack: sendgrid · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)

No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/get_stats for the schema, then POST the same URL with its arguments for the data.

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

NameTypeRequiredDescription
start_datestringyesStart date in YYYY-MM-DD format, e.g. “2024-01-01”
end_datestringnoOptional end date in YYYY-MM-DD format. Defaults to today.
_apiKeystringyesSendGrid 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 — every tool in the catalog, including this one — or use one-click install buttons:

{
  "mcpServers": {
    "pipeworx": {
      "url": "https://pipeworx.io/mcp"
    }
  }
}
Connect to just the sendgrid pack
{
  "mcpServers": {
    "sendgrid": {
      "url": "https://gateway.pipeworx.io/sendgrid/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build October 30, 2026