Skip to main content
Glama

SteadyMetric Public Tools

Usage billing gap

calculate_usage_gap
Read-onlyIdempotent

Estimate the gross difference between delivered billable units and billed units at one supplied rate. Numeric scenarios only. Use successful, contractually billable units for one closed period. Negative means more units billed than delivered. Tiering, free allowances, duplicate events, credits and tax are not resolved here. A difference is not confirmed collectible revenue.

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": {
      "delivered": "<delivered>",
      "billed": "<billed>",
      "unit_price": "<unit_price>"
    },
    "name": "calculate_usage_gap"
  }
}

Input Schema

NameRequiredDescriptionDefault
billedYesBilled units
deliveredYesDelivered billable units
unit_priceYesPrice per unit (USD)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already cover read-only, idempotent, closed-world safety, so the description is free to add real substance: the sign convention (negative = over-billed), the precise set of factors excluded (tiering, free allowances, duplicate events, credits, tax), and the caveat that the figure is not collectible revenue. That is exactly the interpretive context an agent needs to avoid misreporting the result.

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?

Four short sentences, front-loaded with the computation, then scope, then interpretation. Every sentence contributes — no restatement of the tool name and no filler.

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?

With no output schema, the description carries the burden of explaining the return value and does so via the sign convention and the gross-vs-net caveat. It stops short of stating output format or whether the result is a decimal string in USD, which leaves a small gap for a single-purpose calculator.

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

Parameters4/5

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

Schema coverage is 100%, so baseline is 3, but the description adds meaning: 'delivered' is qualified as successful and contractually billable units, and 'at one supplied rate' clarifies that unit_price is applied uniformly. Rounding/precision behavior for the result is not addressed.

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 the gross difference between delivered billable units and billed units at one supplied rate' — plus the 'Numeric scenarios only' scope. This is precise enough to separate it from fee, margin, SLA-budget and cache-cost siblings without needing to name them.

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?

'Use successful, contractually billable units for one closed period' tells the agent which inputs qualify, and 'Numeric scenarios only' excludes non-numeric cases. What is missing is any explicit routing to an alternative when tiering, credits or tax matter — it only says those are 'not resolved here'.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources