Skip to main content
Glama

estimate_monthly_cost

Read-onlyIdempotent

Estimate a monthly cost from explicitly supplied base, included usage, additional pack size and price. Amounts are integer cents; no live vendor prices.

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": {
      "base_cents": "<base_cents>",
      "usage_units": "<usage_units>",
      "included_units": "<included_units>",
      "pack_units": "<pack_units>",
      "pack_cents": "<pack_cents>"
    },
    "name": "estimate_monthly_cost"
  }
}

Input Schema

NameRequiredDescriptionDefault
currencyNoISO-style currency code; defaults to USD
base_centsYesMonthly base cents
pack_centsYesCost per pack in cents
pack_unitsYesAdditional units per pack
usage_unitsYesExpected monthly units
add_on_centsNoOptional monthly add-ons
included_unitsYesUnits included

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, closed-world behavior, so safety needs no restating. The description adds genuine context beyond that: amounts are integer cents and no live vendor prices are consulted. It does not disclose how the estimate is computed — notably whether usage above the included amount is billed in whole packs or prorated — which is the key behavioral question for an estimator.

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?

Two short sentences, front-loaded with the purpose and followed by the units/source constraint; no filler. 'Explicitly supplied' is slightly redundant with the required-input schema, but it usefully signals no defaults are fetched.

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?

For a seven-parameter, fully documented, read-only calculator with no output schema, the description plus schema give enough to invoke it correctly. The remaining gap is what the result contains (a single estimated cents figure?) and the pack-rounding rule, which an agent might need to interpret the answer.

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?

The description names base, included usage, pack size and pack price, echoing four of the seven parameters; currency, usage_units and add_on_cents appear only in the schema. Since schema description coverage is 100%, the schema already carries per-parameter meaning, so this is a baseline 3 with the description adding unit semantics ('integer cents') rather than new per-parameter detail.

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?

States a specific verb-plus-resource: 'Estimate a monthly cost' from named inputs, and clarifies that values come from the caller rather than a live source. It is distinguishable from the list/get siblings by being a pure calculation. It stops short of differentiating against any named alternative, so it is clear but not maximal.

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?

'from explicitly supplied ...' and 'no live vendor prices' imply the tool is a pure offline calculator with no vendor lookup, which is usable context. However, there is no explicit statement of when to choose this versus other tools, nor any caveat about when the estimate is not appropriate (e.g., negotiated pricing, taxes).

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.