Skip to main content
Glama

Compare Fuel Prices

compare_fuel_prices
Read-onlyIdempotent

Compare current prices for one fuel type across 1-30 countries. Returns sorted table cheapest-first. Use it when someone asks which of two or more named countries has cheaper or more expensive fuel.

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": {
      "country_codes": "<country_codes>"
    },
    "name": "compare_fuel_prices"
  }
}

Input Schema

NameRequiredDescriptionDefault
localeNoLanguage the user writes in (en, ru, de, fr, es, pt, tr). Set it on every call: the answer and the interactive card are shown in this language and units; without it the card falls back to the app's interface language.
fuel_typeNoFuel type to compare. e.g. gasoline, diesel, lpg, cng, e85.diesel
country_codesYesArray of 1-30 ISO 3166-1 alpha-2 country codes to compare.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • changedInput schema / properties / country_codes / description
      Previous value: -"Array of 2-10 ISO 3166-1 alpha-2 country codes to compare."New value: +"Array of 1-30 ISO 3166-1 alpha-2 country codes to compare."
    • changedInput schema / properties / country_codes / maxItems
      Previous value: -10New value: +30
    • changedInput schema / properties / country_codes / minItems
      Previous value: -2New value: +1
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. Changed2 schema fields changed
    • removedInput schema / additionalProperties
      Removed value: -false
    • changedOutput schema / additionalProperties
      Previous value: -trueNew value: +{}
  3. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, so the safety profile is covered. The description adds result ordering (cheapest first) and the country-count ceiling, but says nothing about currency normalization, units, data freshness, or error behavior when a country code is invalid or unsupported.

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?

Three short sentences with zero filler: capability, return format, then usage condition, in that order. Every sentence carries distinct information and the most decision-relevant scope (country count) is front-loaded.

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?

An output schema exists, so the description is not obliged to explain return values, though it helpfully notes the sort order. For a read-only three-parameter comparison tool the definition is close to complete; the only real gap is the absence of any pointer to the single-country or cheapest-country siblings.

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 all three parameters, including the locale fallback behavior and fuel_type enum, are already documented in the schema. The description only restates 'one fuel type' and '1-30 countries', adding no new semantics, which makes the baseline 3 appropriate.

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?

States a specific verb and resource (compare prices) plus scope (one fuel type, 1-30 countries) and the return shape (sorted table, cheapest first). It implicitly separates itself from a global 'find_cheapest_fuel' by requiring two or more named countries, but it never names a sibling to contrast with, so it falls short of a 5.

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 a concrete triggering condition: a question about which of two or more named countries has cheaper fuel. That also implies when not to use it (single country, or open-ended 'where is cheapest' queries), but the alternatives are never named, leaving the agent to infer the 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.