Skip to main content
Glama

Check if a cheaper model will do

check_cheaper_model

Use this when someone runs a prompt on a model now and asks whether a cheaper model would be good enough for it. Tests the model they use beside up to 3 cheaper current models on the same cases, and answers with the cheapest one that passed about as often (at most 5 points of pass rate below), the saving per 1,000 answers and each model's figures, or that no cheaper model held up. Do not use without a prompt to test, or to follow a test already started (that is get_test). Spends credit, never more than max_spend_usd by estimate (default 2 dollars). Waits up to about 25 seconds; if the test isn't done by then it returns the test_id and progress, and get_test follows it from there. Each call starts another paid test, so don't call it again to follow one.

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": {
      "prompt": "<prompt>",
      "current_model": "<current_model>"
    },
    "name": "check_cheaper_model"
  }
}

Input Schema

NameRequiredDescriptionDefault
promptYesThe prompt as it is used, pasted whole. The part that changes from one use to the next is found and varied; it can also be marked as {{snake_case}} variables.
examplesNoOptional, up to 50: real examples of what goes into the prompt, as plain text (a customer email, a product). They become the first cases, and realistic ones are drafted to fill the rest.
current_modelYesThe model the prompt runs on now, as the person says it (gpt, claude sonnet, gemini pro) or an ID from list_models. A family name is matched to its newest model, and the result says which.
max_spend_usdNoThe most this test may spend, in dollars. Default 2, never above the credit left. To fit, cheaper models are left out first, then cases; the model in use always stays.

Output Schema

NameRequiredDescriptionDefault
urlYes
moreNo
nameNo
nextNo
pickNo
unitNo
errorNo
voiceNoWith writing samples: how each version's answers compare with the person's own writing. A style check, not an AI detector.
detailNo
modelsNo
statusYes
startedNoWhat this call started.
summaryYesOne or two plain sentences to lead with.
test_idYes
verdictNo
versionNo
failuresNo
progressNo
spent_usdNo
comparisonNoReady to show as a table: columns, then one row per model, best first.
most_passedNo
cheaper_setupNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedOutput schema / properties / voice
      Added value: +{
      +  "description": "With writing samples: how each version's answers compare with the person's own writing. A style check, not an AI detector.",
      +  "type": "object"
      +}
  2. Changed4 schema fields changed
    • addedOutput schema / properties / models / items / properties / cost_per_1000_images
      Added value: +{
      +  "type": [
      +    "number",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / most_passed / properties / cost_per_1000_images
      Added value: +{
      +  "type": [
      +    "number",
      +    "null"
      +  ]
      +}
    • changedOutput schema / properties / pick / anyOf
      Previous value: -[
      -  {
      -    "properties": {
      -      "cost_per_1000_answers": {
      -        "type": [
      -          "number",
      -          "null"
      -        ]
      -      },
      -      "errors": {
      -        "type": "integer"
      -      },
      -      "model": {
      -        "type": "string"
      -      },
      -      "name": {
      -        "type": "string"
      -      },
      -      "of": {
      -        "type": [
      -          "integer",
      -          "null"
      -        ]
      -      },
      -      "pass_rate": {
      -        "description": "Percent of cases that passed every must check.",
      -        "type": [
      -          "number",
      -          "null"
      -        ]
      -      },
      -      "passed": {
      -        "type": [
      -          "integer",
      -          "null"
      -        ]
      -      },
      -      "seconds": {
      -        "type": [
      -          "number",
      -          "null"
      -        ]
      -      }
      -    },
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "properties": {
      +      "cost_per_1000_answers": {
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "cost_per_1000_images": {
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "errors": {
      +        "type": "integer"
      +      },
      +      "model": {
      +        "type": "string"
      +      },
      +      "name": {
      +        "type": "string"
      +      },
      +      "of": {
      +        "type": [
      +          "integer",
      +          "null"
      +        ]
      +      },
      +      "pass_rate": {
      +        "description": "Percent of cases that passed every must check.",
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "passed": {
      +        "type": [
      +          "integer",
      +          "null"
      +        ]
      +      },
      +      "seconds": {
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      }
      +    },
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedOutput schema / properties / unit
      Added value: +{
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
  3. Added

TDQS

A4.6/5.0
Behavior5/5

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

Goes well past the annotations (readOnlyHint=false, openWorldHint=true, destructiveHint=false): it discloses that the call spends credit, is bounded by max_spend_usd by estimate (default 2 dollars), waits about 25 seconds, and returns a test_id plus progress if the run is unfinished. The cost and timeout behaviour are exactly what an agent needs to decide whether to call it inline or hand off to get_test.

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 selection condition before the mechanics, so an agent can triage on the first clause. The final sentence about each call starting another paid test partly duplicates the earlier get_test guidance, which keeps it from a 5, but the density is otherwise high with no filler.

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 paid, asynchronous, multi-model comparison tool, the description covers the cost cap, the time bound, the partial-result path and the follow-up tool, and an output schema already carries the return shape. Nothing an agent needs to invoke it safely and handle the result 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%, so the baseline applies. The description's mention of max_spend_usd and the default of 2 dollars largely restates what the parameter description already says, adding only the 'by estimate' caveat; nothing is said about how the prompt or examples shape the cases beyond what the schema documents.

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: tests the model in use against up to 3 cheaper models on the same cases and reports the cheapest that held up. It also names the decision it serves ('whether a cheaper model would be good enough'), so an agent can distinguish it from test_prompt, compare_models and get_test 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 ('someone runs a prompt on a model now and asks whether a cheaper model would be good enough'), explicit when-not ('without a prompt to test', 'to follow a test already started'), and names the alternative that covers the excluded case (get_test). It also warns against re-calling to poll, with the reason that each call is a new paid test.

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.