Recommend headline tools
recommend_headline_toolsAnalyzes audit log to recommend which tools to headline per capability bucket, highlighting recommended newcomers and departures from current headlined tools for operator review.
Instructions
Empirically curate describe_self's per-bucket headline_tools from the audit log. Reads mcpg_audit.events over the last lookback_days (default 7, capped at 90), groups successful calls by capability bucket, and reports the top-top_n (default 6) tools per bucket with newcomers (recommended but not in the hand-curated current list) and departures (currently headlined but not in the recommendation). The output is a REVIEWABLE recommendation, not an auto-applied override — operators decide whether to update mcpg.about.CAPABILITIES. Returns audit_table_present=False with a diagnostic when the audit subsystem is off. Returns an object with audit_table_present, lookback_days, top_n, events_examined, detail, and buckets (list of objects with bucket_id, current, recommended, newcomers, departures, call_counts).
Example: recommend_headline_tools(lookback_days=14, top_n=6)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top_n | No | ||
| database | No | Optional: target a configured secondary (read-only) database by name; omit for the primary. Call list_databases to see the configured ids. | |
| lookback_days | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||