Skip to main content
Glama

Find the lowest-priced relay for a model

find_cheapest_relay
Read-onlyIdempotent

Find the relay with the lowest observed input price for one model, under these conditions: CNY-priced relays whose 24h uptime is at least minUptime24hPercent (default 90; pass the user's number when they name an uptime requirement), excluding first-top-up, trial and free promotional groups. Returns that one relay with its slug, group, price per 1M input tokens, 24h uptime, the filter criteria, the data time (dataAsOf) and the only wording the result supports for a price claim. It is a single filtered candidate, not an overall ranking: to compare several relays use get_model_board, and check purity with get_station before recommending.

Input Schema

NameRequiredDescriptionDefault
modelYesModel slug as used on OkkMax, e.g. claude-opus-5-5 or gpt-6-astra. Dated aliases and other spellings of the same version (4.6 for 4-6) are accepted and resolved to the canonical slug. Use search_models to find slugs.
localeNoLanguage of the human-readable text (statement, reason, notes, suggestions) and of the OkkMax page links. Pass zh when the user writes Chinese, otherwise en. Field names and data values are the same either way.en
minUptime24hPercentNoMinimum 24h uptime in percent (0-100, default 90). Set it to the uptime the user asked for, for example 99. Groups whose uptime is below it or not measured are excluded.

Output Schema

NameRequiredDescriptionDefault
foundYes
modelYes
relayNo
reasonNo
criteriaYes
dataAsOfYesISO 8601 time the underlying OkkMax data was last updated (not the time of this response). null when unavailable.
statementNoThe only wording this result supports for a price claim; it carries the filter, currency, unit and data time.
aliasNoticeNo
suggestionsNo
modelBoardUrlYes
requestedModelNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, and non-destructive, so the safety profile needs no restating. The description adds real behavioral context beyond them: the exact exclusion set (first-top-up, trial, free promotional groups), the CNY pricing restriction, the fact that low or unmeasured uptime groups are dropped, and that results carry dataAsOf plus 'the only wording the result supports for a price claim' — a useful anti-overclaiming constraint. Missing are any notes on empty-result behavior or rate limits, which keeps it at a solid 3 rather than higher.

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?

Front-loaded with the core action and the filter conditions, then a return-shape sentence, then sibling routing — a logical order with no filler sentences. It is dense to the point of being clause-heavy, packing filters, exclusions, return fields, and caveats into three long sentences, which costs a little readability but nothing is gratuitous.

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?

For a three-parameter read tool with a full input schema, full annotations, and an output schema, the definition covers everything an agent needs: filter semantics, the single-candidate limitation, downstream verification steps, and the evidentiary caveat about price wording. Return values are largely deferred to the output schema, which is appropriate.

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

Parameters3/5

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

Schema description coverage is 100%, so all three parameters are already well documented, establishing a baseline of 3. The description reinforces but does not extend the schema: its uptime guidance ('pass the user's number when they name an uptime requirement') and default-90 note are already present in the minUptime24hPercent schema text, and the model and locale parameters receive no added meaning in the description. Adequate but redundant rather than additive.

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 opening states a precise verb, resource, and scope: 'Find the relay with the lowest observed input price for one model,' immediately qualified with the filtering conditions (CNY-priced, uptime floor, exclusion of first-top-up/trial/free promo groups). It also explicitly distinguishes itself from ranking siblings by noting it returns 'a single filtered candidate, not an overall ranking.' An agent can tell this apart from get_model_board 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?

It names concrete when-to-use conditions ('pass the user's number when they name an uptime requirement') and explicitly routes to alternatives: get_model_board for comparing several relays, get_station for purity checks before recommending. Both the trigger and the exclusions are stated rather than inferred.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources