Skip to main content
Glama

Gas Quebec: Quebec fuel prices

Get a city's current fuel prices

get_city_prices
Read-only

Current gas prices for one Quebec city: station count, minimum and average ¢/L for regular, premium and diesel, and the five cheapest stations for regular (name, address, price). Use it for "how much is gas in X", "cheapest gas in X" and comparing stations or brands within a city. Takes a city slug, not a region and not a place outside Quebec; an unknown slug returns an error, after which resolve it with search_locations.

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": {
      "city_slug": "<city_slug>"
    },
    "name": "get_city_prices"
  }
}

Input Schema

NameRequiredDescriptionDefault
city_slugYesCity slug: lowercase, no accents, hyphens (e.g. "montreal", "quebec", "trois-rivieres", "saint-jean-sur-richelieu"). Use search_locations or list_cities when unsure.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / city_slug / description
      Previous value: -"City slug from list_cities or search_locations, e.g. \"montreal\""New value: +"City slug: lowercase, no accents, hyphens (e.g. \"montreal\", \"quebec\", \"trois-rivieres\", \"saint-jean-sur-richelieu\"). Use search_locations or list_cities when unsure."
  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 declare readOnlyHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds genuinely non-obvious behavior beyond that: hard Quebec-only coverage, city-slug-not-region input constraint, and an error response for unknown slugs with a named recovery tool. Data freshness/refresh cadence is the one behavioral trait left unstated.

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 returned fields, then use cases, then constraints and failure handling — a logical order with no filler. The return-value enumeration is dense but justified because there is no output schema; the prose is a single long compound sentence rather than clearly separated points.

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 carries the full burden of describing returns and does so completely (counts, min/average, fuel grades, five cheapest stations with fields). Combined with the scope restriction, error behavior and recovery tool, an agent has everything needed to call it and interpret results; only data recency is missing.

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% and the single city_slug parameter is thoroughly documented in-schema with format and examples, so the baseline is 3. The description adds semantic meaning beyond the schema by stating the negative constraint (a city slug, not a region) and pointing to search_locations on failure, which is real guidance the schema alone does not convey.

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 (current gas prices for one Quebec city) and immediately enumerates the payload: station count, min/average ¢/L for regular, premium and diesel, plus the five cheapest regular stations. The geographic scope and granularity (city, not region) are stated up front, so an agent can distinguish it from city-agnostic or location-resolution tools.

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?

Gives concrete triggering intents ("how much is gas in X", "cheapest gas in X", comparing stations or brands within a city) and explicit exclusions (not a region, not outside Quebec). It also supplies a recovery path: an unknown slug errors, then resolve via search_locations. It stops short of saying when to prefer the cheaper-stations sibling over this tool, so it is clear context rather than full when/when-not routing.

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