Skip to main content
Glama

Lantern Works GPU Prices

find_available_gpus

Read-only

Who has N x GPU free right now among tracked providers, ranked by confirmed in-stock freshness. Example call: find_available_gpus(gpu="RTX 4090", gpus=1).

Reuses the live availability already on gpu-prices.json (no new collection). available is only rows whose in_stock is still True after the call-time stale guard (8h AVAIL_MAX_AGE_H, or a shorter Scout claim lifetime). sold_out is confirmed unexpired in_stock false. Everything else is unknown with a reason (stale, static_label, no_source, no_signal, quota, region, region_unresolved, held_stale, owner_hold). last_known_in_stock / last_known_at stay visible on lapsed claims (P64). Each row has stock_age_hours and stock_read_state (never_read, read, or read_expired) measured at call time from stock_read_at or the stock checked_at; never invented. availability_expires_claim names which claim availability_expires_at belongs to; last_known_expires_at is the older in-stock claim's own expiry when one exists beside a newer read. A crashed probe may add probe_error and probe_attempted_at (attempt time only; not a successful check). Unknown is not sold out. Vendor-labelled static page labels, no_source, no signal, quota/region failures, held rows, and the 7-day stock rate never count as in stock. gpus (default 1) is the existing min_gpus allocation rule, not a cluster free-count. stock_level is the vendor's own text when present; a free-GPU number is never invented. on_demand_only defaults to true and does not fall back to spot. limit 1-25 applies to available. Optional needed_until (job finish) and needed_from (job start) are ISO-8601 datetimes. When either is set, call-time available rows are also classified into available_past_horizon, available_expires_before_horizon, and available_no_expiry; available stays the call-time stale-guard list. Only available_past_horizon is evidence through that horizon. A missing availability_expires_at is not invented and is not evidence past the horizon. Invalid dates return invalid_argument. All timestamps are UTC with a Z. Same model matching as compare_gpu_prices. The top in-stock available rows 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.

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>"
    },
    "name": "find_available_gpus"
  }
}

Input Schema

NameRequiredDescriptionDefault
gpuYes
gpusNo
modeNofull
limitNo
regionNo
vendorNo
needed_fromNo
needed_untilNo
on_demand_onlyNo

Output Schema

NameRequiredDescriptionDefault
okYes
modeNo
as_ofNo
errorNo
unknownNo
sold_outNo
availableNo
needed_fromNo
needed_untilNo
unknown_totalNo
sold_out_totalNo
available_totalNo
available_no_expiryNo
referral_disclosureNoOne-line referral disclosure, present whenever the result names a provider; each provider-naming item then has tracked_url (tagged /go/ redirect).
available_past_horizonNo
availability_collected_atNo
available_no_expiry_totalNo
available_past_horizon_totalNo
available_expires_before_horizonNo
available_expires_before_horizon_totalNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior5/5

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

Beyond the readOnlyHint and openWorldHint annotations, the description discloses extensive behavior: the 8h stale guard, the available/sold_out/unknown classification, unknown reasons such as stale, no_source, quota, and region failures, the treatment of last_known fields, probe_error semantics, horizon classification with needed_from/needed_until, and the rule that unknown is not sold out. It also explains that invalid dates return invalid_argument and that timestamps are UTC with a Z.

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?

The main purpose and example call are front-loaded, but the rest is a dense, run-on block mixing return-field semantics, edge cases, and parameter rules without clear organization. Much of the detail is valuable for a complex tool, but the wall-of-text structure makes it harder to scan than necessary.

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 nine-parameter, read-only, open-world tool with an output schema, the description is largely complete: it explains availability classification, expiry logic, horizon behavior, stale handling, and referral fields. The main incompleteness is the unexplained mode, region, and vendor parameters, but overall the agent has enough context to call the tool correctly.

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 0%, so the description carries the burden for all nine parameters. It adds clear meaning for gpus (min_gpus allocation rule, not a cluster free-count), limit (applies to available, 1-25), on_demand_only (defaults true and does not fall back to spot), needed_from/needed_until (ISO-8601 and horizon classification), and gpu (example). However, mode, region, and vendor are not explained at all, leaving a meaningful gap.

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?

The opening sentence states a specific verb and resource: find who has N GPUs free right now among tracked providers, ranked by confirmed in-stock freshness. This clearly separates the tool from price-oriented siblings like compare_gpu_prices, though it never explicitly says when to choose this tool over those alternatives.

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?

The description provides an example call and implies usage through the 'right now' availability framing, but it does not give explicit when-to-use or when-not-to-use guidance relative to compare_gpu_prices or other siblings. The agent must infer that this is the availability query rather than a price comparison.

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