refresh_models
Update model catalogs by fetching current provider lists, adding new IDs, and purging retired ones; failed fetches keep the last snapshot for reliable scans.
Instructions
Fetch latest model lists and replace each provider's catalog (add new ids, purge retired ones).
Catalog GETs are free. A successful fetch discards that provider's previous list. An empty/failed fetch keeps the last snapshot. Use this to get the current catalog, then call scan() or get_fastest(). list_models() also refreshes any catalog older than an hour.
Args: provider: Optional provider to refresh only (minimax, cerebras, ollama, …) run_ping: If true, run a ping test on up to ping_limit models after refreshing ping_limit: Max models to ping when run_ping is true (default 20)
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": "refresh_models"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| provider | No | ||
| run_ping | No | ||
| ping_limit | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |