Skip to main content
Glama

Compare GPU prices

get_prices
Read-only

List every provider offer for one GPU model and node size: provider, instance type, region, GPU count, on-demand and spot USD price per whole node hour, links and last update. Prices reflect collected data, not a live capacity guarantee. Pages default to 20 rows, maximum 100; each page costs one data unit.

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": {
      "gpu": "<gpu>",
      "context": "<context>"
    },
    "name": "get_prices"
  }
}

Input Schema

NameRequiredDescriptionDefault
gpuYesGPU model name, case-insensitive, e.g. "H100", "RTX 4090". See list_gpus.
pageNoPagination. Omit for the first page.
countNoGPUs per node. Prices are for the whole node. Defaults to 1.
contextYesA few words on why you are calling this tool, for the server developer's analytics. Describe people and things by role, such as "a customer". Do not quote the user or include names, emails, or other personal details.
llm_modelNoThe model identifier you are running as, for example "claude-opus-4-8" or "gpt-5.2". Pass "unknown" if you are not certain. Recorded for the server developer's analytics.
conversation_idNoThe conversation_id this server returned earlier in this conversation, unchanged, including after later user messages. Omit it if you have none. Recorded for the server developer's analytics.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / context
      Added value: +{
      +  "description": "A few words on why you are calling this tool, for the server developer's analytics. Describe people and things by role, such as \"a customer\". Do not quote the user or include names, emails, or other personal details.",
      +  "type": "string"
      +}
    • addedInput schema / properties / conversation_id
      Added value: +{
      +  "description": "The conversation_id this server returned earlier in this conversation, unchanged, including after later user messages. Omit it if you have none. Recorded for the server developer's analytics.",
      +  "type": "string"
      +}
    • addedInput schema / properties / llm_model
      Added value: +{
      +  "description": "The model identifier you are running as, for example \"claude-opus-4-8\" or \"gpt-5.2\". Pass \"unknown\" if you are not certain. Recorded for the server developer's analytics.",
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "gpu"
      -]New value: +[
      +  "gpu",
      +  "context"
      +]
  2. Changed5 schema fields changed
    • addedInput schema / properties / count / description
      Added value: +"GPUs per node. Prices are for the whole node. Defaults to 1."
    • addedInput schema / properties / gpu / description
      Added value: +"GPU model name, case-insensitive, e.g. \"H100\", \"RTX 4090\". See list_gpus."
    • addedInput schema / properties / page / description
      Added value: +"Pagination. Omit for the first page."
    • addedInput schema / properties / page / properties / cursor / description
      Added value: +"nextCursor from the previous page. Reuse the same filters and limit."
    • addedInput schema / properties / page / properties / limit / description
      Added value: +"Rows per page, 1-100. Defaults to 20."
  3. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, but the description adds meaningful context beyond them: prices are collected data, not a live capacity guarantee (useful caveat adjacent to get_availability), plus pagination defaults (20, max 100) and the one-data-unit cost per page. It does not contradict any annotation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, front-loaded with the verb and returned fields, then the caveat and cost/pagination facts. No wasted wording.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a six-parameter, nested-pagination, read-only list tool with no output schema and full schema coverage, the description covers purpose, return contents, a data-freshness caveat, and pagination economics. A brief pointer on when to prefer get_market_snapshot or get_availability would make it complete.

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; the description adds value by clarifying that limit defaults to 20 with maximum 100, that prices are per whole node hour, and that node size is parameterized (the count parameter). It doesn't discuss the analytics-only context, llm_model, or conversation_id parameters, but those are self-documented in 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?

States a specific verb+resource (list every provider offer for one GPU model and node size) and enumerates the returned fields (provider, instance type, region, GPU count, on-demand/spot USD price per whole node hour). This distinguishes it clearly from siblings like get_price_history and get_market_snapshot.

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

Usage Guidelines3/5

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

Usage is implied: compare current offers across providers for a specific GPU. The schema points to list_gpus for model names, but the description never states when to use get_prices versus get_market_snapshot or get_price_history, nor any exclusions.

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.