send_event
Track custom events or pageviews server-side by sending them to Umami with required website, hostname, and URL details.
Instructions
Send a custom event or pageview to Umami (useful for server-side tracking)
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": {
"websiteId": "<websiteId>",
"hostname": "<hostname>",
"url": "<url>"
},
"name": "send_event"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ip | No | Client IP for trusted server-side collection | |
| tag | No | Event tag | |
| url | Yes | URL path (e.g. '/checkout') | |
| title | No | Page title | |
| screen | No | Screen dimensions (e.g. 1920x1080) | |
| hostname | Yes | Hostname of the site (e.g. 'example.com') | |
| language | No | Browser language (e.g. 'en-US') | |
| referrer | No | Referrer URL | |
| eventData | No | Custom event data as key-value pairs | |
| eventName | No | Custom event name (omit for pageview) | |
| timestamp | No | Unix timestamp in seconds | |
| userAgent | No | Client user agent | |
| websiteId | Yes | Website UUID (used as the 'website' field in payload) | |
| distinctId | No | Stable user identifier |