Skip to main content
Glama

Compare models on a prompt

compare_models

Use this when someone has a prompt (pasted, or one their app sends) and wants models compared on it in one step: which does it best, what each costs per 1,000 answers and how quick each is. Runs it on realistic cases across about four current models from different labs and price tiers, or the models they name, and checks every answer. Do not use for general questions about models with no prompt to test, or to follow a test already started (that is get_test). For checks, shared context or more control, use test_prompt. 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>"
    },
    "name": "compare_models"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelsNoOptional, up to 50: names as the person said them (gpt, claude, gemini, sonnet) or IDs from list_models, each matched to the newest model of its family. Default: about four current models from the starting mix, from dearest to cheapest.
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.
max_spend_usdNoThe most this test may spend, in dollars. Default 2, never above the credit left. Models are left out, dearest first, to fit.

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.4/5.0
Behavior4/5

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

Annotations only flag it as a non-read-only, open-world, non-destructive call; the description adds the material context that it spends credit, is capped by max_spend_usd (default 2 dollars), waits roughly 25 seconds, and then returns a test_id plus progress for get_test to follow. It also warns that each call starts a new paid test, preventing accidental duplicate spend. The only gap is that it doesn't say what happens to partial results or credit when the wait times out mid-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?

It is long but front-loaded: the triggering situation comes first, then scope, then exclusions, then cost and timing behavior. The closing warning about not calling it again to follow a test slightly repeats the get_test routing already stated, which is the only real redundancy.

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, open-world comparison tool with an output schema, the description covers the decision inputs an agent needs: when to call, what it costs, how long it takes, and what to do if it isn't finished. Return-value details are correctly left to the output schema.

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 all four parameters, their defaults, and the dearest-first model-dropping rule are already documented in the schema. The description restates the default spend and the named-or-current model behavior but adds no new syntax or constraint meaning beyond that. A 3 baseline is appropriate when the schema does the heavy lifting.

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 — compare models on a supplied prompt in one step — and enumerates what is reported (best answer, cost per 1,000 answers, speed). It explicitly separates itself from get_test and points to test_prompt for other needs, so an agent can choose without opening a 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 both sides of the decision: use when someone has a concrete prompt to test; do not use for general model questions or to follow an already-started test (that is get_test). It also names test_prompt as the alternative for checks, shared context, or more control.

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.