Skip to main content
Glama

calcular_breakeven_electrico

Read-only

Calcula el año en que un coche eléctrico empieza a ser más barato que uno de gasolina equivalente (punto de equilibrio). Necesita los precios de ambos coches y los km anuales. Opcionales: ayuda a la compra (en España, el Programa Auto+ del RD 609/2026; el MOVES III terminó en 2025), consumos, precio luz y gasolina, coste cargador. Devuelve año de break-even, ahorro anual estimado, inversión neta extra y coste por km de cada opción.

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": {
      "precioElectrico": "<precioElectrico>",
      "precioGasolina": "<precioGasolina>",
      "kmAnuales": "<kmAnuales>"
    },
    "name": "calcular_breakeven_electrico"
  }
}

Input Schema

NameRequiredDescriptionDefault
kmAnualesYesKilómetros que se conducen al año (ej: 15000)
precioLuzNoPrecio de la electricidad doméstica en €/kWh. Por defecto: 0,18
costeCargadorNoCoste de instalación del cargador doméstico en euros. Por defecto: 800
subsidioMovesNoAyuda a la compra que corresponda, en euros. En España rige el Programa Auto+ (RD 609/2026): hasta 4500 € por turismo, sumando criterios, sin tramo por achatarramiento. El MOVES III terminó el 31/12/2025. Por defecto: 0
precioGasolinaYesPrecio del coche de gasolina equivalente en euros (ej: 22000)
consumoGasolinaNoConsumo del gasolina en L/100km. Por defecto: 7
precioElectricoYesPrecio del coche eléctrico en euros (ej: 32000)
consumoElectricoNoConsumo del eléctrico en kWh/100km. Por defecto: 16
precioGasolinaLitroNoPrecio de la gasolina en €/L. Por defecto: 1,65

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / subsidioMoves / description
      Previous value: -"Subsidio MOVES III aplicable: 0 (sin subsidio), 4500 (sin achatarramiento) o 7000 (con achatarramiento). Por defecto: 0"New value: +"Ayuda a la compra que corresponda, en euros. En España rige el Programa Auto+ (RD 609/2026): hasta 4500 € por turismo, sumando criterios, sin tramo por achatarramiento. El MOVES III terminó el 31/12/2025. Por defecto: 0"
  2. First observed

TDQS

A3.9/5.0
Behavior4/5

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

readOnlyHint=true already tells the agent this is a pure, side-effect-free calculation, so the bar is lower. The description still adds value by disclosing the return contents (año de break-even, ahorro anual, inversión neta extra, coste por km) and domain context (defaults, Programa Auto+ RD 609/2026, MOVES III ended 2025). It does not discuss defaults for every parameter, but annotations carry the safety profile.

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?

Front-loaded with the purpose, then required inputs, then optionals, then returns in four tight sentences. The parenthetical about MOVES III ending in 2025 is slightly detailed but earns its place as domain context.

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 correctly carries the burden of describing return values and does so explicitly. For a nine-parameter calculator it is largely complete; only per-parameter defaults and the exact break-even algorithm are left to the schema.

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%, so the schema already documents all nine parameters including units and defaults; baseline is 3. The description adds some grouping context (required prices/km vs optional subsidies, consumos, luz, gasolina, cargador) and the subsidy-program framing, but no syntax or units beyond the schema.

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 ('Calcula') and a precise resource (el año en que un coche eléctrico empieza a ser más barato que uno de gasolina equivalente / punto de equilibrio). An agent can distinguish it from adjacent siblings like calcular_combustible, calcular_kilometraje or recomendar_vehiculo without opening the schema.

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?

The description states which inputs are required (precios de ambos coches y km anuales) and which are optional, which implicitly scopes usage. However, it never says when to reach for this tool versus relacionada siblings, nor names any exclusion or prerequisite, so guidance is only implied.

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