amp_get_events
Pack: amplitude · Endpoint: https://gateway.pipeworx.io/amplitude/mcp
Get event counts and breakdowns for a date range (e.g., “2024-01-01” to “2024-01-31”). Returns frequency, user segments, and trends by event name.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
_apiKey | string | yes | Amplitude API key |
_secretKey | string | yes | Amplitude secret key |
event_type | string | yes | Event name to query (e.g., “Page View”, “Button Click”) |
start | string | yes | Start date (YYYYMMDD) |
end | string | yes | End date (YYYYMMDD) |
group_by | string | no | Property to group by (optional) |
Example call
Arguments
{
"_apiKey": "your-amplitude-api-key",
"_secretKey": "your-amplitude-secret-key",
"event_type": "Page View",
"start": "20240101",
"end": "20240131"
}
curl
curl -X POST https://gateway.pipeworx.io/amplitude/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"amp_get_events","arguments":{"_apiKey":"your-amplitude-api-key","_secretKey":"your-amplitude-secret-key","event_type":"Page View","start":"20240101","end":"20240131"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('amp_get_events', {
"_apiKey": "your-amplitude-api-key",
"_secretKey": "your-amplitude-secret-key",
"event_type": "Page View",
"start": "20240101",
"end": "20240131"
});
More examples
{
"_apiKey": "your-amplitude-api-key",
"_secretKey": "your-amplitude-secret-key",
"event_type": "Button Click",
"start": "20240115",
"end": "20240122",
"group_by": "country"
}
Response shape
| Field | Type | Description |
|---|---|---|
series | array | Event counts segmented by property |
data | object | Raw event data by time period |
Full JSON Schema
{
"type": "object",
"properties": {
"series": {
"type": "array",
"items": {
"type": "object",
"properties": {
"segmentation_type": {
"type": "string",
"description": "Segmentation dimension"
},
"segmentation_name": {
"type": "string",
"description": "Segment value name"
},
"value": {
"type": "number",
"description": "Event count for segment"
}
}
},
"description": "Event counts segmented by property"
},
"data": {
"type": "object",
"description": "Raw event data by time period"
}
}
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"amplitude": {
"url": "https://gateway.pipeworx.io/amplitude/mcp"
}
}
}
See Getting Started for client-specific install steps.