get_cluster_costs
Get an aggregated cost breakdown for Ocean clusters by namespace. Provide cluster ID and time range to analyze spending across namespaces, sorted by highest cost. Supports AWS and Azure.
Instructions
Get aggregated cost breakdown for an Ocean cluster (AWS or Azure).
Args: cluster_id: The Ocean cluster ID (e.g. o-abc12345) start_time: Start time in ISO 8601 format (e.g. 2026-03-01T00:00:00Z) end_time: End time in ISO 8601 format (e.g. 2026-03-20T00:00:00Z) group_by: Group costs by: namespace (default: namespace). Only 'namespace' is currently supported by the API. account_id: Optional account ID to query. Defaults to SPOTINST_ACCOUNT_ID env var. cloud: Cloud provider: aws or azure (default: aws) limit: Max namespace aggregations to return, sorted by cost descending (default: 50). Set limit=0 for all.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cluster_id | Yes | ||
| start_time | Yes | ||
| end_time | Yes | ||
| group_by | No | namespace | |
| account_id | No | ||
| cloud | No | aws | |
| limit | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |