Skip to main content
Glama

calculate gas bill

calculate_gas_bill
Read-onlyIdempotent

Calculates South Korea residential city gas invoice amount based on cubic meters used and heating/cooking tariff.

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": {
      "usageM3": "<usageM3>"
    },
    "name": "calculate_gas_bill"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeNoUsage tariff type (default heating)
usageM3YesGas meter volume in cubic meters (m³)
calorificNoOptional regional average calorific value in MJ/m³ (default 42.8)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so safety behavior is covered. The description adds the meaningful scope constraint of residential South Korean billing and the tariff-type dimension. However, it leaves out substantive behavioral assumptions an agent would want for a billing calculator: whether progressive tier brackets, the base standing charge, or VAT are included in the returned amount.

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?

One sentence, front-loaded with the verb and resource, with no filler or restated name/title. It could carry slightly more detail (output composition) at little length cost, which keeps it off a 5.

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?

There is no output schema, so the description is the only place to learn what comes back; it says 'invoice amount' but not currency, whether a breakdown or tier detail is returned, or the billing period implied. For a 3-parameter financial calculator this is adequate but leaves real ambiguity.

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 units, defaults (heating, 42.8 MJ/m³) and enum-like tariff values all documented in the schema itself. The description only echoes 'cubic meters used' and 'heating/cooking tariff' and never mentions the optional calorific parameter, so it adds nothing beyond the schema. Baseline 3 applies.

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 ('calculates') and a precisely scoped resource ('South Korea residential city gas invoice amount'), including the two drivers (cubic meters, heating/cooking tariff). The jurisdictional and residential-only scoping distinguishes it in substance from the other calculators in the sibling list, though no sibling is named.

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?

The description gives no when-to-use guidance, no exclusions (e.g., non-residential or commercial gas, other countries), and no pointer to an alternative. An agent must infer entirely from the sentence whether this fits a user's question.

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.