Skip to main content
Glama
OilpriceAPI

OilPriceAPI

Official
by OilpriceAPI

Get Futures Curve

opa_get_futures_curve
Read-only

Retrieve futures forward-curve contracts for key energy commodities, including available contract months, settlement prices, and market-structure analysis. Requires eligible account entitlement.

Instructions

Get the futures forward-curve contracts returned for this account. Use canonical instrument slugs: brent, wti, gasoil, natural-gas, ttf-gas, lng-jkm, eu-carbon, or uk-carbon. Contract codes and older venue slugs remain compatibility inputs. Returns available contract months with settlement prices plus market-structure analysis. Requires an eligible account entitlement. Use opa_get_plans for current access and pricing; the API response is authoritative.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
contractNoCanonical instrument slug (recommended): brent, wti, gasoil, natural-gas, ttf-gas, lng-jkm, eu-carbon, or uk-carbon. Contract codes and legacy venue slugs remain accepted for compatibility (default: brent).brent

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Changed3 schema fields changedv3.2.4
    • changedInput schema / properties / contract / default
      Previous value: -"BZ"New value: +"brent"
    • changedInput schema / properties / contract / description
      Previous value: -"Futures contract code or slug: BZ/ice-brent = Brent crude, CL/ice-wti = WTI crude, ice-gasoil (G/QS) = ICE Gasoil, natural-gas (NG) = Natural Gas, ttf-gas (TTF) = European TTF natural gas, lng-jkm (JKM) = LNG JKM (Asia), eua-carbon (EUA) = EU carbon allowance, uk-carbon (UKA) = UK carbon allowance (default: BZ)"New value: +"Canonical instrument slug (recommended): brent, wti, gasoil, natural-gas, ttf-gas, lng-jkm, eu-carbon, or uk-carbon. Contract codes and legacy venue slugs remain accepted for compatibility (default: brent)."
    • changedInput schema / properties / contract / enum
      Previous value: -[
      -  "BZ",
      -  "CL",
      -  "ice-brent",
      -  "ice-wti",
      -  "G",
      -  "QS",
      -  "ice-gasoil",
      -  "NG",
      -  "natural-gas",
      -  "TTF",
      -  "ttf-gas",
      -  "JKM",
      -  "lng-jkm",
      -  "EUA",
      -  "eua-carbon",
      -  "UKA",
      -  "uk-carbon"
      -]New value: +[
      +  "brent",
      +  "wti",
      +  "BZ",
      +  "CL",
      +  "ice-brent",
      +  "ice-wti",
      +  "gasoil",
      +  "G",
      +  "QS",
      +  "ice-gasoil",
      +  "NG",
      +  "natural-gas",
      +  "TTF",
      +  "ttf-gas",
      +  "JKM",
      +  "lng-jkm",
      +  "eu-carbon",
      +  "EUA",
      +  "eua-carbon",
      +  "UKA",
      +  "uk-carbon"
      +]
  2. Addedv3.2.0
  3. Removedv3.0.0
  4. Changed2 schema fields changedv2.3.0
    • changedInput schema / properties / contract / description
      Previous value: -"Futures contract: BZ = Brent crude, CL = WTI crude (default: BZ)"New value: +"Futures contract code or slug: BZ/ice-brent = Brent crude, CL/ice-wti = WTI crude, ice-gasoil (G/QS) = ICE Gasoil, natural-gas (NG) = Natural Gas, ttf-gas (TTF) = European TTF natural gas, lng-jkm (JKM) = LNG JKM (Asia), eua-carbon (EUA) = EU carbon allowance, uk-carbon (UKA) = UK carbon allowance (default: BZ)"
    • changedInput schema / properties / contract / enum
      Previous value: -[
      -  "BZ",
      -  "CL"
      -]New value: +[
      +  "BZ",
      +  "CL",
      +  "ice-brent",
      +  "ice-wti",
      +  "G",
      +  "QS",
      +  "ice-gasoil",
      +  "NG",
      +  "natural-gas",
      +  "TTF",
      +  "ttf-gas",
      +  "JKM",
      +  "lng-jkm",
      +  "EUA",
      +  "eua-carbon",
      +  "UKA",
      +  "uk-carbon"
      +]
  5. First observedv2.0.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, and the description aligns with those (a 'Get' operation). Beyond annotations, it adds real behavioral context: the account-entitlement requirement, backward-compatibility behavior for 'contract codes and older venue slugs,' the return composition, and the authority caveat that 'the API response is authoritative.' Not quite a 5 because error behavior when entitlement is missing is not disclosed.

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 front-loaded with the core purpose and every sentence earns its place: purpose, input guidance, compatibility note, return content, prerequisite, and alternative routing. Minor inefficiencies exist: the canonical-slug sentence duplicates the schema parameter description, and the final sentence packs two distinct ideas (routing to opa_get_plans and API authoritativeness) into one clause.

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?

For a low-complexity tool (1 optional parameter, no output schema, no nested objects), the description covers purpose, return values, accepted inputs, compatibility behavior, entitlement prerequisite, and an alternative tool. The remaining gaps are minor: what happens if the account lacks entitlement (error vs. empty response) and how many contract months are returned. Overall it is near-complete given the annotations already cover read-only and open-world semantics.

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 100%, so the baseline is 3. The tool description restates the canonical slugs ('brent, wti, gasoil, natural-gas, ttf-gas, lng-jkm, eu-carbon, or uk-carbon') and compatibility inputs, which largely duplicates the schema's own parameter description ('legacy venue slugs remain accepted for compatibility'). No new syntax, formatting, or behavioral nuance is added beyond what the schema already provides.

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 states a specific verb and resource: 'Get the futures forward-curve contracts returned for this account.' The 'forward-curve' qualifier and account scoping help distinguish it from generic siblings like opa_get_futures, and the return content ('available contract months with settlement prices plus market-structure analysis') further specifies the purpose. However, it stops short of explicitly contrasting itself with the closest sibling opa_get_futures.

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

Usage Guidelines4/5

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

There is explicit routing: 'Use opa_get_plans for current access and pricing; the API response is authoritative,' which names an alternative and the condition to switch. It also adds the prerequisite 'Requires an eligible account entitlement.' It does not, however, give when-not-to-use guidance relative to the nearest sibling opa_get_futures or data-history alternatives like opa_get_history.

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

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/OilpriceAPI/mcp-server'

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