Skip to main content
Glama

OptimToken: AI and Compute Economics

Compare LLM Models

compare-llm-models
Read-onlyIdempotent

Browse and filter the whole LLM catalogue and get back a ranked table: price, quality (ELO), efficiency and capabilities. Use this when the user wants to SEE THE FIELD — 'show me models under $1/1M', 'which providers have vision models', 'list open-weight models above ELO 1300', 'the ten cheapest models for a coding task'. The table is ordered by Arena ELO unless sortBy asks for efficiency, cost or price, and limit keeps the first rows of that order. For a single PICK under a budget use recommend-llm-model; to weigh 2-4 NAMED models against each other use compare-models-side-by-side. Prices come from OptimToken where reachable; the response's provenance says which tier served them and whether they are vendor-verified. Filter by provider, price tier (category), openness, capability, price range, or minimum ELO score. Optionally enrich with business metrics for a use case. Price tier and openness are independent: a model can be Frontier-priced and open-weight at once. Reports both list-price cost and the optimized cost achievable with prompt caching and the batch API. Prices, costs and scores are final as returned: rounded and ranked server-side, and dated by provenance. The text block is a numbered table of the same figures.

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": "compare-llm-models"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax models to return, counted after sorting (default: 15)
minEloNoMinimum Chatbot Arena ELO score. Typical range 1000-1500; ~1400 is roughly frontier-class. Models with no ELO score never satisfy this.
sortByNoOrder of the table, best first. elo: Arena ELO, highest first (default). efficiency: value score out of 100, highest first. cost: list-price cost per request for the use case, cheapest first. optimizedCost: the same after caching and batch. inputPrice / outputPrice: price per 1M tokens, cheapest first. A model missing the sorted figure comes last, and ties keep the ELO order. Cheapest first says nothing about quality: the ELO is beside each row.
categoryNoPrice tier, matched by exact equality (case-insensitive): Frontier, Mid-tier, Budget, Image. This is cost only — self-hostability is the separate `openness` axis.
opennessNoFilter by self-hostability, derived from the licence: Open source, Open weights, Proprietary, Unknown
providerNoFilter by provider name (e.g. 'OpenAI', 'Anthropic', 'Google')
capabilityNoCapability, matched by exact equality (case-insensitive): Text, Vision, Reasoning, Agents, Image Gen, Audio. Any other string returns zero matches. There is no Code capability: for what coding costs, use useCasePreset codingTask.
volumePresetNoMonthly request volume: 10k, 100k, or 1m. Default: 100k
maxInputPriceNoMax input price per 1M tokens in USD
useCasePresetNoWorkload shape, which sets tokens per request: supportTicket (1.5k in / 500 out), knowledgeQA (2k / 800), meetingSummary (10k / 1.2k, batch-eligible), marketingContent (2.5k / 1.8k), codingTask (3k / 2k), invoiceProcessing (1.5k / 600, batch-eligible), callSummary (2k / 700, batch-eligible), agentWorkflow (6k / 3k). Default: supportTicket
maxOutputPriceNoMax output price per 1M tokens in USD

Output Schema

