Skip to main content
Glama

Cheapest model that still passes, per task, in one call

cheapest_model
Read-onlyIdempotent

One call, the headline answer: which is the cheapest LLM that still passes? With no arguments you get every task family (classification, extraction, tool-call) with its cheapest passing model, cost per successful task in US dollars (retries and failures counted), how much cheaper it is than the baseline, and the verdict page that proves it. Pass {"task":"spam detection"} (plain words, or a family such as classification) for just that answer. Next call: get_verdict with the slug for the full candidate table, failures and the re-run script.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "cheapest_model"
  }
}

Input Schema

NameRequiredDescriptionDefault
taskNoOptional. The task in plain words (spam detection, sentiment, json extraction, tool calling) or a family: classification, extraction, tool-call.

Output Schema

NameRequiredDescriptionDefault
countYesNumber of answers returned.
answersYes
app_urlYesWhere to run the same verdict on your own examples.
app_noteYes
headlineYesThe overview in one or two sentences.
next_callYesThe call to make next for the full table of one verdict.
prices_as_ofYesDate (YYYY-MM-DD) of the newest price snapshot behind the figures.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare the operation as read-only, idempotent, closed-world, and non-destructive. Beyond that, the description discloses that costs count retries and failures and are expressed per successful task, and it explains what is returned with and without a task argument.

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?

The definition is front-loaded and generally efficient, moving from headline behavior to argument behavior to the follow-up call. The first sentence is dense and slightly promotional with phrases like “headline answer” and “verdict page that proves it,” but no material information is wasted.

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 simple one-parameter read-only tool with an output schema and annotations, the description is complete: it covers default scope, filtered scope, key return concepts, and the follow-up path. No essential invocation detail is missing.

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 description coverage is 100%, so the schema already documents the optional task parameter and its accepted plain-word or family forms. The description adds useful behavioral meaning by explaining that omitting the parameter returns all task families while supplying it narrows the answer to that task.

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 description states exactly what the tool returns: the cheapest passing LLM per task, with cost per successful task, savings versus baseline, and a verdict slug. It also distinguishes this headline tool from the follow-up get_verdict call, which provides the full candidate table and failures.

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 explicitly explains the no-argument behavior (return every task family) and the argument behavior (return just that task's answer). It also names the appropriate next call, get_verdict, for deeper investigation.

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