latest_event
Get the single most recent event captured by a bucket, optionally filtered by provider and event type. Returns one event with its headers, body and delivery results — the one-shot answer to "what did Stripe last send me". 404 if nothing matches, so you never index into an empty list.
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": {
"bucket_id": "<bucket_id>"
},
"name": "latest_event"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | The provider's own event name, matched exactly (e.g. payment_intent.succeeded). | |
| token | No | Only when connected without an API key: the api_token that create_bucket returned for this bucket. | |
| provider | No | Filter to a provider attributed at ingest (e.g. stripe, github). | |
| bucket_id | Yes | The endpoint id. |