nexo_hook_runs
Retrieve recent hook runs and a per-hook health summary showing success rates and durations to assess pipeline health.
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.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "nexo_hook_runs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hours | No | How far back to look (default 24). | |
| limit | No | Max raw rows to return when summary_only=False (default 50). | |
| status | No | Optional exact status filter (ok|error|skipped|timeout|blocked). | |
| hook_name | No | Optional substring filter (LIKE %name%). | |
| 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. |