Skip to main content
Glama

Cheapest fuel near a location

cheapest_fuel

Find the cheapest fuel for a location and grade: station-level prices in Spain, France, Italy; regional averages in the US. Smart mode weighs pump price against detour cost to reveal the truly cheapest tank.

Instructions

Cheapest fuel for a location and grade. Station-level pricing where governments publish open data (Spain, France, Italy); official regional averages for the US via EIA. With smart=true the ranking weighs the pump price against the fuel and time spent on the detour, so the cheapest sign is not always the cheapest tank.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
latNoLatitude in decimal degrees. Required for station-level countries (ES/FR/IT).
lonNoLongitude in decimal degrees. Required for station-level countries.
gradeNoFuel grade.
smartNoRank by all-in cost (pump price plus the fuel and time of the detour) rather than pump price alone.
regionNoUS state code, e.g. CA. Used instead of lat/lon when country=US.
countryYesISO-3166 alpha-2 country code. ES/FR/IT give station-level prices; US gives a regional average.
Behavior4/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It truthfully discloses that US results are only official regional averages, not station-level prices, and it reveals the smart=true caveat that the cheapest sign is not always the cheapest tank. This adds meaningful behavioral nuance beyond the input schema, though it does not mention request limits or exact response format.

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 compact at two sentences, with the primary purpose front-loaded. The second sentence earns its place by explaining a critical behavioral nuance (smart=true) that would otherwise be ambiguous. No filler or repetition exists.

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 the tool's medium complexity and lack of output schema, the description adequately covers key selection factors: country-specific data granularity, required location inputs, and smart mode semantics. It does not explicitly state the return format (e.g., whether a list or a single result is returned), but the description is sufficient for an agent to decide when to invoke it and with what parameters.

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?

The input schema already provides 100% parameter coverage, including descriptions for lat/lon (required for station-level countries), region (US state code), and country (ES/FR/IT station-level vs US regional). The description's added detail about data sources and smart=true behavior is useful but largely paraphrases or reinforces what the schema already documents, so it only marginally raises the baseline.

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 opens with 'Cheapest fuel for a location and grade,' a specific verb+resource statement that clearly identifies the tool's function. It further differentiates station-level pricing (Spain, France, Italy) from regional averages (US), and introduces the smart=true refinement, making it distinct from any other possible fuel-related tool.

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 provides clear context on when station-level versus regional pricing applies, and explicitly explains what smart=true does ('weighs the pump price against the fuel and time spent on the detour'). It stops short of naming alternative tools or saying 'when not to use,' but the sibling tools are unrelated, so the lack of explicit alternatives is not a major gap.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/DV1-321/scalpstream-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server