Skip to main content
Glama

recommend_model

Recommend the optimal LLM model from a free-text description of your use case — no need to already know the routing engine's task_type vocabulary. Classifies the description into a task type, then runs it through the same routing engine behind /router/recommend (live pricing + benchmark quality, hard filters for cost/quality/context window, scored by quality-per-dollar). Returns the best match plus up to 3 alternatives. Read-only — use predict_cost first if you also want per-model cost estimates for an actual prompt, and optimize_workload if you have several distinct task types to route at once. Restricts (not just boosts) the candidate set to models your client can run before ranking. Pass client (e.g. 'claude_code', 'cursor', 'github_copilot', 'cline') so the answer is restricted to models that tool can run; omit it and the hosted server tries to infer it from the MCP handshake, otherwise every priceable model is considered. An explicit client always wins. Recognised clients: claude_code, claude_desktop, cursor, github_copilot, windsurf, cline, continue, zed, jetbrains_ai, gemini_cli, codex_cli, aider, amazon_q, chatgpt_desktop.

Input Schema

NameRequiredDescriptionDefault
clientNoYour MCP client / coding tool, so only models it can run are considered. Recognised: claude_code, claude_desktop, cursor, github_copilot, windsurf, cline, continue, zed, jetbrains_ai, gemini_cli, codex_cli, aider, amazon_q, chatgpt_desktop. Case- and separator-insensitive ('Claude Code' = claude_code). Order: explicit client > legacy ide_context > client inferred from the MCP handshake (hosted server, best effort) > none. Unknown names return an unfiltered result plus a note.
countryNoOptional ISO-3166 alpha-2 country whose currency to use (e.g. DE -> EUR, IN -> INR). A country whose currency is unsupported yields USD with fallback_to_usd=true.
currencyNoOptional ISO-4217 code to convert prices into, alongside the canonical USD figures. Beats country. Unsupported codes return success=false listing the supported set.
task_typeNoOptional explicit task type, bypassing auto-classification of the description. Options: classification, extraction, summarization, qa, code_generation, translation, chat, content_generation, reasoning, function_calling, data_analysis, rewrite
descriptionYesFree-text description of the use case, e.g. 'summarize long customer support tickets' or 'generate Python unit tests'
ide_contextNoDeprecated alias of client (same values, same meaning).
avg_input_tokensNoAverage input tokens per request (default: 500)
avg_output_tokensNoAverage output tokens per request (default: 200)
min_quality_scoreNoMinimum required quality score (0-100)
min_context_windowNoMinimum required context window size (tokens)
monthly_budget_usdNoMonthly spend ceiling in USD. Combined with estimated_monthly_requests, avg_input_tokens, and avg_output_tokens to hard-filter models that would exceed it.
prefer_low_latencyNoPrioritise lower-latency models (default: false)
preferred_providerNoPreferred provider name (10% score boost applied)
max_cost_per_1m_tokensNoMaximum acceptable average cost per 1M tokens (USD)
exclude_reasoning_modelsNoExclude slow thinking/reasoning models (default: false)
estimated_monthly_requestsNoEstimated requests per month (default: 1000)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / client
      Added value: +{
      +  "description": "Your MCP client / coding tool, so only models it can run are considered. Recognised: claude_code, claude_desktop, cursor, github_copilot, windsurf, cline, continue, zed, jetbrains_ai, gemini_cli, codex_cli, aider, amazon_q, chatgpt_desktop. Case- and separator-insensitive ('Claude Code' = claude_code). Order: explicit client > legacy ide_context > client inferred from the MCP handshake (hosted server, best effort) > none. Unknown names return an unfiltered result plus a note.",
      +  "type": "string"
      +}
    • changedInput schema / properties / ide_context / description
      Previous value: -"IDE context hint — boosts IDE-native tools: 'copilot' | 'cursor' | 'windsurf' | 'claude_code' | 'jetbrains' | 'amazon_q'"New value: +"Deprecated alias of client (same values, same meaning)."
  2. Changed2 schema fields changed
    • addedInput schema / properties / country
      Added value: +{
      +  "description": "Optional ISO-3166 alpha-2 country whose currency to use (e.g. DE -> EUR, IN -> INR). A country whose currency is unsupported yields USD with fallback_to_usd=true.",
      +  "maxLength": 2,
      +  "minLength": 2,
      +  "type": "string"
      +}
    • addedInput schema / properties / currency
      Added value: +{
      +  "description": "Optional ISO-4217 code to convert prices into, alongside the canonical USD figures. Beats country. Unsupported codes return success=false listing the supported set.",
      +  "enum": [
      +    "USD",
      +    "EUR",
      +    "GBP",
      +    "INR",
      +    "JPY",
      +    "CAD",
      +    "AUD",
      +    "BRL",
      +    "CNY",
      +    "SGD",
      +    "CHF",
      +    "KRW",
      +    "MXN"
      +  ],
      +  "type": "string"
      +}
  3. First observed

TDQS

A4.6/5.0
Behavior5/5

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

No annotations exist, so the description carries the full burden and does so: it declares 'Read-only', discloses the ranking method (live pricing + benchmark quality, hard filters, quality-per-dollar scoring), the return shape (best match plus up to 3 alternatives), and non-obvious fallback behavior — client restriction is a filter not a boost, explicit client wins, omission triggers handshake inference, and unknown names return an unfiltered result plus a note.

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

Conciseness3/5

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

Purpose and alternatives are correctly front-loaded, but the paragraph is dense and includes a full enumeration of 14 recognised client names that the client parameter's schema description already lists in greater detail — roughly a fifth of the text is redundant. It is informative rather than padded, but it is longer than it needs to be.

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 a 16-parameter, no-annotation, no-output-schema tool, the description covers what matters most: purpose, alternatives, read-only safety, ranking method, and return shape. The remaining gap is that the cost/currency/budget parameters are left entirely to the schema, which is acceptable given 100% schema coverage but means the description alone would not tell an agent the tool supports currency conversion or budget hard-filters.

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%, so the baseline is 3; the description earns above that by explaining the semantics an agent would otherwise get wrong — that client restricts rather than boosts the candidate set, the precedence order, and that omitting it degrades to every priceable model. It does not touch the other 13 parameters (budget, currency, token averages), but the schema already documents those fully.

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?

Opens with a specific verb+resource ('Recommend the optimal LLM model') and immediately names the mechanism (classifies free-text into task_type, runs it through the same routing engine behind /router/recommend). It explicitly distinguishes itself from the two nearest siblings, predict_cost and optimize_workload, so an agent can choose without opening any 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?

Gives explicit when-to-use-this vs when-to-use-alternatives routing: 'use predict_cost first if you also want per-model cost estimates for an actual prompt, and optimize_workload if you have several distinct task types to route at once.' It also states the input precondition (free-text description, no need to know the task_type vocabulary) and how to get a filtered vs unfiltered answer via client.

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.