track_event
Send event data to Amplitude to log user actions, revenue, and custom properties for analytics.
Instructions
Track an event to Amplitude
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"event_type": "<event_type>"
},
"name": "track_event"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| city | No | City | |
| time | No | Event timestamp (milliseconds) | |
| price | No | Product price | |
| region | No | Region | |
| country | No | Country code | |
| revenue | No | Revenue amount | |
| user_id | No | User ID | |
| language | No | Language code | |
| platform | No | Platform (iOS, Android, Web) | |
| quantity | No | Product quantity | |
| device_id | No | Device ID | |
| event_type | Yes | Event name | |
| app_version | No | App version | |
| user_properties | No | User properties to set | |
| event_properties | No | Custom event properties |