Skip to main content
Glama
lzinga

US Government Open Data MCP

eia_petroleum

Retrieve current and historical petroleum price data including crude oil, gasoline, diesel, and heating oil from U.S. government sources to analyze energy market trends.

Instructions

Get petroleum/oil prices — crude oil spot prices (WTI, Brent), retail gasoline prices, diesel, heating oil.

Product codes:

  • EPCBRENT: Brent crude oil spot price

  • EPCWTI: WTI crude oil spot price

  • EMM_EPMRU_PTE_NUS_DPG: US regular gasoline retail

  • EMM_EPMPU_PTE_NUS_DPG: US premium gasoline retail

  • EMD_EPD2D_PTE_NUS_DPG: US diesel retail

  • EER_EPJK_PF4_RGC_DPG: US jet fuel spot price

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
productNoProduct type: 'crude' (default — WTI), 'gasoline', 'diesel', 'all'. Or a specific series ID like 'EPCWTI'
frequencyNoFrequency (default: monthly)
startNoStart date (YYYY-MM or YYYY-MM-DD). Default: 2 years ago
endNoEnd date (YYYY-MM or YYYY-MM-DD). Default: latest available
lengthNoMax rows to return (API max: 5000). Omit to let date range control volume.
offsetNoRow offset for pagination (use with length)
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It mentions what data is available but doesn't describe how the tool behaves: no information about rate limits, authentication requirements, data freshness, error handling, or response format. The description is purely about data content, not tool behavior.

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?

The description is appropriately concise and front-loaded: the first sentence clearly states the purpose, followed by a useful list of product codes. There's no wasted text, though it could be slightly more structured (e.g., separating purpose from examples).

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity (6 parameters, no output schema, no annotations), the description is minimally adequate. It covers what data is available but lacks crucial context about how to use the tool effectively, what to expect in return, and behavioral characteristics. The product code list is helpful but doesn't compensate for missing behavioral and usage guidance.

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?

The schema has 100% description coverage, so parameters are well-documented in the schema itself. The description adds value by listing specific product codes (EPCBRENT, EPCWTI, etc.) which helps users understand valid 'product' values beyond what the schema's description mentions. However, it doesn't provide additional context about parameter interactions or usage patterns.

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 description clearly states the tool's purpose: 'Get petroleum/oil prices' with specific examples of price types (crude oil spot prices, retail gasoline, diesel, heating oil). It distinguishes itself from sibling tools by focusing on petroleum data, but doesn't explicitly contrast with alternatives like 'eia_electricity' or 'eia_natural_gas' beyond the subject matter.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives. While it lists product codes, it doesn't mention when to choose this over other EIA tools (e.g., eia_electricity for electricity data) or other data sources. There's no context about prerequisites, limitations, or typical use cases.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/lzinga/us-government-open-data-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server