Skip to main content
Glama

OptimToken: AI and Compute Economics

Compare Cloud Compute Pricing

compare-compute-pricing
Read-onlyIdempotent

Compare cloud compute instance pricing across AWS, Azure, GCP, DigitalOcean, OCI, OVH, and Alibaba. Filter by region, provider, vCPUs, memory, category, processor, or use case. Use this for 'the cheapest 8 vCPU / 32 GiB instance in Europe', and for what a commitment saves: each row gives the Linux list price in USD per hour on demand, on spot, and under a 1-year and 3-year commitment (savings plan, Google CUD, reservation) as an effective hourly rate, each with its saving against that row's on-demand rate. A row with no commitment rate says so. Not every price column is live: provenance.priceTypes says which of each provider's price columns come from a live API, which are static constants, and which are unavailable, and provenance.staticPriceColumns lists the non-live ones outright; a savings-plan or reserved rate that appears there is a static estimate, not a live quote. Prices are returned as the catalogue serves them and dated by provenance.

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-compute-pricing"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax instances to return (default: 20)
regionNoPricing region: us-east, us-west, europe, asia-pacific. Default: us-east
sortByNoSort by: price, vcpus, memory, pricePerVCPU. Default: price
useCaseNoUse case. Must be one of these exactly (case-insensitive): Web App, Database, HPC, ML & AI, Dev/Test, Big Data. Any other string returns zero matches rather than an error.
categoryNoInstance category. Must be one of these exactly (case-insensitive): General Purpose, Compute Optimized, Memory Optimized, Storage Optimized, GPU / Accelerated, Burstable. Any other string returns zero matches rather than an error.
maxVCPUsNoMaximum number of vCPUs
minVCPUsNoMinimum number of vCPUs
providerNoCloud provider. Must be one of these exactly (case-insensitive): AWS, Azure, GCP, DigitalOcean, OCI, OVH, Alibaba. Any other string returns zero matches rather than an error.
maxMemoryNoMaximum memory in GiB
minMemoryNoMinimum memory in GiB
processorNoProcessor. Matched by exact equality (case-insensitive), so a partial value like 'H100' returns nothing. Known values: Intel, AMD, Graviton, Trainium, Inferentia, Ampere, Axion, ARM, NVIDIA T4, NVIDIA V100, NVIDIA A100, NVIDIA H100, NVIDIA L4, NVIDIA A10G, NVIDIA Other. 'NVIDIA Other' is every NVIDIA GPU without a label of its own (L40S, H200, B200, RTX and older parts).

Output Schema

