Skip to main content
Glama

Cheapest fuel along a trip

cheapest_fuel_on_route
Read-onlyIdempotent

Plan a drive and locate low-price fuel stations along the route, sorted by price with each station's distance from the start.

Instructions

Plan a drive and find where to fill up: routes from origin to destination, then lists the stations within corridor_km of the route, cheapest first, with each one's km from the start. Ends can be place names ("Madrid", "Valencia"), "lat,lon" text or coordinates. Prices are per litre (per kg for CNG, LNG and H2, per kWh for EV) in local currency; cross-border trips mix currencies, see pumperly://exchange-rates. Uses two of the API's 30 route searches per minute.

Input Schema

NameRequiredDescriptionDefault
fuelYesFuel code. Common ones: B7 = diesel, E5 = petrol 95, E10 = petrol 95 E10, E5_98 = petrol 98, LPG = autogas, EV = charging. The pumperly://fuel-types resource lists all 16 with labels and price units.
limitNoHow many stations to return, 1 to 50. Default 10.
originNoStart as a place name ("Madrid") or "lat,lon" text ("40.4168,-3.7038"). Or give origin_lat and origin_lon.
sort_byNoprice (cheapest first, default) or route (in driving order).price
dest_latNoEnd latitude, decimal degrees.
dest_lonNoEnd longitude, decimal degrees.
origin_latNoStart latitude, decimal degrees.
origin_lonNoStart longitude, decimal degrees.
corridor_kmNoHow far off the route a station may be, in km, 0.5 to 50. Default 2 (a short detour).
destinationNoEnd as a place name ("Valencia") or "lat,lon" text. Or give dest_lat and dest_lon.

Output Schema

NameRequiredDescriptionDefault
originYes
stationsYes
destinationYes
distance_kmYes
duration_minYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.2.1

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/openWorld, so the bar is lower, yet the description adds real operational context: the call consumes two of the API's 30 route searches per minute, prices are in local currency and cross-border trips mix currencies (pointing to pumperly://exchange-rates). Units differ by fuel (per litre/kg/kWh), which an agent cannot infer from the enum alone.

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?

Three dense sentences with the core action front-loaded before caveats about units, currency, and rate limits. Every sentence carries information; slight density in the pricing sentence but no filler.

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?

An output schema exists so return values need no explanation, and the description covers the remaining unknowns an agent needs: routing behavior, corridor semantics, sorting default, unit/currency handling, and quota cost. Sibling differentiation is the only omission.

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 every parameter is already documented; the description only restates the accepted end formats that origin/destination already explain. It adds no default/resolution behavior (e.g., which wins if both origin and origin_lat are supplied) beyond the schema, so baseline 3 applies.

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?

Specific verb+resource: plans a route from origin to destination and returns stations within corridor_km sorted cheapest-first with distance from start. That is far more precise than the title. However, it never distinguishes itself from the very similar sibling find_route_stations, so an agent comparing the two must open both schemas to choose.

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?

Usage is implied by 'Plan a drive and find where to fill up', and the accepted end formats (place name, 'lat,lon', or lat/lon params) guide invocation. But there is no explicit when-to-use/when-not guidance and no mention of calculate_route or find_route_stations as alternatives, even though they overlap heavily.

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