Skip to main content
Glama

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

NameRequiredDescriptionDefault
providerNo
run_pingNo
ping_limitNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.15.1
    • addedInput schema / additionalProperties
      Added value: +false
  2. First observedv0.7.0

TDQS

A4.6/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden and does well: it discloses that catalog GETs are free, that a successful fetch discards the provider's prior list, and that an empty or failed fetch keeps the last snapshot. It stops short on the ping side, saying nothing about whether ping tests cost credits, how long they take, or what happens to results, which matters for a no-annotation tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The destructive replace semantics and cost note are front-loaded in the opening two lines, followed by sibling routing and then parameters. Sentences are short and each one adds a fact that is not in the schema, with no filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so the description need not explain return values, and it covers scope, side effects, defaults, and the follow-on call chain. The remaining gap is the ping workflow's cost and effect, which is the one behavior an agent cannot infer from the schema or annotations.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0 percent, so the description must compensate, and it documents all three parameters with meaning beyond the bare schema: provider scoped as optional and limited to one provider with example values, run_ping defined as a post-refresh ping test, and ping_limit defined as a cap applying only when run_ping is true. It does not explain what the ping measures or whether provider accepts aliases, keeping it below a 5.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The first sentence gives a specific verb and resource plus the exact effect: fetch latest model lists and replace each provider's catalog, with the concrete consequence spelled out as adding new ids and purging retired ones. It is distinguishable from list_models, which is named later as doing a narrower, time-based refresh.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description states the follow-on flow explicitly (get current catalog, then call scan() or get_fastest()) and names the alternative path: list_models() also refreshes any catalog older than an hour. That gives an agent both the intended use and the condition under which a sibling tool suffices.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.