context_health
Analyze conversation health by detecting conflicts, ambiguity, grounding issues, and context drift to maintain consistency in AI interactions.
Instructions
[CONTEXT & STATE] 13 sub-tools: recap, conflict, ambiguity, verify, entropy, abstention, grounding, drift, depth, get_state, set_state, clear_state, history. Auto-selects based on params or use 'check' to override. TIP: context_loop runs all health checks automatically — prefer context_loop for comprehensive analysis, use context_health for targeted checks.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sessionId | No | Session identifier | default |
| check | No | Override: run a specific check. If omitted, auto-selects based on params. clear_state shares params with get_state — use this override to disambiguate. | |
| params | No | Parameters for the underlying tool(s), minus sessionId. Multiple checks run if params match more than one tool. recap: {messages[], lookbackTurns?}; conflict: {newMessage}; ambiguity: {requirement, context?}; verify: {goal, output, expectedIndicators?}; entropy: {outputs[], threshold?, autoReset?}; abstention: {claim, requiredKeys[], threshold?}; grounding: {assistantOutput, claim?}; drift: {windowSize, turn?, health?, breakdown?}; depth: {content, minDepthWords?, minDepthSentences?}; get_state: {keys?}; set_state: {key, value, source?}; clear_state: (use check override); history: {maxTokens} |