AI-driven CLI tool and MCP server that transforms Markdown runbooks into executable automation with safety gates and audit trails
Three tools with clear names and reasonable descriptions, but significant gaps in schema completeness and parameter documentation. validate_runbook and replay_audit_log have good descriptions (100+ chars), but execute_runbook's description is verbose and lacks clarity on the two-phase approval flow. Input schemas are present but parameters lack descriptions in the JSON Schema layer, descriptions exist only in docstrings, not in the schema itself. No output schemas documented. Error handling is minimal; tools return generic error dicts without recovery guidance.
Execute a runbook with safety gates and a tamper-evident audit trail. SAFETY: dry_run=True by default. Pass dry_run=False only when the user explicitly confirms they want real execution. MCP approval flow (when Slack is not configured): - First call runs until a step needs approval, then returns status='approval_required' with details of the pending step. - Resume by calling again with resume_from_step=N and approved=True (to allow the step) or approved=False (to skip it). - If Slack IS configured, Slack handles approvals automatically and this function runs to completion.
Read and verify a previous execution log, displaying all entries with hash chain verification.
Parse and classify a runbook without executing any commands. Returns each step with its risk level and classification reasoning. Safe to call on any machine — no commands are executed.
Parameter descriptions missing from JSON Schema. Descriptions exist only in Python docstrings, not in the schema object passed to MCP. LLMs cannot see them.
No output schemas documented. Tools return dicts with fields like 'status', 'steps', 'error', but LLMs have no formal schema to understand the response structure. Downstream tool chaining is unsupported.
execute_runbook parameter 'approved' is nullable but its semantics are unclear. When is it required vs optional? What happens if omitted during Phase 2? Undocumented dependency on 'resume_from_step'.
Error responses are generic dicts with 'error' key. No recovery guidance. E.g., 'Unexpected error: ...' tells the LLM nothing about whether to retry, ask the user, or give up.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | D | 54 | 2026-07-28+ | v2 |
execute_runbook description is 400+ chars and conflates two separate concerns: dry-run safety and approval flow. Clarity is lost in verbosity. Should be split or restructured.