Skip to main content
Glama
OilpriceAPI

OilPriceAPI

Official
by OilpriceAPI

Get Futures Price

opa_get_futures
Read-only

Fetch current front-month futures prices for key energy commodities such as Brent, WTI, natural gas, and carbon. Specify a commodity to retrieve its latest contract price.

Instructions

Get the latest front-month futures contract price for energy commodities. 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. For the forward curve returned for this account, use opa_get_futures_curve instead. 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. Changed1 schema field changedv3.0.0
    • removedInput schema / additionalProperties
      Removed value: -false
  3. 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"
      +]
  4. First observedv2.0.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already carry readOnlyHint=true and openWorldHint=true, covering the non-destructive and open-ended input nature. The description adds meaningful context by requiring an eligible account entitlement and clarifying that the API response is authoritative. It does not discuss return format, rate limits, or error handling, but for a simple read-only price tool this is a reasonable augmentation.

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

Conciseness5/5

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

Four sentences with zero waste: the first delivers the core action and scope, the second specifies acceptable inputs, the third routes to the correct alternative, and the fourth provides entitlement and authority context. The most critical information is front-loaded.

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 single-parameter, read-only price tool, the description covers purpose, input guidance, alternatives, entitlement, and authority. The only notable gap is the lack of an explicit description of the response shape, but the tool's simple purpose and the absence of an output schema make this a minor omission rather than a critical flaw.

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?

The schema description coverage is 100%, fully documenting the contract parameter with both canonical slugs and legacy compatibility inputs. The prose description repeats these same details without adding significant new meaning, so this dimension settles at the baseline 3 rather than higher.

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?

The description opens with a specific verb 'Get' and a precise resource: 'the latest front-month futures contract price for energy commodities.' It also lists the canonical instrument slugs, making the tool's scope concrete, and explicitly differentiates itself from the sibling opa_get_futures_curve by naming what that tool does instead.

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

Usage Guidelines5/5

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

Provides clear when-to-use guidance by naming opa_get_futures_curve as the alternative for forward curves and directing users to opa_get_plans for access and pricing confirmation. It also states the prerequisite 'eligible account entitlement' and explains that compatibility inputs are accepted, so an agent knows exactly how to route between the tool and its siblings.

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