query_logs_custom
Execute a custom log query using LogQL, Datadog, or CloudWatch Insights syntax to fetch Kubernetes log lines from the observability stack within a specified timeframe.
Instructions
Execute a custom log query (LogQL for Loki, Datadog syntax, or CloudWatch Insights).
Args: query: Backend-native query string timeframe_minutes: How many minutes of logs to retrieve (1-1440) limit: Maximum number of log lines (1-500)
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": {
"query": "<query>"
},
"name": "query_logs_custom"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| query | Yes | ||
| timeframe_minutes | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |