Skip to main content
Glama

OilPriceAPI hosted energy data

Futures Curve

energy_futures_curve
Read-onlyIdempotent

Read an authenticated energy or carbon forward curve, at most 12 contracts, plus front-to-back curve structure summary. Preserve contract month, trading date and expiration semantics. Missing expiration or source dates remain unreported. 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": {
      "instrument": "<instrument>",
      "limit": "<limit>"
    },
    "name": "energy_futures_curve"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitYes
instrumentYes

Output Schema

NameRequiredDescriptionDefault
accessNo
datasetNo
messageNo
outcomeNo
handoff_urlYes
upgrade_urlNo
website_urlYes
availabilityNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / instrument / enum
      Previous value: -[
      -  "brent",
      -  "wti",
      -  "natural-gas",
      -  "gasoil",
      -  "ttf-gas",
      -  "lng-jkm"
      -]New value: +[
      +  "brent",
      +  "wti",
      +  "natural-gas",
      +  "gasoil",
      +  "ttf-gas",
      +  "lng-jkm",
      +  "eua-carbon",
      +  "uk-carbon"
      +]
    • 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 establish read-only, idempotent, non-destructive, open-world behavior, so the description's job is to add context — which it does: authentication and account entitlement enforcement, a hard 12-contract cap, and a notable data caveat that missing expiration or source dates remain unreported. That caveat is genuinely useful behavioral disclosure an agent could not get from 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?

Four short sentences, front-loaded with the core action and scope, with no filler. 'Preserve contract month, trading date and expiration semantics' is the weakest line — jargon-heavy and only loosely actionable — but the rest earns its place.

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 values need no explanation, and annotations cover the safety profile. The description supplies auth, entitlement, and the 12-contract limit, which is most of what's needed; it leaves open whether the curve is delayed vs real-time and what an entitlement failure looks like.

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%, so the description must carry parameter meaning, and it only partly does: 'at most 12 contracts' clarifies limit (though redundantly with maximum=12 in the schema), and 'energy or carbon' hints at the instrument categories. It adds nothing about how the eight enum values map to curve types or what happens with a sparse curve.

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 names a specific verb and resource: 'Read an authenticated energy or carbon forward curve', and scopes it to 'at most 12 contracts, plus front-to-back curve structure summary'. That is enough to tell it apart from sibling price/history tools in spirit, though no sibling is named to make the boundary explicit.

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 is implied by 'forward curve' and 'front-to-back curve structure', and the auth/entitlement note signals a prerequisite. However, it never says when to prefer this over energy_history or energy_get_price, nor what the tool is not for, so the agent must infer the routing.

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.