Skip to main content
Glama
nuncaeslupus

comparador-luz-gas

comparar_ofertas

Read-only

Compare official CNMC electricity and gas offers by price using an invoice QR or postal code with annual usage, including multi-year cost analysis.

Instructions

Consulta el comparador oficial de la CNMC y devuelve las ofertas de luz y/o gas ordenadas por precio, con un análisis a varios años (rotar de oferta, permanencias, precio fijo vs. por tramos). Basta el QR de una factura, o código postal + consumo anual.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cpNocódigo postal, p. ej. 28013
qrNocontenido del QR de la factura de luz, ya decodificado (la URL de comparador.cnmc.gob.es que lleva impresa)
aniosNohorizonte del análisis a largo plazo (por defecto 3)
consumoNoconsumo anual de luz en kWh
empresaNosuministro que no es vivienda
franjasNoconsumo anual punta, llano y valle en kWh; por defecto se reparte con el perfil 2.0TD
mensualNocon qr, coste de ese periodo de facturación en vez del anual
potenciaNopotencia contratada en kW (por defecto 3.45)
suministroNo
consumo_gasNoconsumo anual de gas en kWh
max_ofertasNoofertas a devolver, las más baratas (por defecto 20)
sin_permanenciaNoexcluir ofertas con permanencia

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations cover readOnly and openWorld, so the bar is lower; the description still adds real value by describing what comes back (offers sorted by price, multi-year analysis covering offer rotation, permanencias, fixed vs. time-band pricing). It does not address errors, auth, or latency, which keeps it out of the top band.

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 tight sentences that front-load the purpose and then the minimum-input rule; no filler. The parenthetical feature list is dense but every item earns its place.

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 12-parameter tool with no required fields and no output schema, the description usefully explains the return content and the two minimal input paths. Remaining gaps (gas-only behavior, defaults for potencia/consumo, error handling) are minor against the 92% schema coverage.

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 92%, so the schema already documents nearly every parameter. The description reinforces the QR-vs-cp+consumo choice and links the multi-year view to 'anios', but adds no syntax or format detail beyond the schema. Baseline 3 is appropriate.

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?

Specifies the verb and resource precisely ('Consulta el comparador oficial de la CNMC y devuelve las ofertas de luz y/o gas ordenadas por precio') and names the analysis scope. It does not explicitly contrast with the invoice-reading siblings, but the purpose is unmistakably different.

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?

States the two viable invocation modes ('Basta el QR de una factura, o código postal + consumo anual'), which tells the agent the minimum inputs needed given that no parameter is required. It stops short of naming alternatives or exclusions.

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

Deploy Server

Other Tools