Skip to main content
Glama

Get a test's recommended model

get_recommendation
Read-only

Which model a saved test's answers point to: the model to use, its pass rate and cost per 1,000 answers, the runner-up, the best-passing model, the prompt version and hash it was measured on, any retirement date, when the test last ran, and whether prices or models have changed since. Send prompt_hash to hear whether it is the prompt you run now. Read from stored answers: runs nothing, free.

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": {
      "test_id": "<test_id>"
    },
    "name": "get_recommendation"
  }
}

Input Schema

NameRequiredDescriptionDefault
test_idYes
prompt_hashNoYour own prompt's hash (sha256:..., as /docs/api defines it), to get back prompt_matches.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / prompt_hash
      Added value: +{
      +  "description": "Your own prompt's hash (sha256:..., as /docs/api defines it), to get back prompt_matches.",
      +  "type": "string"
      +}
  2. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description nonetheless adds genuinely new behavioral context: it reads from stored answers, executes nothing, and incurs no cost — the kind of fact annotations cannot express. It stops short of covering pagination or error behavior, which is minor here.

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?

It is front-loaded with the core answer and wastes no words, but the long comma-chained enumeration of return fields reads as a run-on and would scan better as a short list. Every clause carries information, so nothing is padding.

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?

There is no output schema, so the description has to describe the return payload — and it does so thoroughly, naming the recommended model, its metrics, runner-up, best-passing model, prompt version/hash, retirement date, last run, and staleness flags. For a two-parameter read tool, an agent has everything needed to call it and interpret the result.

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 only 50% and test_id has no schema description at all, so the description must compensate — and it does for prompt_hash by explaining the outcome of sending it (getting prompt_matches back to see if it matches the prompt you run now). The required test_id is only implied by 'a saved test's answers', leaving some burden on the agent.

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 states a specific resource and its scope: 'Which model a saved test's answers point to', followed by an enumeration of the exact result fields (pass rate, cost per 1,000 answers, runner-up, retirement date). This is clearly a per-test recommendation lookup. It does not explicitly contrast itself with the sibling list_recommendations, which is the only thing keeping it from a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied rather than stated: 'Send prompt_hash to hear whether it is the prompt you run now' tells the agent when the optional parameter is relevant, and 'Read from stored answers: runs nothing, free' signals this is a safe lookup. But there is no explicit guidance on choosing this over list_recommendations or get_test, nor any prerequisite about needing a completed run.

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.