Analyze rerank score distribution
analyze_rerank_score_distributionAnalyze reranker score distributions with an equal-width histogram and top-decile share, flagging score clustering when the model fails to discriminate among results.
Instructions
Equal-width histogram of cross_encoder_score values over the window plus the top-decile share. Surfaces score_clustering (WARNING) when the reranker isn't discriminating (more than half of scores land in the top decile of the range). Reads from mcpg_rag.rerank_events. Returns an object with window_days, event_count, histogram (list of counts), bucket_edges (list of bucket boundaries), top_decile_share, and findings (list of advisory findings).
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": "analyze_rerank_score_distribution"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | ||
| model | No | ||
| database | No | Optional: a database id from list_databases, to target a configured secondary (read-only) database; omit for the primary. Database names that are not configured ids are rejected. | |
| n_buckets | No | ||
| retrieval_index | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | ||
| findings | Yes | ||
| histogram | Yes | ||
| event_count | Yes | ||
| window_days | Yes | ||
| bucket_edges | Yes | ||
| retrieval_index | Yes | ||
| top_decile_share | Yes |