Skip to main content
Glama
cloudprice-mcp

cloudprice-mcp

calculate_unit_cost

Divides your actual monthly cloud spend by business volumes you supply to calculate cost per customer, request, or order. See if spend is growing faster or slower than the business.

Instructions

FinOps unit economics on the user's actual bill (a local FOCUS 1.x CSV export; nothing is sent anywhere). Divides monthly recurring spend by business volumes the user supplies (customers, requests, orders) to give cost per unit by month, and whether spend is growing faster or slower than the business. Optionally scoped to one product or team by tag. Use for: 'cost per customer', 'are we scaling efficiently'. Ask the user for the monthly volumes.

Input Schema

NameRequiredDescriptionDefault
unitsYesBusiness volume per month, e.g. [{'month': '2026-10', 'units': 120000}].
tag_keyNoScope cost to rows with this tag (with tag_value).
file_pathYesLocal path to a FOCUS export, .csv or .csv.gz.
tag_valueNo
unit_nameNoWhat a unit is, e.g. 'customer' or 'request'.unit

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.29.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations supplied, the description carries the disclosure burden and does well: it declares the operation is local and non-transmitting ('nothing is sent anywhere'), names the required input format (FOCUS 1.x CSV, .csv or .csv.gz), and explains the two outputs (cost per unit by month, spend-vs-business growth direction). It does not state error behavior when the supplied months do not overlap the bill, nor whether the source file is left untouched, which keeps it from a 5.

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?

Three sentences, front-loaded with what is computed and on what data, followed by the outputs and then the usage triggers. The privacy aside and the 'Ask the user for the monthly volumes' instruction both earn their place; only the first sentence is on the long side, packing privacy, format, and computation into one clause chain.

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?

There is no output schema, and the description properly compensates by describing both return dimensions: cost per unit by month and whether spend outpaces business growth. Combined with the local-computation notice, the required-input prompt, and the optional tag scoping, an agent has everything needed to invoke it correctly for a 5-parameter, 2-required tool.

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 coverage is 80%, so the schema already documents most parameters and the 3 baseline applies. The description adds useful framing for the units array (business volumes the user supplies), unit_name ('cost per unit'), and the tag pair as scoping to 'one product or team,' but tag_value itself has no schema description and the description only implies it must accompany tag_key.

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: divides monthly recurring spend by user-supplied business volumes to produce cost per unit per month plus a scaling verdict. The phrase 'on the user's actual bill (a local FOCUS 1.x CSV export)' distinguishes it from sibling tools like analyze_bill, forecast_spend, and analyze_cost_allocation, which do not compute unit economics.

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

Usage Guidelines4/5

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

Gives explicit trigger phrases ('cost per customer', 'are we scaling efficiently') and a prerequisite instruction to 'Ask the user for the monthly volumes,' which is genuinely actionable. It does not name which sibling to use instead when the agent lacks volume data or wants a different cut of the bill, so it falls short of full when/when-not guidance.

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