Skip to main content
Glama

OptimToken: AI and Compute Economics

Compare Model Hosts

compare-model-hosts
Read-onlyIdempotent

Who sells a model, and at what price. Most models are sold by several hosts (the model maker, a cloud platform such as Amazon Bedrock, Azure or Vertex, or an independent host) at different rates, and every other tool here quotes ONE of them. For 1-4 named models this returns how many hosts sell each, the cheapest, the dearest, the model maker's own rate, the spread between them, any promotional listing, and what a workload costs per request and per month at each. Use it for 'where is Llama 3.3 70B cheapest', 'is the price you quoted the maker's own', 'how much does the choice of host matter for this model'. To cost a workload at the quoted price with caching and batch, use estimate-llm-cost. Its answer carries the caveats: the cheapest host may serve a quantized build, which is not the same product, or a promotional rate that ends. It also lists every host with its rate, cheapest first, the platforms the model is listed on (Direct API, AWS Bedrock, Azure AI Foundry, Google Vertex, OpenRouter: a hand-kept estimate for the major models) and the AWS regions where Amazon Bedrock lists it. hostList.available says whether that full list was read: without it only the cheapest, the dearest, the maker's own and promotional listings are known, and the text says so. A missing platform or region is not known, never 'not sold there'. Per-host prices are list prices read nightly and dated by provenance.hostPricingAsOf, and a model with no host data says so rather than reading as sold by one host.

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": {
      "models": "<models>"
    },
    "name": "compare-model-hosts"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelsYes1-4 model names, e.g. ['Llama 3.3 70B'] or ['Claude Sonnet 5', 'DeepSeek V4']
volumePresetNoMonthly request volume: 10k, 100k, or 1m. Default: 100k
useCasePresetNoWorkload the costs are computed for, which sets tokens per request: supportTicket (1.5k in / 500 out), knowledgeQA (2k / 800), meetingSummary (10k / 1.2k), marketingContent (2.5k / 1.8k), codingTask (3k / 2k), invoiceProcessing (1.5k / 600), callSummary (2k / 700), agentWorkflow (6k / 3k). Default: supportTicket

Output Schema

NameRequiredDescriptionDefault
errorNo
modelsYes
sourceYes
volumeYes
eloAsOfYes
dataAsOfNo
hostListNo
provenanceNo
resolutionYes
volumeLabelYes
useCaseLabelYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / additionalProperties
      Added value: +false
  2. Changed8 schema fields changed
    • addedOutput schema / properties / hostList
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "availabilityReviewedAt": {
      +      "type": "string"
      +    },
      +    "available": {
      +      "type": "boolean"
      +    },
      +    "bedrockAvailabilityAsOf": {
      +      "type": "string"
      +    },
      +    "hostPricingAsOf": {
      +      "type": "string"
      +    },
      +    "notFound": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "unavailableReason": {
      +      "type": "string"
      +    },
      +    "upstreamSchemaVersion": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "available",
      +    "notFound"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / properties / models / items / properties / bedrockRegions
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
    • addedOutput schema / properties / models / items / properties / deprecation
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "replacement": {
      +      "type": "string"
      +    },
      +    "shutdown": {
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
    • addedOutput schema / properties / models / items / properties / offers
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "discount": {
      +            "type": "number"
      +          },
      +          "host": {
      +            "type": "string"
      +          },
      +          "inputPricePer1M": {
      +            "type": "number"
      +          },
      +          "monthly": {
      +            "type": "number"
      +          },
      +          "outputPricePer1M": {
      +            "type": "number"
      +          },
      +          "perRequest": {
      +            "type": "number"
      +          },
      +          "quantization": {
      +            "type": "string"
      +          },
      +          "standardInputPricePer1M": {
      +            "type": "number"
      +          },
      +          "standardOutputPricePer1M": {
      +            "type": "number"
      +          },
      +          "vsQuotedPct": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          }
      +        },
      +        "required": [
      +          "host",
      +          "inputPricePer1M",
      +          "outputPricePer1M",
      +          "perRequest",
      +          "monthly",
      +          "vsQuotedPct"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
    • addedOutput schema / properties / models / items / properties / platforms
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": false,
      +      "properties": {
      +        "names": {
      +          "items": {
      +            "type": "string"
      +          },
      +          "type": "array"
      +        },
      +        "provenance": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "names",
      +        "provenance"
      +      ],
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
    • addedOutput schema / properties / models / items / properties / quoted / properties / matchingHosts
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • changedOutput schema / properties / models / items / required
      Previous value: -[
      -  "provider",
      -  "model",
      -  "openness",
      -  "quoted",
      -  "hostCount",
      -  "cheapest",
      -  "dearest",
      -  "vendor",
      -  "vendorRowNotStandardRate",
      -  "spread",
      -  "noteworthySpread",
      -  "quantizations",
      -  "promotions"
      -]New value: +[
      +  "provider",
      +  "model",
      +  "openness",
      +  "quoted",
      +  "hostCount",
      +  "cheapest",
      +  "dearest",
      +  "vendor",
      +  "vendorRowNotStandardRate",
      +  "spread",
      +  "noteworthySpread",
      +  "quantizations",
      +  "promotions",
      +  "offers",
      +  "platforms",
      +  "bedrockRegions"
      +]
    • addedOutput schema / properties / provenance / properties / deprecationsVerifiedAt
      Added value: +{
      +  "type": "string"
      +}
  3. Added

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the read-only/idempotent annotations, the description discloses important caveats: the cheapest host may serve a quantized build or a promotional rate, missing platform/region data means 'not known' rather than 'not sold there,' and prices are nightly list prices dated by provenance.hostPricingAsOf. It also explains that hostList.available determines whether the full host list was read, which is behavior an agent cannot infer from the annotations alone.

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 purpose and primary use cases are front-loaded, and most sentences carry useful differentiation or caveats. It is dense and somewhat long for a single paragraph, but nearly every clause earns its place by clarifying scope, alternatives, or data limitations.

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 complex comparison tool with output schema, the description still covers return shape, caveats, provenance, and the meaning of missing host data. An agent has enough context to decide when to call it and how to interpret the results without needing to inspect 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 description coverage is 100%, so the model array, volumePreset, and useCasePreset are already well documented. The description adds only the '1-4 named models' constraint, which is already in the schema, and does not add further meaning about parameter formats or defaults.

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 opens with a precise framing, 'Who sells a model, and at what price,' then states exactly what the tool returns for 1-4 models: host count, cheapest, dearest, maker's rate, spread, promotions, and per-request/per-month costs. It explicitly distinguishes itself from the other tools, noting that 'every other tool here quotes ONE of them.'

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 gives explicit example questions ('where is Llama 3.3 70B cheapest', 'is the price you quoted the maker's own') and names the alternative for workload costing: 'To cost a workload at the quoted price with caching and batch, use estimate-llm-cost.' The boundary between this tool and the costing tool is clear.

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.