Skip to main content
Glama
OilpriceAPI

OilPriceAPI

Official
by OilpriceAPI

Get Refining & Trading Spreads

opa_get_spread
Read-only

Retrieve crack spreads (3-2-1), basis differentials, and blending margins to assess refining profitability and regional pricing gaps. Get the data needed for trading analysis.

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 the Professional plan ($99/mo) or higher.

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).
Behavior4/5

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

Annotations already declare readOnlyHint and openWorldHint, so the safe, read-only nature is covered. The description adds valuable behavioral context by specifying the Professional plan ($99/mo) requirement and clarifying the semantics of 'basis' as regional price differentials, going beyond the schema.

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?

Three short sentences efficiently cover purpose, usage triggers, and plan restriction. Each sentence adds distinct value with no redundancy or filler.

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 one-parameter tool with full schema coverage and safe annotations, the description is largely complete. It lacks explicit return format details, but this is not critical for a simple list-like lookup, and the openWorldHint annotation covers potential data variability.

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?

The schema already documents the 'type' parameter with enum and descriptions, so the baseline is 3. The description enhances meaning by providing real-world equivalents like '3-2-1 crack' and refining margin proxy, which helps an agent map user intent to the correct enum value.

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 clearly states the tool's function with a specific verb and resource: 'Get refining and trading spreads'. It enumerates the three spread types (crack, basis, margin) and distinguishes itself from sibling price tools by focusing on spreads rather than absolute prices.

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?

Explicit usage guidance is provided: 'Use when the user asks about crack spreads, 3-2-1 crack, refining margins, basis differentials, or blend/transport margins.' This directly tells the agent when to select this tool over alternatives, and the plan requirement adds a clear prerequisite.

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

Install Server

Other Tools

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