events
eventsEvent logs with SQL for agents: append up to 5,000 JSON events per call to your own log, then query them with SQL (json_extract on any field), get stats, or purge old data. Private to your wallet. $0.004 per append up to 1,000 events (+$0.003 per extra 1,000); $0.003 per query. Costs $0.016 USDC per call (x402).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "events"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| log | No | ||
| sql | No | ||
| action | No | append (default), query, stats, purge | |
| before | No | ||
| events | No | ||
| params | No |