Skip to main content
Glama

get_cluster_costs

Analyze Databricks cluster costs and usage for a date range, including uptime, DBU consumption, and estimated costs, with optional filtering by cluster ID.

Instructions

Analyze cluster costs and usage metrics including uptime, DBU consumption, and estimated costs.

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": {
      "start_date": "<start_date>",
      "end_date": "<end_date>"
    },
    "name": "get_cluster_costs"
  }
}

Input Schema

NameRequiredDescriptionDefault
end_dateYesEnd date for analysis in YYYY-MM-DD format
cluster_idNoOptional: Filter by specific cluster ID
start_dateYesStart date for analysis in YYYY-MM-DD format

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. 'Analyze' weakly signals a read-only operation and the metric list hints at return content, but the description says nothing about aggregation level, whether omitting cluster_id aggregates across all clusters, timezone or date-range constraints, cost/pricing assumptions, permissions needed, or row limits.

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?

A single front-loaded sentence with no filler; the resource and covered metrics come first. It is efficient, though the terseness is part of why guidance and behavior are thin.

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

Completeness3/5

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

With three parameters, no annotations, and no output schema, the description should clarify things like what happens when cluster_id is omitted and what granularity results come back at. Listing the metrics partially compensates for the missing output schema, but key call-shaping details remain unstated.

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%, with all three parameters documented including the optional cluster_id filter, so the schema already does the heavy lifting. The description adds no format, default, or interaction semantics beyond it, which is the expected baseline-3 outcome here.

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

Purpose4/5

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

The description pairs a clear verb ('Analyze') with a specific resource ('cluster costs and usage metrics') and enumerates the metrics covered: uptime, DBU consumption, estimated costs. It is clear what the tool does, but it never distinguishes itself from nearby siblings such as forecast_costs or analyze_cost_by_tag, so an agent must infer the boundary.

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

Usage Guidelines2/5

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

There is no explicit when-to-use or when-not-to-use guidance and no named alternative. The only implicit cue is that the metrics are cluster-scoped and cost-oriented, which hints at retrospective cost analysis versus forecasting, but the agent has to make that inference itself.

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