Skip to main content
Glama

search_fuel_prices

Find nearby fuel stations by coordinates, sorted by lowest price for a chosen fuel type.

Instructions

Search for fuel stations near given coordinates, sorted by lowest price.

Args: lat: Latitude of the search center (-90 to 90). lng: Longitude of the search center (-180 to 180). radius_km: Search radius in kilometers (default from settings, max 25). fuel_type: Fuel type to sort by — "e5", "e10", or "diesel" (default "e10"). max_results: Maximum number of stations to return (default 10, max 50). ctx: MCP context (injected automatically by FastMCP).

Returns: List of station results with name, address, distance, and fuel 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": "search_fuel_prices"
  }
}

Input Schema

NameRequiredDescriptionDefault
latYes
lngYes
fuel_typeNoe10
radius_kmNo
max_resultsNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations, the description carries the full load, and it discloses meaningful behavior: results are ordered by lowest price, radius is capped at 25 km, and results are capped at 50. It does not state whether stations lacking prices for the requested fuel type are excluded or how ties are broken, but the core behavior is transparent.

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 a one-sentence summary, then a structured Args/Returns block, which is easy to scan. Minor waste: the fuel_type default 'e10' is repeated from the schema, and the ctx line is implementation noise for an agent.

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?

For a five-parameter search tool with an output schema, the description covers all inputs, their constraints, and the sort order, which is enough to call it correctly. Price units and handling of stations with missing prices are the only notable omissions.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate, and it does: it gives valid ranges for lat (-90 to 90) and lng (-180 to 180), the allowed fuel_type values ('e5', 'e10', 'diesel'), the 25 km radius ceiling, and the 10/50 max_results default and cap. This adds substantial meaning the bare schema does not convey.

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?

The first sentence states a specific verb ('Search'), resource ('fuel stations'), spatial constraint ('near given coordinates'), and ordering rule ('sorted by lowest price'). It is unambiguous what the tool returns, though with no sibling tools there is no differentiation to establish.

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 only implied: the agent must infer that this is the tool to call whenever it needs fuel prices around a location. There is no explicit when-to-use statement, no exclusions, and no alternatives named (none exist in the sibling list, so the gap is tolerable rather than harmful).

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

Deploy Server

Other Tools