MCP server using Cognitive Behavioral Therapy techniques to help AI agents recover from being stuck, with deep thinking enhancement capabilities
This CBT Agent Helper MCP server has significant definition quality issues that limit its production readiness. While all 15 tools have names and descriptions, most lack proper input schemas with typed parameters and comprehensive output documentation. Tool descriptions are present but often generic (e.g., 'Help reframe negative or catastrophic thoughts using CBT techniques' for reframe_thought, 85 chars, below the productive 50-200 char range). Many tools accept session_id and other parameters without clear validation constraints. Critical pattern violations: (1) Most tools lack detailed parameter descriptions beyond basic labels. (2) No visible output schemas are documented in the code, forcing LLMs to guess what fields to expect. (3) Error handling is absent, no recovery guidance, categorization, or actionable failure messages. (4) Parameters like 'stuck_pattern' accept enums but lack clear enum definitions in the schema. (5) Several tools combine multiple concerns (e.g., analyze_stuck_pattern takes current_situation, stuck_pattern, attempted_solutions, error_messages, could be split). Tools like start_session (WRITE risk) lack confirmation mechanisms or dry-run support. The code shows dataclass definitions and session management, but does not expose structured schemas to LLMs. Per-tool analysis reveals: naming is verb-first and mostly clear (analyze_*, create_*, reframe_*, regulate_*, etc.), but descriptions are too brief and lack context for when/why to call each tool. No parameter descriptions exist in the visible schema, only field names and types. Output structures are inferred from code but never documented for the LLM.
Analyze patterns in stuck behavior and suggest interventions
Create a behavioral activation plan to overcome paralysis through action
Analyze costs and benefits of continuing current approach vs alternatives
Create a concrete action plan to overcome paralysis and move forward
Access CBT techniques guide and reference materials
Retrieve summary of a CBT session including progress and interventions used
Initiate a deep thinking session to encourage extended contemplation on a topic
No visible input/output schemas with typed parameters. Tools show parameter names (e.g., 'session_id', 'frustration_level') but lack JSON Schema definitions with proper type constraints, minimum/maximum values, or enum definitions for constrained inputs.
Parameter descriptions are minimal or absent. Most tools show parameter names but lack descriptions explaining what the parameter controls, accepted formats, or constraints. E.g., 'dialogue_type' in socratic_dialogue lists enum values but does not explain when to use each.
Inferred effective spec: <=2025-11-25.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | F | 46 | <=2025-11-25 | v2 |
| 2026-03-09 | F | 34 | - | v1 |
Guide agent through mindfulness and grounding exercises
Provide quick reset techniques for immediate relief during high frustration
Help reframe negative or catastrophic thoughts using CBT techniques
Help regulate frustration using grounding and coping techniques
Initiate a Socratic dialogue to examine assumptions and explore deeper understanding
Initialize a new CBT session for an agent
Challenge automatic negative thoughts and identify cognitive distortions
Assess agent wellness and detect potential stuck patterns
No documented output schemas. LLMs cannot plan downstream tool calls or extract required data without knowing return field names and types. Sessions are stored as AgentSession dataclasses internally but never exposed as documented response schemas.
Missing error handling and recovery guidance. No indication of which errors are retryable, which require user input, or which are fatal. No actionable error messages to guide LLM recovery. E.g., if session_id is invalid, should the LLM create a new session or search for the right one?
Enum-constrained parameters lack explicit enum definitions in schemas. 'stuck_pattern' accepts values like 'error_loop', 'blocked', 'looping', etc., but these are not declared in a JSON Schema enum property. 'dialogue_type' and 'exercise_type' have the same issue.
Tool descriptions are too brief and lack context for when/why to call each tool. Many descriptions (50-85 chars) do not explain prerequisites, dependencies, or when to prefer one tool over a similar one. E.g., 'Help reframe negative or catastrophic thoughts using CBT techniques' does not explain when reframe_thought differs from thought_challenging.
Multiple tools appear to overlap in function (e.g., reframe_thought, thought_challenging, socratic_dialogue, and cognitive reframing strategy all target negative thought patterns). LLMs will waste reasoning cycles deciding between them. Consider consolidating or clearly differentiating in descriptions.
start_session (WRITE risk) lacks confirmation or dry-run support. No indication that this call has side effects (creates persistent session state) or how to verify intent before committing.
Numeric parameters lack constraints. 'frustration_level' and 'time_on_task' accept integers but lack minimum/maximum bounds in schemas. Validation occurs in code (validate_frustration_level checks 1-10) but is not exposed to LLMs via schema constraints.
No tool annotations (readOnlyHint, destructiveHint, idempotentHint) present. This prevents LLMs from understanding which tools are safe to retry and which have side effects. Modern MCP servers declare these in tool definitions.