cache_similarity_distribution
Generate a histogram of recent similarity scores for a semantic cache to assess match distribution and cache effectiveness.
Instructions
Histogram of recent similarity scores (20 buckets, width 0.1) for a semantic_cache. Errors on agent_cache.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"cache_name": "<cache_name>"
},
"name": "cache_similarity_distribution"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| category | No | Restrict to a single category | |
| cache_name | Yes | Cache name as registered in __betterdb:caches (e.g. 'betterdb_scache_prod'). | |
| instanceId | No | Connection ID; defaults to the active instance | |
| window_hours | No | Lookback window (default 24h, max 168h) |