MCP companion health and freshness
IF a tool is reported as unused, or as failing, but the companion behind it is stale → THEN fix the companion heartbeat before acting on any tool recommendation → RESULT pruning is based on "available and unused" rather than "unavailable", and the tool detectors stop producing false positives.
The signal in the agentic log
- The companion's status row exists but its last probe is older than the freshness window (default 15 minutes, overridable per org).
- Meanwhile the agent was active in the same repo/session window.
- Field source:
McpCompanionStatuses(companion type, verified-healthy flag, last probe) plusToolCallsfrom the usage events.
The setup
- Make the companion report lifecycle (
Installing/Healthy/Failing+ reason) and probe results on a heartbeat well inside the freshness window. - Confirm the Action Center shows it fresh and verified healthy.
- Re-run the tool detectors.
The result
- The health gate only reports a tool usable when a row exists, health is verified, and the probe is fresh; otherwise it returns a diagnosable reason instead of a silent false.
- Unused tool pruning and Missing tool backfill become trustworthy: they now compare status against real usage.
Behind it
- MCP companion status mirror + health/freshness gate.
- Tier A (live) is the only backend-backed tier; Tier B/C items are roadmap placeholders and are never created as backend rows.
- See MCP companions.