Diagnose my turns
diagnose_my_turnsReview several Ollama turns to find rejected or truncated prompts, lost prompt cache, models partly on CPU, or tool schemas crowding the prompt, and get a fix for each.
Instructions
Is anything wrong with the Ollama calls your client sent through LLMxRay on port 11435? A verdict judged over several turns: a prompt rejected or silently cut by the context, the cache lost on every turn or on one turn, a model partly on CPU, tool schemas crowding the prompt. Four tools read your turns, one question each: diagnose_my_turns, is anything wrong (a verdict over several turns); read_my_last_turn, what exactly happened on the latest turn (one turn in full); list_my_turns, what happened turn by turn (the sequence, one line each); compare_my_turns, did a change help (before against after). Call it after a few turns, and again after a change. For which model or context fits use list_local_models. Returns text. First one line per client seen, then one finding per line tagged [high], [medium] or [low], each ending with the fix. It says so when nothing stands out, and explains how to route through 11435 when no turn was seen. client: your X-LLMxRay-Client name; without it on a shared machine you read every tool's turns. since_minutes: 1 to 10080, minutes since your change. They combine. Needs LLMxRay running (npx llmxray) and says so if not. Under a second, from records already kept. No model is called.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "diagnose_my_turns"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| client | No | Part of the client label or id as LLMxRay shows it (for example "VS Code Copilot", "python-requests", or the X-LLMxRay-Client header you sent). Case-insensitive substring. Omit for all clients. | |
| since_minutes | No | Only turns from the last N minutes. Omit for every turn LLMxRay has kept. |