Skip to main content
Glama

Model Ruler — AI Cost Calculators

Self-Host Breakeven Calculator

self-host-breakeven-calculator
Read-onlyIdempotent

Compare one continuously rented GPU with API inference using explicit GPU hourly and API token rates plus measured output throughput. Returns cost, breakeven and capacity checks. Supplied rates are scenario assumptions; unresolved stored GPU prices cannot produce a quote.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "monthly_tokens": 500000000,
      "utilization_pct": 60,
      "api_cost_per_1m_out": 10,
      "gpu_hourly_cost_usd": 2,
      "operational_overhead_pct": 40,
      "throughput_tokens_per_sec": 500
    },
    "name": "self-host-breakeven-calculator"
  }
}

Input Schema

NameRequiredDescriptionDefault
gpu_typeNoOptional scenario hardware label when supplying a rate.
gpu_providerNoOptional scenario label when supplying a rate; stored provider rows require their own source review.
monthly_tokensYesMonthly output token volume
utilization_pctNoExpected GPU utilization % (default 60)
api_cost_per_1m_outNoExplicit API output cost per 1M tokens; required with a supplied GPU rate.
gpu_hourly_cost_usdNoExplicit GPU cost in USD/hour. Requires API rate and measured throughput; bypasses unresolved stored GPU prices without treating this input as verified.
operational_overhead_pctNoOps overhead % on GPU cost (default 40; explicit 0 is honored)
throughput_tokens_per_secNoMeasured output tokens/second for one GPU on your workload; required with a supplied GPU rate. No model/GPU benchmark is inferred.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changed
    • changedInput schema / examples
      Previous value: -[
      -  {
      -    "monthly_tokens": 750000000
      -  }
      -]New value: +[
      +  {
      +    "api_cost_per_1m_out": 10,
      +    "gpu_hourly_cost_usd": 2,
      +    "monthly_tokens": 500000000,
      +    "operational_overhead_pct": 40,
      +    "throughput_tokens_per_sec": 500,
      +    "utilization_pct": 60
      +  }
      +]
    • changedInput schema / properties / api_cost_per_1m_out / description
      Previous value: -"Current API output cost per 1M tokens"New value: +"Explicit API output cost per 1M tokens; required with a supplied GPU rate."
    • addedInput schema / properties / gpu_hourly_cost_usd
      Added value: +{
      +  "description": "Explicit GPU cost in USD/hour. Requires API rate and measured throughput; bypasses unresolved stored GPU prices without treating this input as verified.",
      +  "minimum": 0,
      +  "type": "number"
      +}
    • changedInput schema / properties / gpu_provider / description
      Previous value: -"GPU provider (e.g. runpod, modal)"New value: +"Optional scenario label when supplying a rate; stored provider rows require their own source review."
    • changedInput schema / properties / gpu_type / description
      Previous value: -"GPU type (e.g. h100, a100-80gb)"New value: +"Optional scenario hardware label when supplying a rate."
    • changedInput schema / properties / operational_overhead_pct / description
      Previous value: -"Ops overhead % on GPU cost (default 40)"New value: +"Ops overhead % on GPU cost (default 40; explicit 0 is honored)"
    • addedInput schema / properties / operational_overhead_pct / maximum
      Added value: +200
    • addedInput schema / properties / throughput_tokens_per_sec
      Added value: +{
      +  "description": "Measured output tokens/second for one GPU on your workload; required with a supplied GPU rate. No model/GPU benchmark is inferred.",
      +  "exclusiveMinimum": 0,
      +  "type": "number"
      +}
  2. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, closed-world and non-destructive, so safety is covered. The description adds real provenance context: supplied rates are scenario assumptions rather than verified data, and unresolved stored GPU prices block quoting. It stops short of describing error conditions or validation failures.

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?

Three short sentences: what it does, what it returns, what its inputs mean. Zero filler and the core comparison is front-loaded.

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?

With no output schema, the description carries the return burden and does so ('cost, breakeven and capacity checks'). Inputs are fully documented in schema. Only minor gaps remain, such as units/currency of returned figures and behavior when inputs are 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 coverage is 100%, so the baseline is 3. The description does reinforce the coupling that a GPU rate requires an API rate plus measured throughput, but the schema already says this per-parameter, so the added meaning is marginal.

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 comparison: one continuously rented GPU vs API inference, producing breakeven. That verb+resource pair separates it from the surrounding family of cost calculators (agent-loop, eval, fine-tune ROI), though it never names an alternative to route against.

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?

Use conditions are implied by the framing ('compare... breakeven') and a constraint is stated ('unresolved stored GPU prices cannot produce a quote'), but there is no explicit when-to-use or when-not-to-use guidance relative to the sibling calculators.

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