Skip to main content
Glama

One AI provider's latency in every region

get_provider_latency
Read-onlyIdempotent

Compare one AI provider's latency, uptime, and rank across Germany, USA, Tokyo, and Sao Paulo over the last 24 hours. Use it to see if a provider is slower or unreachable from specific regions.

Instructions

Show how a single AI API provider performs from every probe region (Germany, USA, Tokyo, Sao Paulo): its rank in that region, median and p95 time to first byte, uptime and sample count over the last 24 hours. Use it for questions like 'is the Anthropic API slower from Asia than from Europe' or 'was OpenAI reachable today'. For the full leaderboard of a region use get_ai_api_latency. An unknown provider id returns an error that lists the valid ids.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
providerYesProvider id as published on llmlatency.dev, lowercase with hyphens, e.g. openai, anthropic, google, groq, mistral, deepseek, openrouter, together, fireworks.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
sourceNoAttribution URL (CC BY 4.0)
regionsYesOne row per region where the provider was measured
providerYesNormalized provider id
generatedNoUTC timestamp when the dataset was built

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so safety is covered structurally. The description adds meaningful behavior beyond them: the 24-hour data window, the enumerated probe regions, the exact metric set, and the error contract for an unknown provider id. Return format is not detailed, but an output schema exists to carry that.

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?

Three sentences, front-loaded with what the tool returns, then examples, then the alternative tool. No filler, no restatement of the title, and each sentence carries distinct routing or scoping information.

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?

An output schema exists so return values needn't be explained, yet the description still names the metrics and regions the agent will see. Combined with usage examples, the sibling routing rule, and the error behavior, everything needed to select and call this single-parameter tool correctly is present.

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 coverage is 100% and the format is already pinned by the schema (lowercase-with-hyphens, example ids), so the baseline is 3. The description adds a semantic the schema does not: an unknown provider id errors and lists the valid ids, which tells the agent how to recover from a bad value.

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?

Specific verb+resource: 'Show how a single AI API provider performs from every probe region', with the exact metrics returned (rank, median and p95 TTFB, uptime, sample count) and the time window (24 hours). It explicitly contrasts scope with the sibling get_ai_api_latency, which is the full leaderboard, so an agent can distinguish them without opening either schema.

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?

Provides concrete example questions ('is the Anthropic API slower from Asia than from Europe', 'was OpenAI reachable today') that map intent to this tool, and names the alternative get_ai_api_latency plus the condition that selects it (full region leaderboard). When-to-use and when-not-to-use are both covered.

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