NameRequiredDescriptionDefault
errorNo
modelsYes
sourceYes
eloAsOfYes
dataAsOfNo
sortedByYes
provenanceNo
catalogSizeYes
finopsBadgeNo
volumeLabelYes
useCaseLabelYes
matchingCountYes
optimizationAssumptionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / sortBy / description
      Previous value: -"Order of the table, best first. elo: Arena ELO, highest first (default). efficiency: value score out of 100, highest first. cost: list-price cost per request for the use case, cheapest first. optimizedCost: the same after caching and batch. inputPrice / outputPrice: price per 1M tokens, cheapest first. A model missing the sorted figure comes last, and ties keep the ELO order. Cheapest first says nothing about quality: read the ELO beside each row."New value: +"Order of the table, best first. elo: Arena ELO, highest first (default). efficiency: value score out of 100, highest first. cost: list-price cost per request for the use case, cheapest first. optimizedCost: the same after caching and batch. inputPrice / outputPrice: price per 1M tokens, cheapest first. A model missing the sorted figure comes last, and ties keep the ELO order. Cheapest first says nothing about quality: the ELO is beside each row."
  2. Changed1 schema field changed
    • addedInput schema / additionalProperties
      Added value: +false
  3. Changed1 schema field changed
    • addedOutput schema / properties / optimizationAssumption
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "batchEligible": {
      +      "type": "boolean"
      +    },
      +    "cacheHitRate": {
      +      "type": "number"
      +    },
      +    "summary": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "cacheHitRate",
      +    "batchEligible",
      +    "summary"
      +  ],
      +  "type": "object"
      +}
  4. Changed2 schema fields changed
    • addedOutput schema / properties / models / items / properties / deprecation
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "replacement": {
      +      "type": "string"
      +    },
      +    "shutdown": {
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
    • addedOutput schema / properties / provenance / properties / deprecationsVerifiedAt
      Added value: +{
      +  "type": "string"
      +}
  5. Changed5 schema fields changed
    • changedInput schema / properties / limit / description
      Previous value: -"Max models to return (default: 15)"New value: +"Max models to return, counted after sorting (default: 15)"
    • addedInput schema / properties / sortBy
      Added value: +{
      +  "description": "Order of the table, best first. elo: Arena ELO, highest first (default). efficiency: value score out of 100, highest first. cost: list-price cost per request for the use case, cheapest first. optimizedCost: the same after caching and batch. inputPrice / outputPrice: price per 1M tokens, cheapest first. A model missing the sorted figure comes last, and ties keep the ELO order. Cheapest first says nothing about quality: read the ELO beside each row.",
      +  "enum": [
      +    "elo",
      +    "efficiency",
      +    "cost",
      +    "optimizedCost",
      +    "inputPrice",
      +    "outputPrice"
      +  ],
      +  "type": "string"
      +}
    • addedOutput schema / properties / provenance / properties / hostPricingAsOf
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / sortedBy
      Added value: +{
      +  "enum": [
      +    "elo",
      +    "efficiency",
      +    "cost",
      +    "optimizedCost",
      +    "inputPrice",
      +    "outputPrice"
      +  ],
      +  "type": "string"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "models",
      -  "useCaseLabel",
      -  "volumeLabel",
      -  "source",
      -  "matchingCount",
      -  "catalogSize",
      -  "eloAsOf"
      -]New value: +[
      +  "models",
      +  "useCaseLabel",
      +  "volumeLabel",
      +  "source",
      +  "matchingCount",
      +  "catalogSize",
      +  "sortedBy",
      +  "eloAsOf"
      +]
  6. Changed3 schema fields changed
    • addedOutput schema / properties / models / items / properties / cacheWritePricePer1M
      Added value: +{
      +  "type": "number"
      +}
    • addedOutput schema / properties / models / items / properties / outlierListing
      Added value: +{
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / models / items / properties / promotionalListing
      Added value: +{
      +  "type": "boolean"
      +}
  7. Changed6 schema fields changed
    • removedOutput schema / properties / finopsBadge / properties / maxBlendedPrice / anyOf
      Removed value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / finopsBadge / properties / maxBlendedPrice / type
      Added value: +[
      +  "number",
      +  "null"
      +]
    • removedOutput schema / properties / finopsBadge / properties / minElo / anyOf
      Removed value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / finopsBadge / properties / minElo / type
      Added value: +[
      +  "number",
      +  "null"
      +]
    • removedOutput schema / properties / models / items / properties / efficiencyScore / anyOf
      Removed value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / models / items / properties / efficiencyScore / type
      Added value: +[
      +  "number",
      +  "null"
      +]
  8. Changed1 schema field changed
    • changedInput schema / properties / capability / description
      Previous value: -"Capability, matched by exact equality (case-insensitive): Text, Vision, Code, Reasoning, Agents, Image Gen, Audio. Any other string returns zero matches."New value: +"Capability, matched by exact equality (case-insensitive): Text, Vision, Reasoning, Agents, Image Gen, Audio. Any other string returns zero matches. There is no Code capability: for what coding costs, use useCasePreset codingTask."
  9. Changed10 schema fields changed
    • changedInput schema / properties / capability / description
      Previous value: -"Filter by capability: Text, Vision, Code, Reasoning, Agents, Image Gen, Audio"New value: +"Capability, matched by exact equality (case-insensitive): Text, Vision, Code, Reasoning, Agents, Image Gen, Audio. Any other string returns zero matches."
    • changedInput schema / properties / category / description
      Previous value: -"Filter by price tier: Frontier, Mid-tier, Budget, Image"New value: +"Price tier, matched by exact equality (case-insensitive): Frontier, Mid-tier, Budget, Image. This is cost only — self-hostability is the separate `openness` axis."
    • changedInput schema / properties / minElo / description
      Previous value: -"Minimum ELO score (quality benchmark from Chatbot Arena)"New value: +"Minimum Chatbot Arena ELO score. Typical range 1000-1500; ~1400 is roughly frontier-class. Models with no ELO score never satisfy this."
    • addedInput schema / properties / minElo / exclusiveMinimum
      Added value: +0
    • changedInput schema / properties / useCasePreset / description
      Previous value: -"Use case for cost estimation. Default: supportTicket"New value: +"Workload shape, which sets tokens per request: supportTicket (1.5k in / 500 out), knowledgeQA (2k / 800), meetingSummary (10k / 1.2k, batch-eligible), marketingContent (2.5k / 1.8k), codingTask (3k / 2k), invoiceProcessing (1.5k / 600, batch-eligible), callSummary (2k / 700, batch-eligible), agentWorkflow (6k / 3k). Default: supportTicket"
    • addedOutput schema / properties / models / items / properties / batchApplied
      Added value: +{
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / models / items / properties / batchEligible
      Added value: +{
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / models / items / properties / cacheApplied
      Added value: +{
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / models / items / properties / cacheEligible
      Added value: +{
      +  "type": "boolean"
      +}
    • changedOutput schema / properties / models / items / required
      Previous value: -[
      -  "provider",
      -  "model",
      -  "inputPricePer1M",
      -  "outputPricePer1M",
      -  "contextWindow",
      -  "category",
      -  "capabilities",
      -  "openness",
      -  "efficiencyScore",
      -  "useCaseCost",
      -  "optimizedUseCaseCost",
      -  "monthlyBudget",
      -  "optimizedMonthlyBudget",
      -  "volatilityRisk",
      -  "isFinOpsFriendly"
      -]New value: +[
      +  "provider",
      +  "model",
      +  "inputPricePer1M",
      +  "outputPricePer1M",
      +  "contextWindow",
      +  "category",
      +  "capabilities",
      +  "openness",
      +  "efficiencyScore",
      +  "useCaseCost",
      +  "optimizedUseCaseCost",
      +  "monthlyBudget",
      +  "optimizedMonthlyBudget",
      +  "volatilityRisk",
      +  "isFinOpsFriendly",
      +  "batchEligible",
      +  "cacheEligible",
      +  "batchApplied",
      +  "cacheApplied"
      +]
  10. Changed2 schema fields changed
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • addedOutput schema / properties / provenance
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "catalogTotal": {
      +      "type": "number"
      +    },
      +    "dataAsOf": {
      +      "type": "string"
      +    },
      +    "eloAsOf": {
      +      "type": "string"
      +    },
      +    "label": {
      +      "type": "string"
      +    },
      +    "notice": {
      +      "type": "string"
      +    },
      +    "pricesVerified": {
      +      "type": "boolean"
      +    },
      +    "source": {
      +      "type": "string"
      +    },
      +    "tier": {
      +      "type": "number"
      +    },
      +    "upstreamSchemaVersion": {
      +      "type": "string"
      +    },
      +    "upstreamSource": {
      +      "type": "string"
      +    },
      +    "upstreamTimestamp": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "tier",
      +    "source",
      +    "label",
      +    "pricesVerified",
      +    "eloAsOf"
      +  ],
      +  "type": "object"
      +}
  11. Changed2 schema fields changed
    • changedOutput schema / $schema
      Previous value: -"https://json-schema.org/draft/2020-12/schema"New value: +"http://json-schema.org/draft-07/schema#"
    • removedOutput schema / properties / provenance
      Removed value: -{
      -  "additionalProperties": false,
      -  "properties": {
      -    "catalogTotal": {
      -      "type": "number"
      -    },
      -    "dataAsOf": {
      -      "type": "string"
      -    },
      -    "eloAsOf": {
      -      "type": "string"
      -    },
      -    "label": {
      -      "type": "string"
      -    },
      -    "notice": {
      -      "type": "string"
      -    },
      -    "pricesVerified": {
      -      "type": "boolean"
      -    },
      -    "source": {
      -      "type": "string"
      -    },
      -    "tier": {
      -      "type": "number"
      -    },
      -    "upstreamSchemaVersion": {
      -      "type": "string"
      -    },
      -    "upstreamSource": {
      -      "type": "string"
      -    },
      -    "upstreamTimestamp": {
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "tier",
      -    "source",
      -    "label",
      -    "pricesVerified",
      -    "eloAsOf"
      -  ],
      -  "type": "object"
      -}
  12. Changed2 schema fields changed
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • addedOutput schema / properties / provenance
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "catalogTotal": {
      +      "type": "number"
      +    },
      +    "dataAsOf": {
      +      "type": "string"
      +    },
      +    "eloAsOf": {
      +      "type": "string"
      +    },
      +    "label": {
      +      "type": "string"
      +    },
      +    "notice": {
      +      "type": "string"
      +    },
      +    "pricesVerified": {
      +      "type": "boolean"
      +    },
      +    "source": {
      +      "type": "string"
      +    },
      +    "tier": {
      +      "type": "number"
      +    },
      +    "upstreamSchemaVersion": {
      +      "type": "string"
      +    },
      +    "upstreamSource": {
      +      "type": "string"
      +    },
      +    "upstreamTimestamp": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "tier",
      +    "source",
      +    "label",
      +    "pricesVerified",
      +    "eloAsOf"
      +  ],
      +  "type": "object"
      +}
  13. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare readOnly/idempotent/non-destructive; the description goes well beyond them by disclosing default sort (Arena ELO), tie-breaking and missing-value placement, that `limit` is applied after sorting, that prices are server-side rounded and dated via `provenance` (with vendor-verified tiering), and that both list-price and optimized costs are reported. That is exactly the behavioral context annotations cannot carry.

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-loads purpose, then routing, then filtering/behavior — good ordering with concrete user-query examples. It is long and the default-sort rule is effectively stated twice (prose and sortBy's own schema description), which is mild redundancy but not noise.

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 an 11-parameter zero-required filtering tool with an output schema, the description covers the decision to use it, the routing alternatives, the filter axes, ordering semantics and the provenance caveat on returned prices. Nothing needed for a correct call 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 coverage is 100%, so baseline is 3, but the description adds real meaning: price tier and openness are independent axes, capability filtering has no 'Code' value and should use useCasePreset codingTask instead, and sortBy values map to cost/efficiency/price intents. These clarifications reduce misuse rather than restating the schema.

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?

Opens with a specific verb+resource ('Browse and filter the whole LLM catalogue') and states the output shape ('ranked table: price, quality (ELO), efficiency and capabilities'). It also explicitly distinguishes itself from recommend-llm-model (single pick under budget) and compare-models-side-by-side (2-4 named models), so an agent can route without opening the 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 the selecting condition ('when the user wants to SEE THE FIELD') with four concrete example queries, then names both alternatives and the condition that selects each. The exclusion is explicit rather than implied.

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.