Skip to main content
Glama

OilPriceAPI hosted energy data

Energy Price History

energy_history
Read-onlyIdempotent

Read one authenticated commodity's daily historical observations over at most 30 days and 100 rows, plus a server-computed summary derived strictly from returned observations. Accepts any catalog code. No pagination or anonymous history.

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": {
      "benchmark": "<benchmark>",
      "days": "<days>",
      "limit": "<limit>"
    },
    "name": "energy_history"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysYes
limitYes
benchmarkYes

Output Schema

NameRequiredDescriptionDefault
accessNo
datasetNo
messageNo
outcomeNo
handoff_urlYes
upgrade_urlNo
website_urlYes
availabilityNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • removedInput schema / properties / benchmark / enum
      Removed value: -[
      -  "BRENT_CRUDE_USD",
      -  "WTI_USD",
      -  "NATURAL_GAS_USD",
      -  "DIESEL_USD",
      -  "GASOLINE_USD",
      -  "HEATING_OIL_USD"
      -]
    • addedInput schema / properties / benchmark / pattern
      Added value: +"^[A-Z0-9_]{2,64}$"
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "access": {
      +      "enum": [
      +        "demo",
      +        "authenticated"
      +      ],
      +      "type": "string"
      +    },
      +    "availability": {
      +      "enum": [
      +        "available",
      +        "unavailable"
      +      ],
      +      "type": "string"
      +    },
      +    "dataset": {
      +      "type": "string"
      +    },
      +    "handoff_url": {
      +      "type": "string"
      +    },
      +    "message": {
      +      "type": "string"
      +    },
      +    "outcome": {
      +      "type": "string"
      +    },
      +    "upgrade_url": {
      +      "type": "string"
      +    },
      +    "website_url": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "website_url",
      +    "handoff_url"
      +  ],
      +  "type": "object"
      +}
  2. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, non-destructive, open-world, so the bar is lower; the description still adds real value by disclosing the hard caps (30 days, 100 rows), the absence of pagination, the authentication requirement, and the important detail that the summary is computed strictly from the returned observations rather than the full series. It does not say what happens when the caps truncate the requested window.

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 dense sentences, front-loaded with the capability and followed by constraints, with no filler. The packing is aggressive enough that the days/limit relationship gets lost, but every clause adds information.

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?

An output schema exists, so return shape needn't be described, and the description still notes the summary's derivation. For a three-parameter bounded read it is nearly complete, with the remaining gap being the interaction between the day window and the row cap and any error behavior for an invalid code.

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 description coverage is 0% for three required parameters, so the description must carry the meaning. It does clarify that benchmark accepts any catalog code (something the bare pattern ^[A-Z0-9_]{2,64}$ does not convey) and echoes the 30-day and 100-row bounds, but it never explains how days and limit interact or which one governs truncation.

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?

States a specific verb and resource: reads one authenticated commodity's daily historical observations, with an attached server-computed summary. The phrase 'any catalog code' plus the historical framing distinguish it implicitly from latest-price and catalog-search siblings, though no sibling is named explicitly.

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 context is implied (you want a bounded daily history for a single commodity) and exclusions are given ('No pagination or anonymous history'), but there is no explicit when-to-use-this-vs-alternative guidance, e.g. pointing to energy_get_latest or energy_analytics for other needs.

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.