List Logs
list-logsInspect recent RawTree insert, query, describe, and explain logs to diagnose failures, verify calls, review table history, and get exact SQL with exceptions, hints, and pagination.
Instructions
Purpose: List recent RawTree insert/query/describe/explain activity for a database.
NOT for: Reading application log files from disk or infrastructure logs. This tool reads RawTree's product query and insert logs.
Returns: Log entries with time, type, status, origin, query, exception, rows, duration, bytes, tables, projections, hints, and pagination.
When to use:
An insert or query failed and you need the RawTree exception or hints
You need to verify whether an agent, CLI, API, or UI call reached RawTree
You need recent activity for a table
You want the exact SQL RawTree saw
Workflow: Start with status=error for the last hour. Narrow by table or type if needed. Use next_offset for pagination.
Key trigger phrases: "check RawTree logs", "why did the insert fail", "show query history", "recent errors"
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hints | No | Filter to logs with any hints or no hints. | |
| limit | No | Number of logs to return. Default: 50. Max: 200. | |
| types | No | Filter by log type. | |
| offset | No | Number of logs to skip for pagination. | |
| search | No | Optional raw RawTree search string, for example "type:insert status:error table:events". Structured filters are appended to it. | |
| tables | No | Filter by one or more table names. | |
| cluster | No | RawTree cluster to use for this operation. | |
| endTime | No | Inclusive upper bound as an ISO datetime. Defaults to now. | |
| origins | No | Filter by origin. | |
| database | No | Optional RawTree database override. RawTree uses the default database when omitted. | |
| statuses | No | Filter by status. | |
| startTime | No | Inclusive lower bound as an ISO datetime. Defaults to one hour before endTime. | |
| organization | No | RawTree organization containing the target cluster. |