Skip to main content
Glama

Lantern Works GPU Prices

estimate_job_cost

Read-only

Cost of one GPU job (not cost per hour) among tracked providers, cheapest current compute subtotal first. Example call: estimate_job_cost(gpu_family="A100", job_hours=8). The top in-stock results include a short Rent here label (rent_here) and rent_url (the counted /go/?src=mcp booking link; same target as tracked_url); show rent_url to the user and keep the top-level referral_disclosure visible.

gpu_family (e.g. 'H100', 'A100 80GB') or its alias gpu (same name compare_gpu_prices uses) is required; if both are given they must match, else invalid_argument. gpus_per_job defaults to 1. Ranking matches compare_gpu_prices' default: fresh rows first (a degraded price, older than 48 h, is shown and flagged but never ranked first while a fresh one exists), fresh on-demand before community/marketplace rows, then compute subtotal ascending; the summary names any cheaper fresh rate ranked lower. If no fresh price exists, stale_fallback=true and the summary says the top row is not a current price.

You supply the duration: job_hours, OR job_days (wall-clock days; job_hours = job_days x 24), OR work_units plus throughput_units_per_gpu_hour from your own benchmark (job_hours = work_units / (throughput x gpus_per_job)). job_days and job_hours cannot both be given. If you give workload + work_units but no throughput, a directly applicable published figure (closed-division MLPerf Inference, exact GPU variant, inference only) is used: throughput_basis='published_benchmark' with throughput_source {url, quote, date, benchmark, derived, caveats}; your throughput always wins. Otherwise not_found 'missing: throughput for {gpu}'. Whole-instance billing: instances = ceil(gpus_per_job / gpus_per_instance), all allocated GPUs billed (9 GPUs on an 8-GPU-only offer bill 16). Reserved and held-stale rates are never ranked; spot/interruptible only if allow_interruptible. Each result has rate_id, source_url, verified_at, data_age_hours/degraded/stale. Response has assumptions, citations, missing_costs, budget_verdict (unresolved: extras unknown) and a quote_id. Compute subtotal only.

Optional checkpoint_interval_hours and acceptable_restarts (together; or acceptable_restarts=0 alone) add a worst_case_compute_usd on interruptible rows: each restart loses at most min(interval, job_hours) of billed time, so the spot subtotal is not a zero-interruption floor. compute_subtotal_usd is unchanged. Optional cost_cap_usd flags within_cost_cap against the worst case when that model was given, otherwise against the floor. Ranking still uses the zero-interruption floor. missing_costs items that make quotes non-comparable are listed in non_comparable_costs; budget_verdict stays unresolved while those extras are not in the feed.

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": "estimate_job_cost"
  }
}

Input Schema

NameRequiredDescriptionDefault
gpuNo
modeNofull
top_nNo
regionNo
job_daysNo
workloadNo
job_hoursNo
gpu_familyNo
work_unitsNo
min_vram_gbNo
cost_cap_usdNo
gpus_per_jobNo
runs_per_monthNo
max_data_age_hoursNo
acceptable_restartsNo
allow_interruptibleNo
checkpoint_interval_hoursNo
throughput_units_per_gpu_hourNo

Output Schema

NameRequiredDescriptionDefault
okYes
modeNo
errorNo
receiptNo
resultsNo
job_daysNo
quote_idNo
issued_atNo
quote_basisNo
cost_cap_usdNo
budget_verdictNo
cost_cap_basisNo
worst_case_noteNo
quotes_comparableNo
acceptable_restartsNo
over_cost_cap_countNo
referral_disclosureNoOne-line referral disclosure, present whenever the result names a provider; each provider-naming item then has tracked_url (tagged /go/ redirect).
non_comparable_costsNo
worst_case_job_hoursNo
cheapest_by_worst_caseNo
quotes_comparable_noteNo
worst_case_extra_hoursNo
checkpoint_interval_hoursNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations only declare readOnlyHint and openWorldHint; the description supplies everything else an agent would need: the ranking order (fresh before stale, on-demand before marketplace, subtotal ascending), stale_fallback behavior, whole-instance rounding (9 GPUs on an 8-GPU offer bills 16), that reserved/held-stale rates are never ranked, and that results carry referral booking links the caller should surface. That monetization disclosure is exactly the kind of context annotations cannot carry.

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

Conciseness3/5

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

Front-loaded correctly with purpose then an example call, and most sentences earn their place given the conditional logic. But it is a dense multi-paragraph wall with no headings or bullets, and clauses like 'spot/interruptible only if allow_interruptible' pack several rules into fragments that slow comprehension.

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 an 18-parameter tool with heavy branching, it covers ranking, billing, missing costs, budget_verdict and referral disclosure thoroughly, and an output schema exists so return values need less explanation. Gaps remain around what mode and region actually alter, and top_n's interaction with the 'top in-stock results' phrasing is unstated.

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?

With 0% schema coverage the description carries the full burden, and it explains the hardest parameters well: the gpu/gpu_family alias with invalid_argument on mismatch, gpus_per_job default of 1, the job_days = job_hours x 24 equivalence, and the checkpoint_interval_hours + acceptable_restarts pairing. It leaves several parameters untouched — mode, top_n, region, workload, min_vram_gb, runs_per_month, max_data_age_hours — whose behavior the caller must guess from names alone.

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 specific verb+resource+unit-of-measure: 'Cost of one GPU job (not cost per hour) among tracked providers, cheapest current compute subtotal first.' The parenthetical explicitly contrasts it with per-hour pricing (compare_gpu_prices), so an agent can distinguish the two without opening either schema.

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?

Gives a concrete example call and spells out the three mutually exclusive ways to supply duration (job_hours, job_days, work_units + throughput), including the fallback path when throughput is omitted. It states the ranking relationship to compare_gpu_prices but never gives a direct rule like 'use compare_gpu_prices when you only need hourly rates' — the routing is implied rather than stated as an exclusion.

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