Skip to main content
Glama

Recommend the measured best model for a task (score, cost per correct)

recommend

Recommends what to call for a task from our own measurements: the rows on the measured frontier (top score or cheapest cost per correct output), each with score, cost per correct, n, date, source and the gaents alias or job to call. Measured tasks now: coding, ner, ner-conll2003, ocr, pixel-canary-profile, placement, roar, s1, transcription, transcription-h2h15, tts. Use it to choose a model or job for one of those tasks before paying for runs. Use models_list instead for every model's price and verdict at once, free. Use chat instead to run the recommended alias. Cost: $0.005 per answered task, debited from your balance; a task we have not measured answers 'not measured' and is free. Auth: Authorization: Bearer (POST https://api.gaents.com/v1/accounts, $0.10 free credit); with no key the call returns a signed 402 quote payable in BSV or USDC via x402. Errors (isError, error.code): 400 task_required, 401 bad_api_key, 402 low balance.

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": {
      "task": "<task>"
    },
    "name": "recommend"
  }
}

Input Schema

NameRequiredDescriptionDefault
taskYesA task id from the list above, or words matched against task names (e.g. extraction).

Output Schema

NameRequiredDescriptionDefault
dataNothe build and its sources
taskYes
answerNo'measured' or 'not measured'
matchesNo
measuredYes
charged_usdNo
measured_tasksNothe tasks we have measured (always given)
receipt_quote_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Discloses behavior the annotations cannot: $0.005 per answered task debited from balance, unmeasured tasks return 'not measured' and are free, bearer-key auth with the signup endpoint and free-credit amount, a signed 402 x402 quote path with no key, and the specific error codes. This also explains why readOnlyHint=false despite being a lookup, since it debits a balance.

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 behavior and alternatives, and dense with no filler. It is a long single paragraph though, with auth/error details packed into the same block as the selection guidance; a small structure cost, not a content one.

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?

Covers everything needed for a paid, auth-gated query: valid inputs, cost and billing behavior, free-path behavior for unmeasured tasks, auth modes, and failure codes. An output schema exists, so not describing the returned row fields in detail is acceptable.

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% for the single required parameter, so the baseline is 3. The description adds real meaning by enumerating the currently valid task ids and noting that free text is matched against task names, which the schema only gestures at with 'a task id from the list above'.

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?

States a specific verb and resource ('Recommends what to call for a task from our own measurements') plus the exact selection criterion (top score or cheapest cost per correct output), and enumerates the data returned. It is clearly distinct from models_list (all models' prices/verdicts) and chat (executes the alias).

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 an explicit precondition and timing ('before paying for runs'), plus named alternatives with the condition that selects each: models_list for the full price/verdict sweep (free), chat to run the recommended alias. It also bounds applicability by listing the measured tasks, so an agent knows when the tool will not help.

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