Skip to main content
Glama

refresh_models

Fetch current model lists from providers with API keys and update the database. Optionally run a ping test to identify fast models.

Instructions

Fetch latest model lists from configured providers (openrouter, nvidia, groq) and replace them in the database.

Only providers with API keys are fetched; their previous model list is discarded and replaced with the live API list. Other providers keep their existing list. Use this to get the current catalog, then call scan() or get_fastest() for discovery. Optionally run a quick ping test after refresh.

Args: provider: Optional provider to refresh only (openrouter, nvidia, groq) 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)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
providerNo
run_pingNo
ping_limitNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations, the description carries the full burden. It discloses that previous model lists are discarded and replaced (destructive behavior), that only providers with API keys are fetched, and that other providers keep their existing list. It also mentions the optional ping test, but does not cover all potential side effects like rate limits or network latency.

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

Conciseness4/5

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

The description is front-loaded with the main purpose, followed by details and Args. It is well-structured and not overly verbose, though it could be slightly more concise by merging some sentences.

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

Completeness5/5

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

Given the output schema exists (so return values are handled), the description covers all necessary aspects: what the tool does, when to use it, parameter details, and optional post-refresh actions. It is complete for the tool's complexity.

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

Parameters5/5

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

Schema coverage is 0%, so the description must compensate. It includes an explicit 'Args' section that explains each parameter in plain language: provider (optional), run_ping (triggers ping test), ping_limit (max models to ping). This adds significant meaning beyond the schema's type/name only.

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 description clearly states the verb 'fetch and replace' and the resource 'model lists from configured providers' with specific examples (openrouter, nvidia, groq). It distinguishes from siblings like list_models (which likely just lists) and scan/get_fastest (which are for discovery after refresh).

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

Usage Guidelines4/5

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

The description provides clear guidance: 'Only providers with API keys are fetched' and 'Use this to get the current catalog, then call scan() or get_fastest() for discovery.' It implies when to use but does not explicitly state when not to use or provide exclusions.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/srclight/model-radar'

If you have feedback or need assistance with the MCP directory API, please join our Discord server