Skip to main content
Glama

scan

Pings all matching LLM models in parallel, ranks results by latency, and optionally verifies up models with a real prompt to flag broken ones.

Instructions

Ping models in parallel and return ranked results by latency. Use when you need live speed data or a ranked list.

Pings all matching models, returns sorted fastest-first. Takes 2-10 seconds depending on filters.

When verify=True, sends a real prompt to each "up" model and checks for non-empty content. Models that return empty/garbage are marked as BROKEN (distinct from ERROR or OVERLOADED). This catches models that ping as UP but are functionally dead. Verification results are cached across scans within the session.

Args: tier: Filter to exact tier (S+, S, A+, A, A-, B+, B, C) provider: Filter to provider key (nvidia, groq, cerebras, etc.) min_tier: Show this tier and above (e.g. "S" shows only S+ and S) configured_only: Only ping models whose provider has an API key free_only: Only include models marked as free (from API or :free/-free in id) limit: Max results (default 20, 0 = all) verify: Send a real prompt to validate non-empty content (default false) verify_prompt: Custom verification prompt (default "Reply with exactly: OK")

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": "scan"
  }
}

Input Schema

NameRequiredDescriptionDefault
tierNo
limitNo
verifyNo
min_tierNo
providerNo
free_onlyNo
verify_promptNo
configured_onlyNo

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/5.0
Behavior4/5

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

With zero annotations the description carries the full burden, and it delivers real behavioral detail: parallel pinging, a 2-10 second runtime that varies with filters, verify sending an actual prompt to each UP model, a BROKEN state explicitly distinguished from ERROR and OVERLOADED, and session-level caching of verification results. What it omits is the cost/quota implication of sending real prompts and any rate-limit or concurrency caveats.

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 lead sentence is front-loaded with purpose and timing, and the verify paragraph is placed before the parameter list where it matters. There is minor redundancy between 'ranked results by latency' and 'returns sorted fastest-first', and the docstring-style Args block is verbose, but nothing is wasted.

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?

For an eight-parameter tool with an output schema (so return shape need not be described) and no annotations, the definition covers filtering semantics, runtime expectations, and the verify side effect well. The remaining gap is operational: no statement about whether pinging consumes provider quota or how the session cache invalidates.

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 description coverage is 0%, so the Args block is doing essential work: it documents all eight parameters, enumerates the valid tier values (S+, S, A+, A, A-, B+, B, C), explains min_tier's inclusive-above semantics, and adds '0 = all' for limit, which the bare schema does not convey. This is exactly the compensation a low-coverage schema needs.

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

Purpose4/5

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

States a specific verb and resource ('Ping models in parallel and return ranked results by latency') plus a concrete output shape ('sorted fastest-first'). It is clear on its own, but it never distinguishes itself from latency-related siblings such as get_fastest, benchmark, or compare, so an agent must guess between them.

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

Usage Guidelines3/5

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

'Use when you need live speed data or a ranked list' gives a positive trigger condition, and the verify paragraph implies when to enable validation. However, there are no when-not-to-use statements and no named alternative for the overlapping speed-ranking siblings, leaving the routing decision implicit.

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