MCP server exposing tools for autonomous drift detection, diagnostics, and repair of an RL-based content recommendation pipeline. Implements a self-healing agent-to-agent orchestration pattern with Monitor, Diagnostics, Repair, and Verification agents.
Server has 9 tools with basic schemas and descriptions, but significant gaps limit production readiness. All tools have descriptions (10-100 chars, mostly adequate) and input schemas with types. However, parameter descriptions are sparse or missing context. Output schemas are undocumented, LLMs cannot predict return structure. Error handling is minimal (no recovery guidance, no categorization). Tool naming is verb-first and clear (get_*, retrain_*, log_*), but composition issues exist: get_recent_metrics, get_reward_distribution, and get_temporal_metrics overlap in purpose without clear differentiation. No tool annotations (readOnlyHint/destructiveHint) despite clear risk levels. Audit logging tool (log_agent_action) lacks permission gates and scope declarations. Overall: functional but below production baseline.
Formatted summary of recent agent actions.
Baseline (healthy) reward/relevance statistics for comparison.
Aggregated metrics for the last N recommendations.
Query recommendation logs with optional reward/category filters.
Analyze the reward distribution to detect drift patterns.
Bucketed time-series of reward/relevance for trend analysis.
Record an agent action in the audit log.
Output schemas undocumented. LLMs cannot predict return structure for any tool. get_recent_metrics returns dict with 11 fields (window_size, mean_reward, std_reward, etc.) but no schema visible. get_recommendation_logs returns list of dicts with 10 fields (id, timestamp, post_title, etc.) but structure not declared. Agents must infer output shape from code inspection.
No tool annotations (readOnlyHint/destructiveHint/idempotentHint). retrain_rl_agent and log_agent_action are marked WRITE in metadata but lack destructiveHint annotation. Agents cannot determine idempotency or retry safety from tool definition alone.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | D | 54 | 2026-07-28+ | v2 |
Retrain the DQN policy and deploy a new version.
Validate the current policy against reward/relevance thresholds.
Overlapping tool purposes without clear differentiation. get_recent_metrics, get_reward_distribution, and get_temporal_metrics all analyze reward/relevance trends over recent recommendations. Descriptions do not explain when to use each vs. the others. LLMs will struggle to select the right tool.
Error handling lacks recovery guidance. No tool documents what to do on failure. get_recent_metrics returns {"error": "No recommendations available", "count": 0} but does not guide the agent (e.g., 'Try again later' or 'Check if the recommendation pipeline is running'). Agents cannot self-correct.
log_agent_action lacks permission gates and scope declarations. Tool accepts agent_name, action_type, description, and details without validating caller authority. No scope (e.g., 'write:audit_log') declared. Agents can log arbitrary actions without audit control.