Skip to main content
Glama

get_cluster_costs

Retrieve aggregated cost breakdown for Ocean clusters by namespace or resource to analyze AWS or Azure cloud spending over specified time periods.

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 or resource (default: namespace) account_id: Optional account ID to query. Defaults to SPOTINST_ACCOUNT_ID env var. cloud: Cloud provider: aws or azure (default: aws)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cluster_idYes
start_timeYes
end_timeYes
group_byNonamespace
account_idNo
cloudNoaws

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

With no annotations provided, the description carries full burden for behavioral disclosure. It states the tool's purpose and parameters but doesn't describe important behavioral traits like whether this is a read-only operation, what format the cost breakdown returns, potential rate limits, authentication requirements beyond the account_id parameter, or error conditions. The description provides basic operational context but lacks critical behavioral details.

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?

The description is well-structured with a clear purpose statement followed by organized parameter explanations. Every sentence serves a purpose, though the parameter explanations could be slightly more concise. The information is front-loaded with the core purpose stated first, making it easy to understand the tool's function quickly.

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

Completeness4/5

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

Given the tool's complexity (6 parameters, cost analysis functionality) and the presence of an output schema, the description provides good contextual coverage. The parameter semantics are fully documented, and with an output schema handling return values, the description appropriately focuses on purpose and input guidance. The main gap is in behavioral transparency for a tool that likely involves financial data access.

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

Parameters5/5

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

With 0% schema description coverage, the description fully compensates by providing detailed semantic explanations for all 6 parameters. Each parameter gets specific context: cluster_id format examples, ISO 8601 format requirements for time parameters, grouping options with defaults, account_id environment variable fallback, and cloud provider options with defaults. This adds substantial value beyond the bare schema.

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?

The description clearly states the specific action ('Get aggregated cost breakdown') and resource ('for an Ocean cluster'), specifying both AWS and Azure cloud providers. It distinguishes itself from sibling tools like 'get_cluster' or 'get_cluster_log' by focusing exclusively on cost analysis rather than general cluster information or logs.

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

Usage Guidelines3/5

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

The description implies usage context through the parameter explanations (e.g., 'Defaults to SPOTINST_ACCOUNT_ID env var'), but doesn't explicitly state when to use this tool versus alternatives. No guidance is provided about when not to use it or what other tools might serve similar purposes, leaving usage decisions to inference from the tool name and parameters.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/arnstarn/mcp-server-spotinst'

If you have feedback or need assistance with the MCP directory API, please join our Discord server