find_available_gpus
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
| Name | Required | Description | Default |
|---|---|---|---|
| gpu | Yes | ||
| gpus | No | ||
| mode | No | full | |
| limit | No | ||
| region | No | ||
| vendor | No | ||
| needed_from | No | ||
| needed_until | No | ||
| on_demand_only | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| mode | No | ||
| as_of | No | ||
| error | No | ||
| unknown | No | ||
| sold_out | No | ||
| available | No | ||
| needed_from | No | ||
| needed_until | No | ||
| unknown_total | No | ||
| sold_out_total | No | ||
| available_total | No | ||
| available_no_expiry | No | ||
| referral_disclosure | No | One-line referral disclosure, present whenever the result names a provider; each provider-naming item then has tracked_url (tagged /go/ redirect). | |
| available_past_horizon | No | ||
| availability_collected_at | No | ||
| available_no_expiry_total | No | ||
| available_past_horizon_total | No | ||
| available_expires_before_horizon | No | ||
| available_expires_before_horizon_total | No |