Estimate a deploy's cost
estimate_costPRE-DEPLOY COST + CAPS ESTIMATE (the try-before-you-buy surface — charges nothing, deploys nothing): validates the spec exactly as a deploy would and reports what a deploy WOULD charge now (the deploy fee), your balance + tier, the per-app instance count + per-instance compute bound that WILL apply (ephemeral tier: clamped to 1 instance and 256 MiB / 50% CPU per instance, enforced as a cgroup bound; durable tier: your spec's compute, or the platform default when undeclared), your tier's caps (source size, session TTL, subsidized credit), and honest notes on what is priced (the deploy fee; per-request serving where enabled) vs projected: the occupancy / stream-group / storage / request rates are the FLEET-DERIVED pricing model (each resource priced from its measured provider-cost driver; anchor: 1,000,000 micros = $1.00), returned as rates, with per-app occupancy_micros_per_hour + projected_monthly_micros projections and, in notes, which prices apply at this read and what each service's data costs by axis (occupancy is metered hourly against your balance: reserved compute and data; an exhausted balance suspends your apps; service_costs reads the same figures for what is deployed). Call it BEFORE deploy_source / deploy_ref to see your footprint — and how 'claim' lifts the ephemeral caps (credit beyond the subsidy is bought through 'billing_portal'). Returns {Estimate:{tier,balance_micros,deploy_fee_micros,spec_valid,violations,apps,caps,notes,rates}}.
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": {
"spec": "<spec>"
},
"name": "estimate_cost"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spec | Yes | ||
| token | No | fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused | |
| instances | No |