Skip to main content
Glama

Estimate Cluster Monthly Compute Cost

get_cost_estimate
Read-onlyIdempotent

Estimate monthly on-demand compute spend per node pool for one Kubernetes cluster using public cloud list prices. Use for ballpark cost sizing and node-pool right-sizing checks.

Instructions

Estimate monthly compute spend per node pool for one cluster using public cloud on-demand list pricing.

Returns cluster_id, provider, currency (USD), monthly_total_usd, per-pool pools breakdown (machine_type, node_count, hourly_price_usd, monthly_estimate_usd, priced, note), and a mandatory disclaimer. Compute-only public list estimate: excludes committed-use/reserved/spot discounts, storage, egress, load balancers, and control-plane fees; unsupported machine families are marked priced=False.

Use for ballpark compute cost sizing and node-pool right-sizing checks. Prefer get_nodes or get_cluster_info for node hardware capacity and autoscaling bounds without pricing lookups.

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_cost_estimate"
  }
}

Input Schema

NameRequiredDescriptionDefault
cluster_idYesUnique KubeOrbit cluster identifier returned by `list_teams_and_clusters` (1-63 URL-safe chars, e.g. 'gke-prod-us', 'eks-staging').

Output Schema

NameRequiredDescriptionDefault
errorNoError detail if pricing lookup failed.
poolsNoPer-node-pool estimates: name, machine_type, node_count, hourly_price_usd, monthly_estimate_usd, priced, and note.
currencyNoCurrency code for monetary figures.USD
providerNoCloud provider priced (gke, eks, aks, or local).
cluster_idNoCluster identifier queried.
disclaimerNoMandatory disclaimer explaining that figures are public on-demand compute list estimates, not an invoice.
monthly_total_usdNoSum of estimated monthly compute costs across priced node pools (730 hrs/month).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv0.1.1
    • addedInput schema / properties / cluster_id / description
      Added value: +"Unique KubeOrbit cluster identifier returned by `list_teams_and_clusters` (1-63 URL-safe chars, e.g. 'gke-prod-us', 'eks-staging')."
    • addedInput schema / properties / cluster_id / maxLength
      Added value: +63
    • addedInput schema / properties / cluster_id / minLength
      Added value: +1
    • addedInput schema / properties / cluster_id / pattern
      Added value: +"^[a-zA-Z0-9][a-zA-Z0-9._-]{0,62}$"
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "cluster_id": {
      +      "default": "",
      +      "description": "Cluster identifier queried.",
      +      "title": "Cluster Id",
      +      "type": "string"
      +    },
      +    "currency": {
      +      "default": "USD",
      +      "description": "Currency code for monetary figures.",
      +      "title": "Currency",
      +      "type": "string"
      +    },
      +    "disclaimer": {
      +      "default": "",
      +      "description": "Mandatory disclaimer explaining that figures are public on-demand compute list estimates, not an invoice.",
      +      "title": "Disclaimer",
      +      "type": "string"
      +    },
      +    "error": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "description": "Error detail if pricing lookup failed.",
      +      "title": "Error"
      +    },
      +    "monthly_total_usd": {
      +      "anyOf": [
      +        {
      +          "type": "number"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "description": "Sum of estimated monthly compute costs across priced node pools (730 hrs/month).",
      +      "title": "Monthly Total Usd"
      +    },
      +    "pools": {
      +      "description": "Per-node-pool estimates: name, machine_type, node_count, hourly_price_usd, monthly_estimate_usd, priced, and note.",
      +      "items": {
      +        "additionalProperties": true,
      +        "type": "object"
      +      },
      +      "title": "Pools",
      +      "type": "array"
      +    },
      +    "provider": {
      +      "default": "",
      +      "description": "Cloud provider priced (gke, eks, aks, or local).",
      +      "title": "Provider",
      +      "type": "string"
      +    }
      +  },
      +  "title": "CostEstimateOutput",
      +  "type": "object"
      +}
  2. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already cover safety (readOnly, idempotent, non-destructive, closed-world), and the description adds substantial extra context: the exact pricing model, the cost categories excluded (committed-use/reserved/spot, storage, egress, load balancers, control-plane fees), and the failure behavior for unsupported machine families ('priced=False'). It also warns that the response contains a mandatory disclaimer, which tells the agent the output is a caveated estimate rather than an invoice-grade figure.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core action, then structured into pricing model, return fields, exclusions, and usage guidance. Mostly earns its space, though the enumerated return-field list partially duplicates the existing output schema and could be trimmed to the non-obvious items like `priced` and `disclaimer`.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a single-parameter read-only estimation tool with an output schema, the description covers everything an agent needs to decide and interpret: cost basis, exclusions, unsupported-hardware handling, currency, and sibling alternatives. No material gap remains.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, and the schema already documents cluster_id with pattern, length bounds, provenance (from list_teams_and_clusters) and examples. The description only reinforces the scoping ('for one cluster'), adding no new syntax or semantics beyond that baseline.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Estimate monthly compute spend per node pool for one cluster') plus the pricing basis ('public cloud on-demand list pricing'). It also carves out what it is not (compute-only, excludes storage/egress/reserved discounts), which immediately separates it from inventory tools like get_nodes and get_cluster_info.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit when-to-use ('ballpark compute cost sizing and node-pool right-sizing checks') and an explicit when-not with named alternatives ('Prefer get_nodes or get_cluster_info for node hardware capacity and autoscaling bounds without pricing lookups'). The agent needs no inference to route between cost estimation and capacity inspection.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.