Skip to main content
Glama

Gas Quebec: Quebec fuel prices

Find stations near a point

find_cheapest_stations
Read-only

List gas stations around a latitude/longitude in Quebec with current prices in ¢/L, ranked by value (the default: price plus a 1¢/L-per-km distance penalty, the best answer to "where should I fill up"), by price, or by distance. Each station comes with name, brand, address, city, distance and all three fuel prices, so this is also the way to look up a specific station or brand: search around its location with sort=distance and pick it out by name or brand. There is no geocoding tool: turn a postal code, address, landmark or neighbourhood into approximate coordinates yourself. If the user gives no location at all, ask for one instead of guessing. Returns at most 10 stations within 30 km; for a whole-city summary use get_city_prices.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "lat": "<lat>",
      "lng": "<lng>"
    },
    "name": "find_cheapest_stations"
  }
}

Input Schema

NameRequiredDescriptionDefault
latYesLatitude in decimal degrees (Quebec: 44 to 63). Estimate it yourself from a postal code, address or landmark.
lngYesLongitude in decimal degrees (Quebec: -80 to -57). Estimate it yourself from a postal code, address or landmark.
sortNovalue = price + 1¢/L per km of distance (default); price = cheapest first; distance = closest firstvalue
limitNoNumber of stations to return, default 5, max 10
fuel_typeNoWhich price ranks the stations: ordinaire = regular, super = premium, diesel = diesel. All three prices are returned either way.ordinaire
radius_kmNoSearch radius in km, default 10, max 30 (larger values are rejected)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • changedInput schema / properties / fuel_type / description
      Previous value: -"ordinaire = regular, super = premium"New value: +"Which price ranks the stations: ordinaire = regular, super = premium, diesel = diesel. All three prices are returned either way."
    • changedInput schema / properties / lat / description
      Previous value: -"Latitude (Quebec only: 44–63)"New value: +"Latitude in decimal degrees (Quebec: 44 to 63). Estimate it yourself from a postal code, address or landmark."
    • addedInput schema / properties / limit / description
      Added value: +"Number of stations to return, default 5, max 10"
    • changedInput schema / properties / lng / description
      Previous value: -"Longitude (Quebec only: -80 to -57)"New value: +"Longitude in decimal degrees (Quebec: -80 to -57). Estimate it yourself from a postal code, address or landmark."
    • changedInput schema / properties / radius_km / description
      Previous value: -"Search radius in km (max 30)"New value: +"Search radius in km, default 10, max 30 (larger values are rejected)"
    • addedInput schema / properties / sort / description
      Added value: +"value = price + 1¢/L per km of distance (default); price = cheapest first; distance = closest first"
  2. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, non-destructive, closed-world), so the description focuses on constraints the annotations can't express: a 10-station cap, a 30 km hard radius, and the absence of any geocoding tool. It doesn't describe error handling or what happens when zero stations match, which keeps it short of a 5.

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 purpose and default ranking, then constraints, then the alternative tool — a sensible order. It is somewhat long and repeats the value-ranking formula that also appears in the sort parameter description, so a small amount of text is redundant.

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?

With no output schema, the description compensates by enumerating the returned fields (name, brand, address, city, distance, all three fuel prices) and by disclosing the result cap and radius limit. It also closes the biggest workflow gap by warning that geocoding must be done by the agent itself.

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 the schema already documents every parameter including the sort penalty formula, the fuel_type enum, and the radius cap. The description restates the value-ranking rationale and adds the 'all three prices are returned either way' clarification, but adds little beyond the schema 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?

States a specific verb and resource ('List gas stations around a latitude/longitude in Quebec with current prices in ¢/L') plus the ranking modes. It explicitly distinguishes itself from get_city_prices by naming that sibling for whole-city summaries, so an agent can route between them 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?

Explicitly prescribes when to use each sort mode ('the default... the best answer to "where should I fill up"'), explains the sort=distance lookup pattern for finding a specific station or brand, and names get_city_prices as the alternative for city-wide summaries. It also states the when-not case: if no location is given, ask rather than guess.

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