Skip to main content
Glama

forecast_dbu_cost

Read-onlyIdempotent

Forecast Databricks DBU consumption and compute costs across Classic and Serverless, then recommend optimal worker sizing from ingestion throughput and shuffle complexity.

Instructions

Forecast Databricks DBU consumption and compute costs (Classic compute vs. Serverless) and recommend optimal worker sizing based on ingestion throughput and shuffle complexity.

Usage Guidelines:

  • Use during architectural sizing, capacity planning, and cost optimization before deploying Lakeflow or DLT pipelines.

  • For Delta Lake table storage layout and file size optimization, use audit_compaction_debt instead.

Behavior:

  • Pure deterministic mathematical calculation based on Databricks official DBU pricing and node SKU specifications.

  • Does NOT query Databricks billing APIs, account consoles, or live workspace compute.

  • Returns hourly, daily, and monthly DBU and USD cost projections across Classic and Serverless options with cluster node recommendations.

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": {
      "files_per_hour": "<files_per_hour>"
    },
    "name": "forecast_dbu_cost"
  }
}

Input Schema

NameRequiredDescriptionDefault
avg_file_mbNoAverage incoming file size in MB (default: 10.0).
files_per_hourYesEstimated incoming files per hour.
shuffle_join_countNoNumber of wide shuffle/join stages (default: 1).
active_hours_per_dayNoActive compute hours per day (default: 24.0).
is_continuous_streamingNoTrue for continuous streaming, False for triggered batch.

Output Schema

NameRequiredDescriptionDefault
classic_daily_dbuYesProjected daily DBU burn on Classic compute.
estimated_daily_gbNoEstimated daily volume ingested in gigabytes.
serverless_daily_dbuNoProjected daily DBU burn on Serverless compute.
recommended_worker_typeNoRecommended cloud worker SKU (e.g., i3.xlarge).
classic_monthly_cost_usdYesProjected monthly USD cost on Classic compute.
recommended_worker_countYesRecommended number of worker nodes.
serverless_monthly_cost_usdNoProjected monthly USD cost on Serverless compute.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.1.1
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "classic_daily_dbu": {
      +      "description": "Projected daily DBU burn on Classic compute.",
      +      "type": "number"
      +    },
      +    "classic_monthly_cost_usd": {
      +      "description": "Projected monthly USD cost on Classic compute.",
      +      "type": "number"
      +    },
      +    "estimated_daily_gb": {
      +      "description": "Estimated daily volume ingested in gigabytes.",
      +      "type": "number"
      +    },
      +    "recommended_worker_count": {
      +      "description": "Recommended number of worker nodes.",
      +      "type": "integer"
      +    },
      +    "recommended_worker_type": {
      +      "description": "Recommended cloud worker SKU (e.g., i3.xlarge).",
      +      "type": "string"
      +    },
      +    "serverless_daily_dbu": {
      +      "description": "Projected daily DBU burn on Serverless compute.",
      +      "type": "number"
      +    },
      +    "serverless_monthly_cost_usd": {
      +      "description": "Projected monthly USD cost on Serverless compute.",
      +      "type": "number"
      +    }
      +  },
      +  "required": [
      +    "recommended_worker_count",
      +    "classic_daily_dbu",
      +    "classic_monthly_cost_usd"
      +  ],
      +  "type": "object"
      +}
  2. First observedv0.1.0

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the readOnly/idempotent/closed-world annotations, it discloses behavior an agent could not infer: the result is a pure deterministic calculation from official pricing and SKU specs, and it does NOT call billing APIs or live workspace compute. That distinction between modeled and measured cost is the key fact governing trust in the output.

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

Conciseness5/5

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

Front-loaded purpose sentence followed by labeled Usage Guidelines and Behavior blocks, so an agent scanning the text hits routing information before detail. No sentence is filler; even the negation about billing APIs carries decision-relevant content.

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?

An output schema exists, so return-value details need not be repeated; the description still summarizes the projection horizons and options returned. For a five-parameter, single-required-parameter estimation tool, everything needed to call it correctly and interpret the result is present.

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%, so every parameter including defaults and units is already documented in structured data. The description adds only a loose conceptual link (throughput and shuffle complexity drive sizing), not per-parameter meaning, ranges, or format guidance, so the baseline 3 applies.

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 opening sentence uses a precise verb (Forecast) and names the exact resources: DBU consumption and compute costs across Classic vs. Serverless, plus worker sizing recommendations. It is immediately distinguishable from the sibling audit_compaction_debt, which handles storage layout rather than cost modeling.

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?

It explicitly names the phases for use (architectural sizing, capacity planning, cost optimization before deploying Lakeflow or DLT pipelines) and routes a related-but-different need to audit_compaction_debt. An agent can decide to invoke this tool without inspecting any schema.

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