Skip to main content
Glama
OilpriceAPI

OilPriceAPI

Official
by OilpriceAPI

Get Refining & Trading Spreads

opa_get_spread
Read-only

Get refining and trading spreads: crack spreads, basis differentials, and blending/transport margins. Use to answer questions about 3-2-1 crack, refining margins, or regional price differences.

Instructions

Get refining and trading spreads: crack spreads (refining margin proxy), basis spreads (regional price differentials), and blending/transport margins. Use when the user asks about crack spreads, 3-2-1 crack, refining margins, basis differentials, or blend/transport margins. Requires an eligible account entitlement. Use opa_get_plans for current access and pricing; the API response is authoritative.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
typeYesSpread type: crack (refining crack spread, e.g. 3-2-1), basis (regional/grade price differential), or margin (blending/transport margin).

Schema Changelog

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

  1. Changed1 schema field changedv3.0.0
    • removedInput schema / additionalProperties
      Removed value: -false
  2. Addedv2.3.0

TDQS

A4.6/5.0
Behavior4/5

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

The annotations already mark the operation as read-only and open-world, lowering the bar. The description adds meaningful context by warning that an eligible account entitlement is required and that the API response is authoritative, which are non-obvious behavioral traits not visible in the schema or annotations.

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?

The description is compact: core purpose up front, followed by usage triggers, then access caveat and alternative. Every sentence earns its place and the structure is front-loaded for an agent scanning for relevance.

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 tool, the description covers purpose, semantics, triggers, access requirements, and where to route access/pricing questions. The only minor gap is that it does not describe the response shape, but with no output schema present, the phrase 'API response is authoritative' partially compensates and the scope is clearly bounded.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% and the parameter is a single enum with descriptions. The description still adds value by expanding each enum value into more concrete domain meaning: crack as refining margin proxy, basis as regional/grade price differential, and margin as blending/transport margin. This goes beyond merely restating the enum names.

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-resource pair — 'Get refining and trading spreads' — and then enumerates the exact categories: crack spreads, basis spreads, and blending/transport margins, with clarifying glosses like '3-2-1 crack' and 'regional price differentials.' This makes the tool's scope unmistakable and distinguishes it from price or market-overview siblings.

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 explicitly lists trigger phrasings ('crack spreads, 3-2-1 crack, refining margins, basis differentials, or blend/transport margins') and tells the agent to use opa_get_plans for access/pricing questions, with the API response as the authority. This is clear when-to-use and alternative routing, leaving little to inference.

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