Skip to main content
Glama

getFuelPrices

Live petrol, diesel, LPG, and EV fast-charging prices at stations by postcode or city. Use when looking up retail pump prices for petrol (Unleaded 95/98), diesel, LPG, or EV DC fast-charging at local stations by country and postcode/city. Do not use for wholesale crude oil or bulk commodity futures (use getCommodityPrices). Returns up to 20 nearby stations with local currency prices per liter/kWh.

Input Schema

NameRequiredDescriptionDefault
country_codeYes2-letter uppercase ISO 3166-1 alpha-2 country code (e.g., GB, DE, US, HU, AT).
postal_or_cityYesTarget postcode, ZIP code, or city name (e.g., DE14, 10115, Austin).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changed
    • addedInput schema / additionalProperties
      Added value: +false
    • addedInput schema / properties / country_code / examples
      Added value: +[
      +  "GB"
      +]
    • addedInput schema / properties / country_code / maxLength
      Added value: +2
    • addedInput schema / properties / country_code / minLength
      Added value: +2
    • addedInput schema / properties / country_code / pattern
      Added value: +"^[A-Z]{2}$"
    • addedInput schema / properties / postal_or_city / examples
      Added value: +[
      +  "DE14"
      +]
    • addedInput schema / properties / postal_or_city / minLength
      Added value: +2
  2. Changed2 schema fields changed
    • changedInput schema / properties / country_code / description
      Previous value: -"2-letter ISO country code (e.g., UK, DE, US, HU, AT)"New value: +"2-letter uppercase ISO 3166-1 alpha-2 country code (e.g., GB, DE, US, HU, AT)."
    • changedInput schema / properties / postal_or_city / description
      Previous value: -"Postcode, ZIP code, or city name (e.g., DE14, 10115, Austin)"New value: +"Target postcode, ZIP code, or city name (e.g., DE14, 10115, Austin)."
  3. First observed

TDQS

A4.3/5.0
Behavior4/5

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

No annotations are provided, so the description carries the full burden, and it does disclose key behavior: the result is capped at 20 nearby stations and prices are in local currency per liter/kWh. It stops short of stating data freshness/latency, station coverage limits in rural areas, or error behavior for unknown postcodes, which are the remaining traits an agent would want for a live-data tool.

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 core capability, then the usage condition, then the exclusion, then the return shape. The second sentence largely re-lists the fuel types already named in the first sentence (petrol 95/98, diesel, LPG, EV DC), which is mild redundancy but adds the octane detail.

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 2-parameter tool with no annotations and no output schema, the description covers purpose, exclusions, and the essential shape of the response (up to 20 stations, local currency, per liter/kWh). Missing only freshness expectations and failure modes for unmatched locations, which keeps it short of a 5.

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 already documents the ISO 3166-1 alpha-2 format for country_code and the postcode/ZIP/city form for postal_or_city. The description only restates 'by country and postcode/city' and adds no new constraints such as how to disambiguate a city name shared across regions. Baseline 3 is appropriate.

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 resource (live petrol, diesel, LPG and EV fast-charging retail prices) and a specific lookup dimension (postcode or city). It also explicitly distinguishes itself from getCommodityPrices, so an agent can separate it from the commodity-pricing sibling without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit when-to-use guidance ('looking up retail pump prices ... at local stations by country and postcode/city') and an explicit when-not-to-use clause pointing at the named alternative getCommodityPrices for wholesale crude or futures. Nothing about tool selection is left to inference.

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