Skip to main content
Glama

GPUs needed to host a model

gpus_needed_for_model
Read-onlyIdempotent

How many GPUs it takes to self-host an open-weight LLM at a given quantization, and the cheapest rental setups for it right now. quant is one of: fp16, bf16, fp8, mxfp8, int8, q6, fp6, q5, q4km, nvfp4, awq, mxfp4, gptq, int4, q3, q2, iq2, iq1. Estimates memory only (weights + 20% runtime overhead), not throughput. limit: 1-10.

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": {
      "model": "<model>"
    },
    "name": "gpus_needed_for_model"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum rows to return, 1-10; values outside the range are clamped.
modelYesLLM name or slug (e.g. "gpt-oss-120b", "deepseek-v3"). Use find_model if unsure of the name.
quantNoWeight precision / quantization format (case-insensitive). fp16/bf16 is full size, fp8 and int8 half that, the 4-bit formats about a quarter.fp8

Output Schema

NameRequiredDescriptionDefault
noteYesHow to read these numbers.
modelYesResolved model slug.
quantYesQuantization the estimate is for.
source_urlYesMatching cheap-gpus.com page for this result.
attributionYesData source credit.
vram_needed_gbYesEstimated memory needed: weights plus 20% runtime overhead, GB.
cheapest_setupsYesPriced single-server setups first, cheapest first.
param_count_billionsYesTotal parameters, billions.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed10 schema fields changed
    • addedInput schema / properties / limit / description
      Added value: +"Maximum rows to return, 1-10; values outside the range are clamped."
    • addedInput schema / properties / model / description
      Added value: +"LLM name or slug (e.g. \"gpt-oss-120b\", \"deepseek-v3\"). Use find_model if unsure of the name."
    • addedInput schema / properties / model / examples
      Added value: +[
      +  "gpt-oss-120b",
      +  "deepseek-v3"
      +]
    • addedInput schema / properties / quant / description
      Added value: +"Weight precision / quantization format (case-insensitive). fp16/bf16 is full size, fp8 and int8 half that, the 4-bit formats about a quarter."
    • addedInput schema / properties / quant / enum
      Added value: +[
      +  "fp16",
      +  "bf16",
      +  "fp8",
      +  "mxfp8",
      +  "int8",
      +  "q6",
      +  "fp6",
      +  "q5",
      +  "q4km",
      +  "nvfp4",
      +  "awq",
      +  "mxfp4",
      +  "gptq",
      +  "int4",
      +  "q3",
      +  "q2",
      +  "iq2",
      +  "iq1"
      +]
    • addedOutput schema / $defs
      Added value: +{
      +  "HostingSetup": {
      +    "properties": {
      +      "cheapest_usd_per_hour_total": {
      +        "anyOf": [
      +          {
      +            "type": "number"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "gpu_count × cheapest current on-demand price per GPU, USD per hour; null if unpriced.",
      +        "title": "Cheapest Usd Per Hour Total"
      +      },
      +      "fits_one_server": {
      +        "description": "True if gpu_count is 8 or fewer.",
      +        "title": "Fits One Server",
      +        "type": "boolean"
      +      },
      +      "gpu_count": {
      +        "description": "GPUs of this family needed to hold the model in memory.",
      +        "title": "Gpu Count",
      +        "type": "integer"
      +      },
      +      "gpu_family": {
      +        "description": "GPU family for this setup.",
      +        "title": "Gpu Family",
      +        "type": "string"
      +      },
      +      "source_url": {
      +        "description": "Matching cheap-gpus.com page for this result.",
      +        "title": "Source Url",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "gpu_family",
      +      "gpu_count",
      +      "fits_one_server",
      +      "cheapest_usd_per_hour_total",
      +      "source_url"
      +    ],
      +    "title": "HostingSetup",
      +    "type": "object"
      +  }
      +}
    • removedOutput schema / additionalProperties
      Removed value: -true
    • addedOutput schema / properties
      Added value: +{
      +  "attribution": {
      +    "description": "Data source credit.",
      +    "title": "Attribution",
      +    "type": "string"
      +  },
      +  "cheapest_setups": {
      +    "description": "Priced single-server setups first, cheapest first.",
      +    "items": {
      +      "$ref": "#/$defs/HostingSetup"
      +    },
      +    "title": "Cheapest Setups",
      +    "type": "array"
      +  },
      +  "model": {
      +    "description": "Resolved model slug.",
      +    "title": "Model",
      +    "type": "string"
      +  },
      +  "note": {
      +    "description": "How to read these numbers.",
      +    "title": "Note",
      +    "type": "string"
      +  },
      +  "param_count_billions": {
      +    "description": "Total parameters, billions.",
      +    "title": "Param Count Billions",
      +    "type": "number"
      +  },
      +  "quant": {
      +    "description": "Quantization the estimate is for.",
      +    "title": "Quant",
      +    "type": "string"
      +  },
      +  "source_url": {
      +    "description": "Matching cheap-gpus.com page for this result.",
      +    "title": "Source Url",
      +    "type": "string"
      +  },
      +  "vram_needed_gb": {
      +    "description": "Estimated memory needed: weights plus 20% runtime overhead, GB.",
      +    "title": "Vram Needed Gb",
      +    "type": "number"
      +  }
      +}
    • addedOutput schema / required
      Added value: +[
      +  "model",
      +  "param_count_billions",
      +  "quant",
      +  "vram_needed_gb",
      +  "cheapest_setups",
      +  "note",
      +  "source_url",
      +  "attribution"
      +]
    • changedOutput schema / title
      Previous value: -"gpus_needed_for_modelDictOutput"New value: +"HostingEstimate"
  2. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare this a safe, idempotent read, so the description's value is in the modeling caveats it adds: memory is estimated as weights plus 20% runtime overhead, throughput is explicitly excluded, and limit values are clamped. That tells the agent how to interpret and caveat the numbers, which the annotations cannot convey.

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 core capability leads the sentence, followed by the quant axis and then the important scope caveat. Slightly wasteful: re-listing all 18 quantization values duplicates the schema enum and pushes the most decision-relevant caveat ('estimates memory only, not throughput') to the end.

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 needn't explain return values, and annotations cover safety. What remains — what the numbers include (weights + 20% overhead), what they exclude (throughput), supported quantizations, and row-limit behavior — is all stated, so an agent has enough to call and interpret it.

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%, and the schema already enumerates quant, defines its default, and explains clamping for limit. The description restates the quant enum verbatim and repeats 'limit: 1-10', so it adds little meaning beyond the structured fields; baseline 3 applies.

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 names a specific resource and computation: GPU count required to self-host an open-weight LLM at a given quantization, plus cheapest matching rental setups. That framing is distinct from the pricing and lookup siblings (cheapest_gpu, find_model, gpu_price_forecast), so an agent can tell what question this tool answers 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 Guidelines3/5

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

Usage is only implied — the tool is clearly for capacity-planning questions, but there is no explicit when-to-use or when-not guidance and no named alternative (e.g. cheapest_gpu or cheapest_model_route) for related questions. The only routing hint, 'Use find_model if unsure of the name', lives in the schema rather than the description.

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.

Resources