Skip to main content
Glama

EIA diesel fuel surcharge

get_fuel_surcharge

[Truck fuel: EIA diesel surcharge] U.S. EIA weekly on-highway diesel for the U.S. or a PADD (default Rocky Mountain, PADD 4): price per gallon, week-over-week change, and per-mile surcharge max(0, current - base) / mpg, plus the EIA release date. Public weekly page, no API key. Cached until the next Monday/Tuesday release. Source: U.S. EIA. ?padd=4&base=5.5&mpg=6. $0.005 USDC. Paid: $0.005 USDC on Base, paid in-band via x402 MCP (@x402/mcp; _meta "x402/payment"). Also at GET https://micro-saas-agent.onrender.com/api/truck/fuel-surcharge.

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": {
      "base": "<base>",
      "mpg": "<mpg>"
    },
    "name": "get_fuel_surcharge"
  }
}

Input Schema

NameRequiredDescriptionDefault
mpgYes
baseYes
paddNo
passNoOptional GW8 day pass token (from buy_day_pass / POST /api/pass/day); skips per-call payment

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so: it discloses the data source (EIA), that no API key is needed, the cache refresh cadence, the exact surcharge formula max(0, current - base) / mpg, and the $0.005 USDC in-band x402 payment requirement. A calling agent knows the cost, freshness, and computation before invoking.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the useful payload (what you get, the formula, defaults) but written as a single dense run-on. The price is stated twice ('$0.005 USDC.' then 'Paid: $0.005 USDC on Base...') and the redundant title prefix plus the trailing full URL add clutter without adding decision-relevant information.

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?

For a 4-parameter tool with no annotations and no output schema, the description covers everything an agent needs: the returned fields are enumerated (price per gallon, WoW change, per-mile surcharge, EIA release date), the computation is spelled out, data currency is bounded by the cache note, and the payment mechanism is disclosed. Only the `padd` value format is under-specified.

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 only 25% (only `pass` is documented in-schema), so the description must compensate — and it does for the two required params, making clear that `base` is a dollars-per-gallon baseline, `mpg` is the vehicle efficiency divisor, and `padd` defaults to Rocky Mountain PADD 4, illustrated by the '?padd=4&base=5.5&mpg=6' example. Residual gap: the accepted format of `padd` (string, no enum — numeric ID vs. name like 'PADD4') is implied but never stated, and `pass` semantics live only in the schema.

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 set: U.S. EIA weekly on-highway diesel price for the U.S. or a PADD, plus week-over-week change, computed per-mile surcharge, and EIA release date. The bracket tag '[Truck fuel: EIA diesel surcharge]' and the explicit source make it unmistakable against the crypto/growth siblings, none of which touch fuel.

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?

Conveys prerequisites and context (public weekly page, no API key, cached until the next Monday/Tuesday release) and gives the direct HTTP fallback, but never states when to use this versus a paid-vs-pass path or names buy_day_pass as the route to a `pass` token. Usage is inferable from the domain rather than from explicit routing guidance.

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.