Get cluster cost
get_cluster_costGet what the current cluster costs now, as a list-price estimate from the cost metering: the monthly and hourly cost, the month to date and the projected month end, its parts (compute, storage, network and load balancers, control plane, and infrastructure such as bastions and standalone VMs), pricing coverage and confidence, and the costliest namespaces. unrequested_monthly_display is the compute no pod requests (allocatable capacity, control planes and autoscaled groups left out: requests, never measured usage, so do not call it idle or unused); unallocated_monthly_display is the part of the estimate no namespace's allocation carries (unrequested capacity, storage no namespace claims, network, control plane and infrastructure). When unpriced_volume_count is above zero, storage_monthly_display covers the priced volumes only and says how many are unpriced: storage costs at least that, and what the unpriced ones cost is unknown, not zero. A figure or count the snapshot did not record is null: unknown, not zero. Money is in the organisation's display currency and timestamps are UTC. A cluster with no current bill answers has_data false and no figure for now: one the metering has not priced within the last 26 hours (stopped, offline, or not priced yet), one whose node inventory went stale, or one whose newest snapshot priced nothing because no price covers what it bills. Its cost now is unknown, not zero, readiness.state says why, and stale_snapshot_at says when it was last priced past the window. When it was metered before, metered_month_to_date_display is what it was metered for this month in the hours the metering could price it (spend already measured, so a floor for the month, not its cost now), null when no hour of this month was metered, which is unknown, not zero. Estimates are derived from cloud list prices, not the customer's actual bill.
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": {
"cluster_id": "<cluster_id>"
},
"name": "get_cluster_cost"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cluster_id | Yes | Ankra cluster id (UUID) the call targets. Discover ids with list_clusters. |