Read the audit log
gate_auditReturns recent gateway calls (time, app, matched route, status, reason, duration); use it to investigate individual calls across the project rather than gate_metrics aggregates or a single gate_run_timeline. Newest first, with totals by status and refusal reason for the returned calls. This view never returns bodies, query values or headers. For 24-hour totals and anomaly scores use gate_metrics; for a signed export an auditor can check, gate_audit_proof; for one run's history, gate_run_timeline.
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": {
"project_id": "<project_id>",
"admin_key": "<admin_key>"
},
"name": "gate_audit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | No | Optional: only this app id (app_...) | |
| limit | No | How many calls (default 20) | |
| status | No | Optional: only this HTTP status, e.g. "403" | |
| admin_key | Yes | The project admin key (ga_...). Read it from the .env; never print it. | |
| project_id | Yes | The project id from gate_create_project, e.g. p1a2b3... |