Skip to main content
Glama

OilPriceAPI hosted energy data

Carrier Fuel Surcharges

energy_fuel_surcharge
Read-onlyIdempotent

Read LTL or parcel carrier fuel surcharge schedules (operation=rates) or calculate a shipment fuel surcharge from current DOE diesel bands (operation=calculate). Preserves effective dates, DOE diesel price and source. Account entitlement is enforced by OilPriceAPI.

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": {
      "operation": "<operation>",
      "mode": "<mode>",
      "per_page": "<per_page>"
    },
    "name": "energy_fuel_surcharge"
  }
}

Input Schema

NameRequiredDescriptionDefault
mpgNo
modeYesauto
milesNo
methodNo
regionNo
carrierNo
historyNo
per_pageYes
roundingNo
incrementNo
operationYesrates
step_rateNo
base_priceNo
service_levelNo
freight_chargeNo

Output Schema

NameRequiredDescriptionDefault
accessNo
datasetNo
messageNo
outcomeNo
handoff_urlYes
upgrade_urlNo
website_urlYes
availabilityNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and openWorldHint, so the safety profile is covered. The description adds two useful facts beyond that: effective dates and DOE diesel price/source are preserved in results, and 'Account entitlement is enforced by OilPriceAPI,' which is a real prerequisite an agent must anticipate. It omits pagination behavior for the rates listing and any rate-limit or failure-mode information.

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?

Two sentences, front-loaded, with the operation split stated first and no filler. The entitlement sentence is short and earns its place. Slightly denser use of the second sentence (provenance plus auth) could have been structured better, but nothing is wasted.

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?

An output schema exists, so return values need no explanation, and the annotations cover the safety profile. However, for a dual-operation tool with 15 parameters at 0% schema coverage, the description does not say which parameters apply to which operation or which are needed for a valid calculation, leaving a material gap in call correctness.

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

Parameters2/5

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

Schema description coverage is 0% across 15 parameters, so the description must carry the burden, and it explains only 'operation.' Parameters such as mode, method, mpg, miles, freight_charge, base_price, step_rate, increment, rounding, region, carrier, service_level, per_page and history are completely unexplained, leaving the agent to guess which of them belong to the calculate path versus the rates path. This is a significant shortfall against the 15-parameter surface.

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 uses specific verbs and resources: 'Read LTL or parcel carrier fuel surcharge schedules' and 'calculate a shipment fuel surcharge,' and it explicitly names the two operation values ('operation=rates' / 'operation=calculate'). This lets an agent distinguish the two internal modes without opening the schema. It does not explicitly contrast itself with any sibling, which keeps it below 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 Guidelines3/5

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

Usage guidance is present but implicit: the operation mapping tells the agent that 'rates' reads schedules while 'calculate' computes a shipment surcharge. There is no when-not guidance, no statement of which inputs are required for the calculate path, and no routing to any alternative tool. Adequate but with clear gaps.

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.