nexo_hook_runs
Assess hook pipeline health by retrieving recent lifecycle runs and per-hook success rates, durations, and unhealthy hooks.
Instructions
List recent hook lifecycle runs and per-hook health summary.
Closes Fase 3 item 7 of NEXO-AUDIT-2026-04-11. Each NEXO hook (session-start, post-compact, pre-compact, inbox-hook, etc.) writes a row to hook_runs when it finishes via scripts/nexo-hook-record.py. This tool reads them back so the agent can answer "is the hook pipeline healthy?" without needing the dashboard or grepping log files.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hours | No | How far back to look (default 24). | |
| hook_name | No | Optional substring filter (LIKE %name%). | |
| status | No | Optional exact status filter (ok|error|skipped|timeout|blocked). | |
| limit | No | Max raw rows to return when summary_only=False (default 50). | |
| summary_only | No | If True, return only the per-hook health summary (success rate, p50/p95 duration, unhealthy hooks) and skip the raw row list. |