Skip to main content
Glama
cloudprice-mcp

cloudprice-mcp

compare_llm_vs_selfhost

Compare monthly LLM API token costs with self-hosting GPU servers on AWS, Azure, GCP and OCI, and find the break-even volume from measured throughput.

Instructions

Pay per token or rent GPUs and serve the model yourself? Prices a monthly token volume on an LLM API, then the GPU servers needed to serve the same volume on AWS, Azure, GCP and OCI, and the break-even volume. Needs the measured generation throughput of one server (output tokens/second, e.g. from a vLLM benchmark): it decides the answer and is never guessed. Use for: 'should we self-host Llama 3.3 70B instead of paying Together', 'at what volume do H100s beat the DeepSeek API', 'cheapest cloud to serve our open model'. Self-host cost is GPU rental only; see honest_gaps.

Input Schema

NameRequiredDescriptionDefault
modelYesAPI model ID to price, as in the LLM catalogue, e.g. 'deepseek/deepseek-chat', 'together_ai/meta-llama/Llama-3.3-70B-Instruct-Turbo'.
targetsNo
gpu_typeYesGPU to self-host on: T4, L4, A10, A10G, L40S, V100, A100, H100.
gpu_countNoGPUs per server.
utilizationNoShare of each hour the server is busy. Real traffic is bursty; 0.4-0.7 is typical.
api_providerNoHost for the API price. Default: first-party.
prefill_speedupNoHow much faster input (prefill) is processed than output is generated.
monthly_input_tokensNo
monthly_output_tokensNo
output_tokens_per_secondYesMeasured aggregate generation throughput of ONE server of this size for this model, across concurrent requests.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.29.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does substantial work: it states the throughput input 'decides the answer and is never guessed', and it scopes what the self-host number includes by declaring 'Self-host cost is GPU rental only; see honest_gaps' — a real limitation an agent would otherwise misreport. It omits error behavior, data freshness, and what the response contains.

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?

Front-loads the core question in one sentence, then the method, then the required input caveat, then examples. Slightly dense with parenthetical asides, but every sentence contributes.

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

Completeness3/5

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

For a 10-parameter, no-annotation, no-output-schema tool, the description explains the method and its main limitation but leaves the agent guessing about optional parameter interactions, defaults (targets, api_provider), and the shape of the returned comparison. Adequate to invoke, not complete enough to invoke confidently on the optional surface.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 70%, so most parameters are already documented. The description adds genuine meaning to output_tokens_per_second (it 'decides the answer and is never guessed') and implicitly to targets (the four clouds), but says nothing about targets semantics, api_provider default behavior, or how monthly_input_tokens versus monthly_output_tokens drive the comparison.

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?

Opens with a concrete verb and resource — prices an LLM API token volume against self-hosted GPU servers across AWS/Azure/GCP/OCI — and explicitly names the third output, break-even volume. That is distinguishable from siblings like compare_token_pricing and compare_gpu_workload, which do not combine API spend with self-host serve capacity.

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?

Three quoted example questions ('should we self-host Llama 3.3 70B instead of paying Together', 'at what volume do H100s beat the DeepSeek API') give clear when-to-use context. It does not name an explicit alternative tool to use instead when the question is only about API pricing or only about GPU pricing, so it stops short of full routing guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.