Skip to main content
Glama

calcular_combustible

Read-only

Calculadora de combustible con dos modos: (1) consumo: dado un trayecto real (km recorridos + litros gastados), calcula el consumo en L/100km, el coste por km y la autonomía con 50€. (2) viaje: dada la distancia de un trayecto y el consumo medio del vehículo, calcula los litros necesarios y el coste total del viaje.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modoYesconsumo = calcular consumo real de un trayecto ya hecho | viaje = estimar coste de un trayecto futuro
litrosNo(Modo consumo) Litros gastados en ese trayecto
kilometrosNo(Modo consumo) Kilómetros recorridos en el trayecto de referencia
distanciaKmNo(Modo viaje) Distancia del trayecto en kilómetros
consumoL100kmNo(Modo viaje) Consumo medio del vehículo en litros cada 100 km
precioCombustibleYesPrecio del combustible en €/litro (ej: 1.65 para 1,65 €/L)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations declare readOnlyHint=true, and the description aligns by describing pure calculations. It adds value by detailing the computed outputs for each mode (L/100km, cost per km, autonomy, liters needed, total cost), which is beyond what annotations convey. No contradictions.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is two sentences long, front-loads the mode summary, and wastes no words. Every sentence contributes value, making it highly efficient.

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?

Given 6 parameters, 2 required, and no output schema, the description sufficiently covers the two modes and what each computes. It could hint at the output format (e.g., returning numbers), but the calculator nature makes it reasonable. Overall complete for its complexity.

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 100% with descriptions for all 6 parameters. The description adds context by explaining the two modes and their associated parameters (litros+kilometros for consumo, distanciaKm+consumoL100km for viaje), but does not add substantial meaning beyond the schema's own descriptions.

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 clearly states it's a fuel calculator with two distinct modes (consumption and trip), and its verb 'calcular' combined with 'combustible' distinguishes it from sibling calculators like 'calcular_imc' or 'calcular_porcentaje'.

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?

The description explains when to use each mode: consumption for a real trip already taken, trip for estimating a future trip. It provides clear context but does not explicitly state when not to use this tool or mention alternatives.

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