get_log
Retrieve a gateway request log by ID to inspect its request, response, usage, cost, and metadata payloads. Include the created_at timestamp when using v2 path format.
Instructions
Get one gateway request log by ID, including its request, response, usage, cost, and metadata payload when available. For path_format v2, also provide the log's created_at timestamp.
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": {
"log_id": "<log_id>"
},
"name": "get_log"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Set to hooks when retrieving a hook execution log | |
| log_id | Yes | Gateway log ID to retrieve | |
| created_at | No | Log creation timestamp in ISO 8601 format; required for v2 | |
| path_format | No | Log storage path format; defaults to v1 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | Call succeeded | |
| data | No | Success payload | |
| error | No | Failure details |