adaptive_namespace_investigation
Analyzes Kubernetes namespace issues by examining pod logs and events, prioritizing failed pods and correlating data within token budget constraints.
Instructions
Adaptive namespace investigation with progressive analysis and token budget management.
Best for medium namespaces (5-30 pods). Prioritizes failed/error pods, correlates events.
Args:
namespace: Kubernetes namespace to investigate.
investigation_query: What to investigate (default: "investigate all logs and events for potential issues").
max_pods: Maximum pods to analyze (default: 20).
focus_areas: Areas to focus on (default: ["errors", "warnings", "performance"]).
token_budget: Max tokens for investigation (default: 200000).
Returns:
Dict: Pod analysis, event correlation, findings, and recommendations.
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": {
"namespace": "<namespace>"
},
"name": "adaptive_namespace_investigation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| namespace | Yes | ||
| investigation_query | No | investigate all logs and events for potential issues | |
| max_pods | No | ||
| focus_areas | No | ||
| token_budget | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |