cache_threshold_recommendation
Recommends a similarity threshold for a semantic cache by analyzing rolling similarity-score windows. Tune cache accuracy without manual guessing.
Instructions
Threshold-tuning recommendation for a semantic_cache, based on the rolling similarity-score window. Errors with INVALID_CACHE_TYPE 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_threshold_recommendation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| category | No | Restrict to a single category; omit for the global threshold | |
| cache_name | Yes | Cache name as registered in __betterdb:caches (e.g. 'betterdb_scache_prod'). | |
| instanceId | No | Connection ID; defaults to the active instance | |
| minSamples | No | Minimum samples required (default 100) |