NameRequiredDescriptionDefault
errorNo
sourceYes
instancesYes
provenanceNo
catalogSizeYes
matchingCountYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / additionalProperties
      Added value: +false
  2. Changed2 schema fields changed
    • addedOutput schema / properties / provenance / properties / degradedProviders
      Added value: +{
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "provider": {
      +        "type": "string"
      +      },
      +      "rows": {
      +        "type": "number"
      +      }
      +    },
      +    "required": [
      +      "provider",
      +      "rows"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / provenance / properties / liveProviders
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "expected": {
      +      "type": "number"
      +    },
      +    "live": {
      +      "type": "number"
      +    }
      +  },
      +  "required": [
      +    "live",
      +    "expected"
      +  ],
      +  "type": "object"
      +}
  3. Changed1 schema field changed
    • changedInput schema / properties / processor / description
      Previous value: -"Processor. Matched by exact equality (case-insensitive), so a partial value like 'H100' returns nothing. Known values: Intel, AMD, Graviton, Ampere, NVIDIA A100, NVIDIA H100, NVIDIA L4, NVIDIA T4, NVIDIA V100, NVIDIA Other."New value: +"Processor. Matched by exact equality (case-insensitive), so a partial value like 'H100' returns nothing. Known values: Intel, AMD, Graviton, Trainium, Inferentia, Ampere, Axion, ARM, NVIDIA T4, NVIDIA V100, NVIDIA A100, NVIDIA H100, NVIDIA L4, NVIDIA A10G, NVIDIA Other. 'NVIDIA Other' is every NVIDIA GPU without a label of its own (L40S, H200, B200, RTX and older parts)."
  4. Changed7 schema fields changed
    • addedOutput schema / properties / instances / items / properties / reserved1yrSavingsPct
      Added value: +{
      +  "type": [
      +    "number",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / instances / items / properties / reserved3yrSavingsPct
      Added value: +{
      +  "type": [
      +    "number",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / instances / items / properties / savingsPlan1yrSavingsPct
      Added value: +{
      +  "type": [
      +    "number",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / instances / items / properties / savingsPlan3yrSavingsPct
      Added value: +{
      +  "type": [
      +    "number",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / instances / items / properties / spotSavingsPct
      Added value: +{
      +  "type": [
      +    "number",
      +    "null"
      +  ]
      +}
    • changedOutput schema / properties / instances / items / required
      Previous value: -[
      -  "provider",
      -  "instanceType",
      -  "os",
      -  "vCPUs",
      -  "memory",
      -  "processor",
      -  "category",
      -  "useCases",
      -  "onDemandHourly",
      -  "onDemandMonthly",
      -  "spot",
      -  "savingsPlan1yr",
      -  "savingsPlan3yr",
      -  "reserved1yr",
      -  "reserved3yr"
      -]New value: +[
      +  "provider",
      +  "instanceType",
      +  "os",
      +  "vCPUs",
      +  "memory",
      +  "processor",
      +  "category",
      +  "useCases",
      +  "onDemandHourly",
      +  "onDemandMonthly",
      +  "spot",
      +  "savingsPlan1yr",
      +  "savingsPlan3yr",
      +  "reserved1yr",
      +  "reserved3yr",
      +  "spotSavingsPct",
      +  "savingsPlan1yrSavingsPct",
      +  "savingsPlan3yrSavingsPct",
      +  "reserved1yrSavingsPct",
      +  "reserved3yrSavingsPct"
      +]
    • addedOutput schema / properties / provenance / properties / awsSavingsPlansAsOf
      Added value: +{
      +  "type": "string"
      +}
  5. Changed14 schema fields changed
    • removedOutput schema / properties / instances / items / properties / onDemandHourly / anyOf
      Removed value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / instances / items / properties / onDemandHourly / type
      Added value: +[
      +  "number",
      +  "null"
      +]
    • removedOutput schema / properties / instances / items / properties / onDemandMonthly / anyOf
      Removed value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / instances / items / properties / onDemandMonthly / type
      Added value: +[
      +  "number",
      +  "null"
      +]
    • removedOutput schema / properties / instances / items / properties / reserved1yr / anyOf
      Removed value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / instances / items / properties / reserved1yr / type
      Added value: +[
      +  "number",
      +  "null"
      +]
    • removedOutput schema / properties / instances / items / properties / reserved3yr / anyOf
      Removed value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / instances / items / properties / reserved3yr / type
      Added value: +[
      +  "number",
      +  "null"
      +]
    • removedOutput schema / properties / instances / items / properties / savingsPlan1yr / anyOf
      Removed value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / instances / items / properties / savingsPlan1yr / type
      Added value: +[
      +  "number",
      +  "null"
      +]
    • removedOutput schema / properties / instances / items / properties / savingsPlan3yr / anyOf
      Removed value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / instances / items / properties / savingsPlan3yr / type
      Added value: +[
      +  "number",
      +  "null"
      +]
    • removedOutput schema / properties / instances / items / properties / spot / anyOf
      Removed value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / instances / items / properties / spot / type
      Added value: +[
      +  "number",
      +  "null"
      +]
  6. Changed4 schema fields changed
    • changedInput schema / properties / category / description
      Previous value: -"Instance category: General Purpose, Compute Optimized, Memory Optimized, Storage Optimized, GPU / Accelerated, Burstable"New value: +"Instance category. Must be one of these exactly (case-insensitive): General Purpose, Compute Optimized, Memory Optimized, Storage Optimized, GPU / Accelerated, Burstable. Any other string returns zero matches rather than an error."
    • changedInput schema / properties / processor / description
      Previous value: -"Processor filter: Intel, AMD, Graviton, Ampere, NVIDIA A100, NVIDIA H100, etc."New value: +"Processor. Matched by exact equality (case-insensitive), so a partial value like 'H100' returns nothing. Known values: Intel, AMD, Graviton, Ampere, NVIDIA A100, NVIDIA H100, NVIDIA L4, NVIDIA T4, NVIDIA V100, NVIDIA Other."
    • changedInput schema / properties / provider / description
      Previous value: -"Cloud provider: AWS, Azure, GCP, DigitalOcean, OCI, OVH, Alibaba"New value: +"Cloud provider. Must be one of these exactly (case-insensitive): AWS, Azure, GCP, DigitalOcean, OCI, OVH, Alibaba. Any other string returns zero matches rather than an error."
    • changedInput schema / properties / useCase / description
      Previous value: -"Use case filter: Web App, Database, HPC, ML & AI, Dev/Test, Big Data"New value: +"Use case. Must be one of these exactly (case-insensitive): Web App, Database, HPC, ML & AI, Dev/Test, Big Data. Any other string returns zero matches rather than an error."
  7. Changed5 schema fields changed
    • addedInput schema / properties / region
      Added value: +{
      +  "description": "Pricing region: us-east, us-west, europe, asia-pacific. Default: us-east",
      +  "enum": [
      +    "us-east",
      +    "us-west",
      +    "europe",
      +    "asia-pacific"
      +  ],
      +  "type": "string"
      +}
    • 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"
      +    },
      +    "catalogueIsSubset": {
      +      "type": "boolean"
      +    },
      +    "dataAsOf": {
      +      "type": "string"
      +    },
      +    "fallbackReason": {
      +      "type": "string"
      +    },
      +    "label": {
      +      "type": "string"
      +    },
      +    "notice": {
      +      "type": "string"
      +    },
      +    "priceTypes": {
      +      "additionalProperties": {
      +        "additionalProperties": {
      +          "type": "string"
      +        },
      +        "propertyNames": {
      +          "type": "string"
      +        },
      +        "type": "object"
      +      },
      +      "propertyNames": {
      +        "type": "string"
      +      },
      +      "type": "object"
      +    },
      +    "region": {
      +      "type": "string"
      +    },
      +    "servedFromCacheAgeMs": {
      +      "type": "number"
      +    },
      +    "source": {
      +      "type": "string"
      +    },
      +    "sourceRegions": {
      +      "additionalProperties": {
      +        "type": "string"
      +      },
      +      "propertyNames": {
      +        "type": "string"
      +      },
      +      "type": "object"
      +    },
      +    "sources": {
      +      "additionalProperties": {
      +        "type": "string"
      +      },
      +      "propertyNames": {
      +        "type": "string"
      +      },
      +      "type": "object"
      +    },
      +    "staticPriceColumns": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "tier": {
      +      "type": "number"
      +    },
      +    "unappliedFilters": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "unavailablePriceColumns": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "upstreamErrors": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "upstreamSchemaVersion": {
      +      "type": "string"
      +    },
      +    "upstreamTimestamp": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "tier",
      +    "source",
      +    "label",
      +    "region",
      +    "staticPriceColumns",
      +    "unavailablePriceColumns"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / properties / source
      Added value: +{
      +  "type": "string"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "instances",
      -  "matchingCount",
      -  "catalogSize"
      -]New value: +[
      +  "instances",
      +  "matchingCount",
      +  "catalogSize",
      +  "source"
      +]
  8. Changed5 schema fields changed
    • removedInput schema / properties / region
      Removed value: -{
      -  "description": "Pricing region: us-east, us-west, europe, asia-pacific. Default: us-east",
      -  "enum": [
      -    "us-east",
      -    "us-west",
      -    "europe",
      -    "asia-pacific"
      -  ],
      -  "type": "string"
      -}
    • 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"
      -    },
      -    "catalogueIsSubset": {
      -      "type": "boolean"
      -    },
      -    "dataAsOf": {
      -      "type": "string"
      -    },
      -    "fallbackReason": {
      -      "type": "string"
      -    },
      -    "label": {
      -      "type": "string"
      -    },
      -    "notice": {
      -      "type": "string"
      -    },
      -    "priceTypes": {
      -      "additionalProperties": {
      -        "additionalProperties": {
      -          "type": "string"
      -        },
      -        "propertyNames": {
      -          "type": "string"
      -        },
      -        "type": "object"
      -      },
      -      "propertyNames": {
      -        "type": "string"
      -      },
      -      "type": "object"
      -    },
      -    "region": {
      -      "type": "string"
      -    },
      -    "servedFromCacheAgeMs": {
      -      "type": "number"
      -    },
      -    "source": {
      -      "type": "string"
      -    },
      -    "sourceRegions": {
      -      "additionalProperties": {
      -        "type": "string"
      -      },
      -      "propertyNames": {
      -        "type": "string"
      -      },
      -      "type": "object"
      -    },
      -    "sources": {
      -      "additionalProperties": {
      -        "type": "string"
      -      },
      -      "propertyNames": {
      -        "type": "string"
      -      },
      -      "type": "object"
      -    },
      -    "staticPriceColumns": {
      -      "items": {
      -        "type": "string"
      -      },
      -      "type": "array"
      -    },
      -    "tier": {
      -      "type": "number"
      -    },
      -    "unappliedFilters": {
      -      "items": {
      -        "type": "string"
      -      },
      -      "type": "array"
      -    },
      -    "unavailablePriceColumns": {
      -      "items": {
      -        "type": "string"
      -      },
      -      "type": "array"
      -    },
      -    "upstreamErrors": {
      -      "items": {
      -        "type": "string"
      -      },
      -      "type": "array"
      -    },
      -    "upstreamSchemaVersion": {
      -      "type": "string"
      -    },
      -    "upstreamTimestamp": {
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "tier",
      -    "source",
      -    "label",
      -    "region",
      -    "staticPriceColumns",
      -    "unavailablePriceColumns"
      -  ],
      -  "type": "object"
      -}
    • removedOutput schema / properties / source
      Removed value: -{
      -  "type": "string"
      -}
    • changedOutput schema / required
      Previous value: -[
      -  "instances",
      -  "matchingCount",
      -  "catalogSize",
      -  "source"
      -]New value: +[
      +  "instances",
      +  "matchingCount",
      +  "catalogSize"
      +]
  9. Changed5 schema fields changed
    • addedInput schema / properties / region
      Added value: +{
      +  "description": "Pricing region: us-east, us-west, europe, asia-pacific. Default: us-east",
      +  "enum": [
      +    "us-east",
      +    "us-west",
      +    "europe",
      +    "asia-pacific"
      +  ],
      +  "type": "string"
      +}
    • 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"
      +    },
      +    "catalogueIsSubset": {
      +      "type": "boolean"
      +    },
      +    "dataAsOf": {
      +      "type": "string"
      +    },
      +    "fallbackReason": {
      +      "type": "string"
      +    },
      +    "label": {
      +      "type": "string"
      +    },
      +    "notice": {
      +      "type": "string"
      +    },
      +    "priceTypes": {
      +      "additionalProperties": {
      +        "additionalProperties": {
      +          "type": "string"
      +        },
      +        "propertyNames": {
      +          "type": "string"
      +        },
      +        "type": "object"
      +      },
      +      "propertyNames": {
      +        "type": "string"
      +      },
      +      "type": "object"
      +    },
      +    "region": {
      +      "type": "string"
      +    },
      +    "servedFromCacheAgeMs": {
      +      "type": "number"
      +    },
      +    "source": {
      +      "type": "string"
      +    },
      +    "sourceRegions": {
      +      "additionalProperties": {
      +        "type": "string"
      +      },
      +      "propertyNames": {
      +        "type": "string"
      +      },
      +      "type": "object"
      +    },
      +    "sources": {
      +      "additionalProperties": {
      +        "type": "string"
      +      },
      +      "propertyNames": {
      +        "type": "string"
      +      },
      +      "type": "object"
      +    },
      +    "staticPriceColumns": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "tier": {
      +      "type": "number"
      +    },
      +    "unappliedFilters": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "unavailablePriceColumns": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "upstreamErrors": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "upstreamSchemaVersion": {
      +      "type": "string"
      +    },
      +    "upstreamTimestamp": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "tier",
      +    "source",
      +    "label",
      +    "region",
      +    "staticPriceColumns",
      +    "unavailablePriceColumns"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / properties / source
      Added value: +{
      +  "type": "string"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "instances",
      -  "matchingCount",
      -  "catalogSize"
      -]New value: +[
      +  "instances",
      +  "matchingCount",
      +  "catalogSize",
      +  "source"
      +]
  10. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Annotations already declare this a read-only, idempotent, open-world read, and the description still goes well beyond them: it explains that each row carries on-demand, spot, 1-year and 3-year effective hourly rates plus the savings against on-demand, that a missing commitment rate is stated explicitly, and that `provenance.priceTypes`/`provenance.staticPriceColumns` distinguish live API prices from static estimates. The warning that a static savings-plan rate is 'not a live quote' is exactly the kind of caveat an agent would otherwise misuse.

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?

Purpose, filter axes, and the commitment/provenance semantics are front-loaded and every sentence carries information an agent needs. It is dense and slightly repetitive in the provenance paragraph (priceTypes and staticPriceColumns both explained, dates mentioned again at the end), which is a minor cost on an otherwise well-structured definition.

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?

With an output schema present, the description only needs to orient the caller — and it does more, describing row shape, savings computation, absent-rate handling, and provenance fields. For an 11-parameter, zero-required, multi-provider read tool, nothing essential 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.

Parameters3/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 every filter including the exact-match and zero-matches-on-bad-input behavior. The description restates the filter axes (region, provider, vCPUs, memory, category, processor, use case) and implies the free-text dimensions but adds no syntax or format detail the schema lacks, so baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Compare cloud compute instance pricing') and enumerates the seven providers plus the filterable dimensions, so the agent knows exactly what comes back. It never names a sibling or explains why an agent would pick this over compare-model-hosts, but the LLM-cost siblings are a different domain, so confusion risk is low.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

'Use this for "the cheapest 8 vCPU / 32 GiB instance in Europe"' gives a concrete triggering query, and the commitment-rate clause adds a second reason to call it. It stops short of explicit exclusions or naming an alternative tool for adjacent questions (e.g. LLM inference pricing), which keeps it below a 5.

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.