Skip to main content
Glama

cfe_calculate

Mexico CFE electricity bill and DAC checker: will your consumption trigger the DAC high-consumption tariff? Estimates the bimonthly bill. / Calcula el recibo CFE y si caes en tarifa DAC. Paid via x402 ($0.01 USDC on Base mainnet (also Polygon, Arbitrum and Solana)) on this tools/call request. Official source and as-of date are in the JSON. Invalid input is rejected without payment.

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": {
      "tarifa": "<tarifa>",
      "bimestres": "<bimestres>"
    },
    "name": "cfe_calculate"
  }
}

Input Schema

NameRequiredDescriptionDefault
ivaNo0.16 general VAT or 0.08 northern border strip. / IVA 0.16 general o 0.08 franja fronteriza norte.
estadoNoMexican state name (optional, passed through).
regionNoDAC tariff region. Optional; if omitted the comparison uses Central and also returns the range. / Región tarifaria DAC (opcional).
tarifaYesDomestic CFE tariff printed on the bill: 1, 1A, 1B, 1C, 1D, 1E or 1F. / Tarifa doméstica impresa en el recibo.
bimestresYeskWh of 1 to 6 bimonthly bills, oldest to newest. Also accepts a comma-separated string or b1…b6. / kWh de 1 a 6 recibos bimestrales, del más antiguo al más reciente.
municipioNoMunicipality (optional, passed through).
ultimoMesNoMonth of the latest bill (1–12). Defaults to the current published rates month. / Mes del último recibo.
veranoInicioNoMonth when summer starts locally (2–5). / Mes en que empieza el verano (febrero a mayo).
franjaFronterizaNoIf true, apply 8% IVA. / Si es true, aplica IVA del 8 %.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

No annotations exist, so the description carries the full burden, and it does more than most: it discloses the payment mechanism (x402, $0.01 USDC on Base mainnet, also Polygon/Arbitrum/Solana), that payment is coupled to this tools/call request, and that rejected inputs are not charged. It also states that official source and as-of date appear in the JSON, giving provenance the schema does not. It stops short of latency, rate limits, or what the response body looks like beyond provenance.

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?

The purpose is front-loaded in the first sentence and the cost/provenance/failure details follow in a compact block. The bilingual English/Spanish pairing costs space but serves a genuinely bilingual audience, so it is not padding; the only slight redundancy is repeating the payment network list parenthetically.

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 9-parameter calculator with no output schema, the description covers the things an agent most needs before spending money: what is computed, cost and payment rails, charge-on-failure semantics, and that provenance and as-of date come back in the response. It could say more about the shape of the returned bill/DAC verdict, which is the sole remaining gap.

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% and the schema itself explains every field bilingually, including the IVA rates, enum values, and the bimestres ordering and limits. The description adds no field-level meaning beyond that, so the baseline of 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 description names a specific verb and resource: it estimates a Mexico CFE bimonthly electricity bill and checks whether consumption triggers the DAC high-consumption tariff. The opening question ('will your consumption trigger the DAC...?') makes the agent's decision outcome explicit, and no sibling tool overlaps with this domain.

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?

Usage is implied by the inputs (1–6 bimonthly kWh readings plus the tariff code printed on the bill), but the description never states when to reach for this versus other tools or what happens for non-Mexican/residential cases. It does add one practical guardrail, that invalid input is rejected without payment, which helps an agent decide it is safe to probe.

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