Skip to main content
Glama

Us Fuel Price

us_fuel_price
Read-onlyIdempotent

US gas station prices: the weekly national average retail pump price per gallon of regular, midgrade or premium gasoline, or diesel, from the U.S. Energy Information Administration's Weekly Retail Gasoline and Diesel Prices survey. Answers "current average US gas price", "national average price of regular unleaded", "how much is a gallon of gas", "diesel price at the pump". Pass fuel "gasoline" with grade (regular is the default, the national headline figure) or fuel "diesel"; area defaults to the US average. Returns the latest week first with the series name, so the grade and area are stated in every answer.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "us_fuel_price"
  }
}

Input Schema

NameRequiredDescriptionDefault
endNoLatest week to include, YYYY-MM-DD (optional).
areaNo"US" (default, national average), "all" (every region EIA reports), or an EIA area code such as "R10" (East Coast) or "SCA" (California).
fuelNoFuel: "gasoline" (default) or "diesel".
gradeNoGasoline grade: "regular" (default, the national headline price), "midgrade", "premium", or "all" (all grades combined). Ignored for diesel.
startNoEarliest week to include, YYYY-MM-DD (optional; default the most recent 24 weeks).
_apiKeyYesEIA API key

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / grade / description
      Previous value: -"Gasoline grade: \"regular\" (default — the national headline price), \"midgrade\", \"premium\", or \"all\" (all grades combined). Ignored for diesel."New value: +"Gasoline grade: \"regular\" (default, the national headline price), \"midgrade\", \"premium\", or \"all\" (all grades combined). Ignored for diesel."
  2. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive, openWorld), so the lower bar applies. The description still adds useful behavior: results come latest week first and each row carries the series name so grade and area are self-describing — context an agent cannot get from the annotations.

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-loads what the tool is and where the data comes from, then covers defaults and return shape. The run of quoted user phrasings is a little verbose but arguably earns its place by mapping natural questions to the correct invocation.

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?

With no output schema, the description usefully states the return ordering and that the series name is included. It omits currency (USD) and whether history is paginated, minor gaps for a read-only lookup that takes an API key supplied via schema.

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 coverage is 100%, so every parameter is documented in the structured field. The description largely restates it (regular as default/headline, grade ignored for diesel, area defaulting to US), adding little new syntax or meaning. Baseline 3 is correct when the schema does the work.

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?

Names a specific resource and metric: the weekly national average retail pump price per gallon for regular, midgrade, premium gasoline and diesel, sourced from the EIA Weekly Retail Gasoline and Diesel Prices survey. An agent can tell this is a fuel-price lookup rather than an EIA series browser or electricity/gas-utility 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?

Gives concrete user phrasings the tool answers ('current average US gas price', 'how much is a gallon of gas') and states the default path: fuel 'gasoline' with optional grade, area defaulting to US average. It does not name or exclude alternatives such as eia_series or eia_petroleum, so an agent must infer when to prefer those.

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.