Read Engine Slow Log
readEngineSlowLogRetrieve slow engine statements and command logs from Postgres, MongoDB, ClickHouse, MySQL, MariaDB, and cache services within a chosen time range, newest first, to diagnose performance issues.
Instructions
Returns statements slower than the engine's own threshold across range, newest first: Postgres duration: log lines, MongoDB slow operation log lines, ClickHouse system.query_log, the performance_schema statement history on MySQL and MariaDB, and SLOWLOG (COMMANDLOG on Valkey) on a cache. The last two keep only recent entries. Needs the developer role, because statements and command arguments carry data.
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": {
"workspaceSlug": "<workspaceSlug>",
"appSlug": "<appSlug>",
"serviceName": "<serviceName>"
},
"name": "readEngineSlowLog"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env | No | ||
| range | No | How far back to look; the answer has 30 to 96 points across it | 1h |
| region | No | ||
| appSlug | Yes | ||
| serviceName | Yes | ||
| workspaceSlug | Yes |