Skip to main content
Glama

Fuel Price

fuel_price
Read-onlyIdempotent

What does petrol cost in a European country right now, the current pump price per litre for petrol, diesel or LPG in any of 28 countries. Answers "how much is petrol in Portugal", "what does diesel cost in Germany", "price of gas in Ireland", "how much to fill up in Spain". Takes a country name or two-letter code and a fuel (defaults to petrol), and returns the price per litre in euros both including and excluding tax, the tax share as a percentage, and the week the figure is for. Reported weekly by EU Member States to the European Commission's Weekly Oil Bulletin, so it is a national average for that week rather than one filling station's sign. Fuels: petrol_95, diesel, lpg, heating_oil, fuel_oil_low_sulphur, fuel_oil_high_sulphur.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "country": "Portugal"
    },
    "name": "fuel_price"
  }
}

Input Schema

NameRequiredDescriptionDefault
fuelNoWhich fuel: petrol (default), diesel, lpg, heating_oil. Forgiving about wording, "gas", "gasoline", "unleaded" and "autogas" all resolve.
countryYesCountry name or two-letter code, "Portugal", "PT", "Germany", "DE". Use "EU" for the EU-wide average.
week_endingNoOptional YYYY-MM-DD to read a past week instead of the latest. Returns the most recent week on or before this date.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / country / description
      Previous value: -"Country name or two-letter code — \"Portugal\", \"PT\", \"Germany\", \"DE\". Use \"EU\" for the EU-wide average."New value: +"Country name or two-letter code, \"Portugal\", \"PT\", \"Germany\", \"DE\". Use \"EU\" for the EU-wide average."
    • changedInput schema / properties / fuel / description
      Previous value: -"Which fuel: petrol (default), diesel, lpg, heating_oil. Forgiving about wording — \"gas\", \"gasoline\", \"unleaded\" and \"autogas\" all resolve."New value: +"Which fuel: petrol (default), diesel, lpg, heating_oil. Forgiving about wording, \"gas\", \"gasoline\", \"unleaded\" and \"autogas\" all resolve."
  2. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already cover read-only, idempotent, non-destructive, but the description adds the parts they cannot: the EU Weekly Oil Bulletin provenance, the weekly cadence, that values are national averages rather than station-level prices, and that output includes tax-inclusive/tax-exclusive prices and the reference week.

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 answer is front-loaded in the first sentence and the fuel list ends where it should. Some question examples are near-duplicates ("how much is petrol in Portugal" vs "how much to fill up in Spain"), which is slightly padded but supports retrieval, so it stays readable.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/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 carries return semantics itself and does: price per litre in euros including and excluding tax, tax share as a percentage, and the week the figure is for. Combined with the source and averaging caveat, an agent has everything needed to call and interpret it.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds material detail the schema omits: the full fuel list including heating_oil, fuel_oil_low_sulphur and fuel_oil_high_sulphur, plus the explicit statement that petrol is the default and that country inputs can be a name or a two-letter code.

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+resource: current pump price per litre for a given fuel in a European country, plus the exact registry it comes from. The scope (28 countries, national weekly average, not a single station) clearly separates it from siblings such as fuel_price_history and fuel_price_coverage without having to name them.

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?

Usage is framed through concrete question examples ("how much is petrol in Portugal") and the phrase "right now" establishes it as the point-in-time lookup rather than a series. It does not explicitly state when to prefer fuel_price_history, compare_fuel_prices or fuel_price_coverage, so there is a mild residual gap.

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.