Get object cost
get_object_costRead what one object of the organisation costs - a cluster, a namespace, a stack, an application, a cloud credential or a project - the same projection GET /org/cloud-cost/objects/{kind}/... serves. kind picks the object. cluster, namespace (give namespace) and stack (give stack_name) read one cluster: the selected one, or cluster_id when no cluster is selected (a cluster_id that is not the selected cluster is refused). application (give application_id), credential (give credential_id) and project (give project_id) read every cluster behind the object that the caller may read; scope.partial true says clusters the caller may not read were left out, so the figure is a floor. Returns, in the organisation's display currency and minor units: monthly_cents (the run rate at the latest snapshot, times the hours in a month), idle_pct (the share of the run rate that is unrequested capacity - requests, not usage; clusters and credentials only), share_of_fleet_pct (of the organisation's fleet, or of the project's for a caller confined to one project), confidence, the open cloud waste, trend_30d (daily spend: the cents spent per UTC day over 30 days, not a run rate; a day marked partial is the current one, still metering over only hours_metered hours, and is not comparable to a whole day; hours_metered is the hours cents covers, hours_measured of them measured by a metering pass and hours_estimated filled in by a later pass at its own rate, whose money is in cents but which nobody measured; hours_missing the hours that had ended with no figure at all, whose money is not in cents, stated because behind several clusters each count is one cluster's worst and they need not add up to 24; a day marked incomplete is missing an hour it had already had, so its cents are a floor of that day, not a drop), month_to_date_cents (spent so far this UTC month, read over the whole month; month_to_date_days_metered of month_to_date_days_elapsed days are in it in full) and, per cluster and per namespace, the figures behind it. null is unknown, not zero: priced false carries unpriced_reason, and a day, cluster or namespace nobody metered is null. coverage_incomplete true means monthly_cents is a floor, and each cluster's own coverage_incomplete says which cluster made it one. A namespace marked shared also runs another application and is counted whole. List-price estimates, not the bill. Read-only; use get_namespace_cost_history for a cluster's namespaces over time.
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": {
"kind": "<kind>"
},
"name": "get_object_cost"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | The kind of object: cluster, namespace, stack, application, credential or project. | |
| namespace | No | The Kubernetes namespace, for kind namespace. | |
| cluster_id | No | UUID of the cluster, for kind cluster, namespace or stack. Leave it out when a cluster is selected; one that is not the selected cluster is refused. | |
| project_id | No | UUID of the project, for kind project. list_projects has the ids. | |
| stack_name | No | The stack's name, for kind stack. | |
| credential_id | No | UUID of the cloud credential, for kind credential. | |
| application_id | No | UUID of the application, for kind application. |