Skip to main content
Glama
aiprice-mcp

aiprice-mcp

Official
by AIprice-club

API relay ranking (API 中转站排行)

get_relay_ranking
Read-onlyIdempotent

Rank LLM API relay sites by price per 1M tokens for a model family or Claude Code/Codex board. Compare effective ratios, uptime, and curated picks with a risk note.

Instructions

Ranking of LLM API relay sites (API 中转站, e.g. New API / One API / Sub2API stations) from TokenPrice (tokenprice.cc) for one model family, or the Claude Code / Codex boards ranked by the actual CNY price per 1M tokens of the models those tools call. Returns curated picks (uptime >= 99%, listed >= 30 days, price within 20%-100% of median), top-ranked sites with effective ratio (实际倍率), uptime and links, model price table, and a risk note. Use when the user asks which Claude / GPT / Gemini / DeepSeek relay is cheapest or recommended, or the cheapest relay for Claude Code or Codex. 中文关键词:中转站推荐、哪家中转便宜、倍率、Claude 中转、Codex 中转、Claude Code 中转站。

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "family": "<family>"
    },
    "name": "get_relay_ranking"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoHow many ranked sites to return (default 10, max 50)
codingNotrue = coding-tool board: family "claude" -> Claude Code board, family "gpt" -> Codex board
familyYesModel family: claude, gpt, gemini, grok, deepseek, glm, kimi, qwen; or "claude-code" / "codex" for the coding-tool boards

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, so safety is covered; the description instead adds material behavior the annotations cannot convey — the curation rules (uptime >= 99%, listed >= 30 days, price within 20%-100% of median), the inclusion of a risk note, and the fact that ranking is by actual CNY price per 1M tokens. It does not state data freshness or update cadence, which is the main remaining gap for a price-ranking tool.

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?

Purpose is front-loaded in the first clause and every subsequent element (eligibility rules, returned content, use cases, Chinese keywords) is substantive. It is dense as a single unbroken paragraph, and the bilingual keyword tail, while useful for matching, is not structured separately from the body.

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?

There is no output schema, so the description must carry return-value disclosure, and it does: curated picks, top-ranked sites with effective ratio, uptime and links, a model price table, and a risk note. Given three parameters at full coverage and closed-world safety annotations, this is close to complete; only freshness/recency of the price data is missing.

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 coverage is 100%, with family, limit and coding all documented including allowed family values, the 1-50 bound and the coding-board mapping. The description reinforces that the result is scoped to 'one model family' and explains what the coding boards rank by, but it adds no syntax or format detail beyond what the schema already states, so it lands at the baseline.

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?

The description opens with a precise verb+resource: a ranking of LLM API relay sites for one model family, plus Claude Code / Codex price boards, and it names the data source (tokenprice.cc) and the metrics used. It is highly specific about what is ranked and how, but it never names or contrasts a sibling tool (e.g. get_relay_site or get_model_relay_prices), so differentiation is left to the agent.

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?

It gives direct when-to-use triggers: 'Use when the user asks which Claude / GPT / Gemini / DeepSeek relay is cheapest or recommended, or the cheapest relay for Claude Code or Codex,' reinforced with Chinese keyword triggers that match how users phrase these requests. It stops short of exclusions or pointing at an alternative tool for adjacent needs such as a single site's details or official region pricing.

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