Skip to main content
Glama
OilpriceAPI

OilPriceAPI

Official
by OilpriceAPI

Multi-Commodity Market Brief

opa_get_market_brief
Read-only

Get a multi-commodity market brief with spot prices, 24-hour changes, one-month forecasts, and key spreads in a single request. Add narrative for plain-English context on disruptions and indicators.

Instructions

Get a multi-commodity market brief: latest spot prices, 24h changes, 1-month forecasts (for Brent/WTI/Natural Gas), and notable spreads — for several commodities in ONE call. Use when the user wants a market snapshot, morning brief, or an at-a-glance read across multiple commodities. Set narrative: true to also get a plain-English summary plus market context (active supply disruptions, key economic indicators). Accepts natural language ('brent', 'us gas') or API codes. REQUIRES an API key (OILPRICEAPI_KEY); counts as 1 request. Per-account code limits apply and the API response is authoritative. For a single price use opa_get_price; for ongoing recurring monitoring use opa_create_price_subscription.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codesYesCommodity names or codes to include (e.g., ['brent', 'wti'] or ['BRENT_CRUDE_USD', 'NATURAL_GAS_USD']). The API returns the current account limit if exceeded.
narrativeNoIf true, also include a plain-English summary + market context (disruptions, indicators). Default: false (structured data only).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv3.2.4
    • changedInput schema / properties / codes / description
      Previous value: -"Commodity names or codes to include (e.g., ['brent', 'wti'] or ['BRENT_CRUDE_USD', 'NATURAL_GAS_USD']). Free tier allows up to 3."New value: +"Commodity names or codes to include (e.g., ['brent', 'wti'] or ['BRENT_CRUDE_USD', 'NATURAL_GAS_USD']). The API returns the current account limit if exceeded."
  2. Addedv3.2.0
  3. Removedv3.0.0
  4. Addedv2.3.0

TDQS

A4.5/5.0
Behavior5/5

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

Beyond readOnlyHint and openWorldHint annotations, the description discloses API key requirement (OILPRICEAPI_KEY), request counting ('counts as 1 request'), per-account code limits, and that the API response is authoritative. It also explains the narrative option adds plain-English context with disruptions and indicators. No contradiction with 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?

The description is well-structured, front-loading the purpose and scope, then usage guidance, then the optional narrative parameter, then requirements and alternatives. It is slightly dense, but every sentence contributes valuable routing or invocation 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?

For a tool with no output schema, the description lists what the brief includes (spot prices, 24h changes, forecasts, spreads) and clearly notes the narrative option, API key requirement, request cost, and limits. It is sufficiently complete for an agent to select and call the tool, though exact response structure is not detailed.

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?

Input schema coverage is 100%, so the baseline is 3. The description adds some clarity about natural language vs. API codes and the narrative behavior, but these mostly overlap with the schema's own descriptions. It does not meaningfully extend parameter meaning beyond schema.

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 and resource: 'Get a multi-commodity market brief: latest spot prices, 24h changes, 1-month forecasts... for several commodities in ONE call.' It clearly distinguishes this tool from siblings by explicitly contrasting it with opa_get_price and opa_create_price_subscription.

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?

It states exactly when to use it: 'Use when the user wants a market snapshot, morning brief, or an at-a-glance read across multiple commodities.' It also gives alternatives — 'For a single price use opa_get_price; for ongoing recurring monitoring use opa_create_price_subscription' — so the agent can route correctly.

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