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

NameTypeRequiredDescription
_apiKeystringyesAmplitude API key
_secretKeystringyesAmplitude secret key
event_typestringyesEvent name to query (e.g., “Page View”, “Button Click”)
startstringyesStart date (YYYYMMDD)
endstringyesEnd date (YYYYMMDD)
group_bystringnoProperty 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

FieldTypeDescription
seriesarrayEvent counts segmented by property
dataobjectRaw 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.

Regenerated from source · build May 9, 2026