energyscope-mcp
v2.16.0EnergyScope MCP Server — AI agent tools for energy market data and analytics
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
search
Search for energy data series by keyword OR by series-ID prefix. KEYWORD MODE (no dot, or has spaces): Matches words against series_id, name, and units. Multi-word queries are AND-combined. Useful for "crude oil", "gasoline storage PADD 1", etc. PREFIX MODE (contains dot, no spaces): Returns all series whose series_id starts with the given string. Use this to browse a dataset family once you know its prefix. Returns series_id, name, frequency (D/W/M/A), and units. Examples: search("WTI crude oil") # keyword search("ga…
| Parameter | Type | Description |
|---|---|---|
query * | string | |
limit | integer |
list_series
List all series IDs in a dataset or matching a prefix. Discovery tool — browse what's available without keyword guessing. Feed the results directly into correlate_all() or other multi-series tools. Args: dataset: Dataset name (PET, NG, ICE, SHIP, CFTC, MACRO, OILEQ, GAS, FRED, ECB, etc.) prefix: Series ID prefix (e.g. "ICE.BRENT", "CFTC.WTI", "PET.WCES") limit: Max results (default 50) Examples: list_series(dataset="SHIP") # all shipping series list_series(prefix="ICE.BRENT.M") # all M1-M12 constant-maturity list…
| Parameter | Type | Description |
|---|---|---|
dataset | ||
limit | integer | |
prefix |
upcoming_events
Show upcoming energy market catalyst dates — EIA releases, CFTC positioning, Fed meetings, etc. — so you can position around them. Categories: "EIA" (weekly petroleum/NG, monthly STEO), "CFTC" (weekly COT), "API" (weekly stocks), "FED" (FOMC), "OPEC" (monthly report + meetings), "IEA" (monthly OMR), "MACRO" (NFP, CPI). Default: all categories. Args: days: Lookahead window (default 14) categories: Filter to subset (default all)
| Parameter | Type | Description |
|---|---|---|
categories | ||
days | integer |
save_watchlist
Save a named basket of series IDs to reuse across tools. Once saved, load with get_watchlist(name) and feed into report(), correlate_all(), etc. Useful for recurring workflows (e.g. 'oil_daily', 'gas_dashboard', 'my_refiners'). Args: name: Short identifier (letters/digits/underscore/hyphen) series_ids: List of series IDs to save description: Optional context
| Parameter | Type | Description |
|---|---|---|
name * | string | |
series_ids * | array | |
description | string |
get_watchlist
Retrieve a saved watchlist by name. Returns its series IDs + description.
| Parameter | Type | Description |
|---|---|---|
name * | string |
list_watchlists
List all saved watchlists on the server.
delete_watchlist
Delete a saved watchlist by name.
| Parameter | Type | Description |
|---|---|---|
name * | string |
trace
Check a draft against this session's tool results: which figures and dates came from a tool. Run this on a report or an answer BEFORE you send or save it. It lists every figure and date in the draft that appears in no tool result of this session (a figure you worked out, converted, remembered or mistyped), and the ones matched only weakly (fewer than three significant digits, or found only in a bulk pull). For each unmatched figure: fetch it with a tool, or take it out, or say in the text that it is your own arithmetic. Level one only. A match means the figure appears…
| Parameter | Type | Description |
|---|---|---|
draft | ||
ledgers | ||
path |
save_report_run
Save a generated report run with HTML output, key-metric snapshot, and the prompt used. Use this AFTER generating a report so the next run can compare against this one and narrate what changed. The snapshot should contain key metrics as a flat dict (e.g. {"wti": 104.69, "brent": 121.88, "brent_wti_spread": -17.19, "wti_z_score": 2.1}). Args: name: Report identifier (e.g. "morning", "weekly_eia", "quarterly") html: The full HTML report content snapshot: Dict of key metrics for diff comparison (optional but recommended) prompt: The prompt used to…
| Parameter | Type | Description |
|---|---|---|
html * | string | |
name * | string | |
ledgers | ||
prompt | ||
publish | boolean | |
snapshot |
previous_report
Retrieve a previous report run — HTML, snapshot, prompt, and timestamp. Use this BEFORE generating a new report. Read the previous report to understand yesterday's emphasis, then narrate what changed in today's report. The snapshot is the easy diff target — compare each key metric. Args: name: Report identifier offset: 0 = most recent (default), 1 = second most recent, etc.
| Parameter | Type | Description |
|---|---|---|
name * | string | |
offset | integer |
compare_runs
Compute structured diff between two report runs (latest vs N-back). Returns: - Numeric changes (abs + pct delta) and categorical changes (before/after) for keys - Added/removed keys (schema evolution) - Signal diff: which derived_signals appeared or disappeared between runs - Contradiction diff: which contradictions activated or resolved The signal/contradiction diff is automatic — both snapshots are passed through derived_signals server-side and the active sets are compared. This is the "regime shift" detection in one tool call. Use this to nar…
| Parameter | Type | Description |
|---|---|---|
name * | string | |
lookback | integer | |
min_pct_change |
derived_signals
Classify a flat metrics dict into named boolean oil-market signals + contradictions (v2). Three modes: 1. Classification (default): pass `metrics` → get back active signals + contradictions 2. History-aware: pass `metrics` AND `prev_metrics` → get transition-enriched results (new_firing / stopped_firing / intensifying / easing / still_firing per signal) 3. Schema introspection: pass `schema=True` → get back canonical key names per signal, the alias map, and contradiction definitions. v2 enriched response shape: - Each signal: {id, activ…
| Parameter | Type | Description |
|---|---|---|
metrics | ||
prev_metrics | ||
schema | boolean |
list_report_runs
List saved report runs. Without name: shows all reports with run counts. With name: shows recent timestamps for that report. Args: name: Optional report name to filter by limit: Max runs to return per report (default 20)
| Parameter | Type | Description |
|---|---|---|
limit | integer | |
name |
dataset_info
Fetch the full markdown detail page for a specific dataset. Returns the per-dataset reference page (tables, ID structure, flow/product/unit codes, use cases, notes). Data is served live from the Flight server so additions and corrections are visible immediately — no client release required. Call with no name to get the list of available datasets. Args: name: Dataset name (lowercase, e.g. "eurostat", "pet", "ng", "elec", "cftc", "ice", "fred", "ecb", "jodi", "worldbank", "baker_hughes", "ship", "intl", "pet_imports", "steo"). Omit to…
| Parameter | Type | Description |
|---|---|---|
name |
describe
Everything about ONE series on one card: what it is, its history, how it is kept up to date, whether it is healthy, and what uses it. Use this before relying on an unfamiliar series, when a value looks wrong, or to answer "where does this come from / when does it update / is it stale". Returns: - identity: name, units, frequency, dataset, source, description - health verdict with the reasons (stale data, last pipeline run failed, schedule switched off) - latest value, previous value and change, the last few observations - coverage: first → la…
| Parameter | Type | Description |
|---|---|---|
series_id * | string | |
recent | integer |
key_series
Cheat sheet of the most important series IDs across all datasets. Many key series are hard to discover by keyword search — this tool surfaces them directly. The full catalog is fetched live from the Flight server (hot-deployable); each row ends with the series' live latest value and period, or [STALE: ...] / [NOT FOUND]. An in-package fallback (no live values) is used if the server is unreachable. For everything about one series, use describe(series_id). Categories typically include: crude, crude_grades, crude_imports, products, gas, stocks, production, refining,…
| Parameter | Type | Description |
|---|---|---|
category |
spot_check
Live price check — real-time quotes from Yahoo Finance via the Flight server. Use for breaking news events when you need current prices, not yesterday's close. Default tickers: WTI, Brent, Heating Oil, RBOB Gasoline, Henry Hub, Gold, DXY, VIX, BWET tanker ETF. Returns price, daily change, % change, and timestamp for each ticker. Args: tickers: Optional list of Yahoo Finance tickers (e.g. ["CL=F", "BZ=F", "GC=F"]). Omit for the default energy+macro watchlist.
| Parameter | Type | Description |
|---|---|---|
tickers |
get_data
Fetch time series data for one or more series. Args: series_ids: List of series IDs (e.g. ["PET.RWTC.D", "PET.RBRTE.D"]) start: Start date YYYY-MM-DD (optional, defaults to all history) end: End date YYYY-MM-DD (optional, defaults to latest) watchlist: Name of a saved watchlist (alternative to series_ids) Returns data as a table with columns: series_id, period, value. Examples: get_data(["PET.RWTC.D"], "2024-01-01", "2024-12-31") get_data(["PET.RWTC.D", "PET.RBRTE.D"], "2020-01-01") get_data(watchlist="oil_daily")
| Parameter | Type | Description |
|---|---|---|
end | ||
series_ids | ||
start | ||
watchlist |
latest
Get the latest (most recent) value for one or more series. Faster than get_data — returns just the last known data point per series, plus the series name and units. Args: series_ids: List of series IDs include_coverage: If True, also return the full date coverage (first_period → latest period + total data points). Slightly slower as it scans year partitions. Use when you need to know how far back the series goes. watchlist: Use a saved watchlist (alternative to series_ids) Examples: latest(["PET.RWTC.D"])…
| Parameter | Type | Description |
|---|---|---|
include_coverage | boolean | |
series_ids | ||
watchlist |
browse
Browse the EIA data category tree. Call with no arguments to see top-level categories. Call with a category_id to see its children and series. Use this to explore what data is available when you don't know the exact series ID. Examples: browse() # Top-level categories (Petroleum, Natural Gas, etc.) browse(714755) # Children of a specific category
| Parameter | Type | Description |
|---|---|---|
category_id |
datasets
List available datasets and their status (loaded, rows, series count). Shows what data is currently available on the server.
feedback
Submit feedback, bug report, or feature request to the EnergyScope team. Use this whenever you encounter an issue, have a suggestion, or want to flag something for improvement. Messages are written to a central feedback log on the server and the team is notified immediately. Args: message: The feedback text (what's wrong / what would help / what you tried). category: One of "bug", "feature", "data-gap", "ux", "question", "general". context: Optional context — tool name, series IDs, error message, etc. user: Identifier for who you are (e.g. "a…
| Parameter | Type | Description |
|---|---|---|
message * | string | |
category | string | |
context | string | |
user | string |
health
Check server health and connection status. Also reports MCP client version and whether a newer version is available on PyPI.
check_for_updates
Check whether a newer version of energyscope-mcp is available. Compares the installed client version to the latest release on the server. Shows how many releases behind you are and how to upgrade.
whats_new
Show the changelog for recent releases of energyscope-mcp. Useful after updating, or to see what's in a version you don't yet have. Args: since: Show releases strictly newer than this version (default: your installed version) limit: Max number of releases to show (default 5)
| Parameter | Type | Description |
|---|---|---|
limit | integer | |
since |
forecast
Multi-factor forecast using XGBoost/ElasticNet/Ridge/OLS regression. Auto-forecasts predictor series with ARIMA and/or Prophet. Use pinned to fix predictor values for scenario analysis. Args: series_ids: All series (target + predictors), e.g. ["PET.RWTC.D", "PET.WCESTUS1.W"] target: The series to forecast, e.g. "PET.RWTC.D" horizon: Periods ahead (default 12) method: xgboost (default), elasticnet, ridge, ols engine: Predictor engine — both (default), arima, prophet pinned: Fix predictors at specific values for scenarios, e.g. {"PET…
| Parameter | Type | Description |
|---|---|---|
series_ids * | array | |
target * | string | |
backtest | boolean | |
backtest_splits | integer | |
end | ||
engine | string | |
horizon | integer | |
method | string | |
pinned | ||
start |
arima
Univariate auto-ARIMA forecast with confidence intervals. Args: series_id: Series to forecast, e.g. "PET.RWTC.D" horizon: Periods ahead (default 12) start: Start date (YYYY-MM-DD) end: End date
| Parameter | Type | Description |
|---|---|---|
series_id * | string | |
end | ||
horizon | integer | |
start |
prophet
Facebook Prophet forecast with holidays and seasonality. Args: series_id: Series to forecast, e.g. "PET.WCESTUS1.W" horizon: Periods ahead (default 12) holidays: Country code for holidays (US, UK, DE, FR) seasonality: additive (default) or multiplicative start: Start date (YYYY-MM-DD) end: End date
| Parameter | Type | Description |
|---|---|---|
series_id * | string | |
end | ||
holidays | ||
horizon | integer | |
seasonality | string | |
start |
theta
Theta method forecast — M3 competition winner. Fast, robust benchmark. Args: series_id: Series to forecast, e.g. "PET.RWTC.D" horizon: Periods ahead (default 12) start: Start date (YYYY-MM-DD) end: End date backtest: Run 1-step rolling-origin skill check on last N points vs naive (default False) backtest_n: How many backtest splits (default 10)
| Parameter | Type | Description |
|---|---|---|
series_id * | string | |
backtest | boolean | |
backtest_n | integer | |
end | ||
horizon | integer | |
start |
forecast_ensemble
Run ARIMA + Prophet + Theta on the same series and compare. Forecast ensemble spread is itself a signal: when methods agree, confidence is higher; when they disagree the uncertainty IS the finding. Shows each method's forecast for periods h=1,3,6,12 alongside min/median/max across methods. Args: series_id: Series to forecast horizon: Periods ahead (default 12) start: Start date (YYYY-MM-DD) end: End date
| Parameter | Type | Description |
|---|---|---|
series_id * | string | |
end | ||
horizon | integer | |
start |
breakpoints
Detect structural breaks / regime changes in a series. Args: series_id: Series to analyse, e.g. "PET.RWTC.D" min_shift: Minimum shift magnitude to include (e.g. 5 for $5+) start: Start date (YYYY-MM-DD) end: End date annotate: If True, cross-reference each breakpoint with bundled energy market events (OPEC cuts, Russia invasion, COVID, Fed hikes, etc.). Attaches the nearest event within event_window_days to each breakpoint. event_window_days: Max days between breakpoint and event to count (default 14)
| Parameter | Type | Description |
|---|---|---|
series_id * | string | |
annotate | boolean | |
end | ||
event_window_days | integer | |
min_shift | number | |
start |
gap_breakpoints
Find when the GAP between two series (a - b) changed level. Aligns the two series on common dates, takes a - b and finds the dates where it steps to a new level (same PELT mean-shift engine as `breakpoints`, tuned for short segments and robust to one-day spikes). Returns each segment (start, end, days, median, mean, min, max) and each break date with the level before and after. Example: gap_breakpoints("PET.RWTC.D", "NYMEX.WTI.FRONT.D", "2026-07-20", ...) (WTI spot minus front futures) finds the steps at the US crude trade-month rolls: about 1.56 -> 1.21 -> 6.75 -…
| Parameter | Type | Description |
|---|---|---|
series_a * | string | |
series_b * | string | |
end | ||
min_shift | number | |
start |
jumps
Find suspect values: one-day jumps that reverse, and values that repeat exactly. On one series, or on the gap series_id - series_b when series_b is given. (a) a one-day move bigger than k x the typical daily move (median absolute daily change over the window) that is mostly undone within the next 1-2 observations; (b) 3 or more consecutive observations with exactly the same value (on a gap: the same gap). `outliers` tests levels and misses both. Example: jumps("PET.RWTC.D") flags 2026-09-25 (85.23 between 95.88 and 99.37); jumps("PET.RWTC.D", "NYMEX.WTI.FRONT.D")…
| Parameter | Type | Description |
|---|---|---|
series_id * | string | |
end | ||
k | number | |
series_b | ||
start |
stats
Descriptive statistics for a series. Args: series_id: Series to analyse, e.g. "PET.RWTC.D" start: Start date (YYYY-MM-DD) end: End date
| Parameter | Type | Description |
|---|---|---|
series_id * | string | |
end | ||
start |
volatility
Rolling + GARCH(1,1) conditional volatility, annualised. Args: series_id: Series to analyse, e.g. "PET.RWTC.D" window: Rolling window (default 20) start: Start date (YYYY-MM-DD) end: End date
| Parameter | Type | Description |
|---|---|---|
series_id * | string | |
end | ||
start | ||
window | integer |
correlation
Pairwise correlation matrix for multiple series. Args: series_ids: List of series IDs (at least 2) start: Start date (YYYY-MM-DD) end: End date
| Parameter | Type | Description |
|---|---|---|
series_ids * | array | |
end | ||
start |
what_correlates
Rank the WHOLE universe of series by correlation with a target series. One-vs-all screen across every sufficiently-covered series (monthly returns, 2015-present). Answers "what moves with X?" — e.g. what_correlates("PET.RWTC.D") surfaces WTI futures, Brent, and refined products; with multiple datasets indexed it reveals cross-domain links (crude<->power<->gas<->FX). Unlike correlation(), which takes a supplied list, this screens the entire catalog. Requires the Flight server started with ES_CORR_UNIVERSE=1. Args: series: target series ID, e.g. "PET.RWTC.…
| Parameter | Type | Description |
|---|---|---|
series * | string | |
top | integer |
unit_root
Unit root tests — is this series stationary? (ADF, KPSS, Phillips-Perron) Args: series_id: Series to test, e.g. "PET.RWTC.D" test: adf, kpss, pp, or all (default) start: Start date (YYYY-MM-DD) end: End date
| Parameter | Type | Description |
|---|---|---|
series_id * | string | |
end | ||
start | ||
test | string |
cointegration
Cointegration test — do these series move together long-term? Args: series_ids: List of series IDs (at least 2) method: johansen (default) or engle-granger start: Start date (YYYY-MM-DD) end: End date
| Parameter | Type | Description |
|---|---|---|
series_ids * | array | |
end | ||
method | string | |
start |
transform
Time series transform: diff, pct, log, logdiff, lag, ma, ema, cumsum, zscore. Args: series_id: Series to transform operation: diff, pct, log, logdiff, lag, ma, ema, cumsum, zscore window: Window size for ma/ema/lag (default 5) start: Start date end: End date
| Parameter | Type | Description |
|---|---|---|
series_id * | string | |
end | ||
operation | string | |
start | ||
window | integer |
smooth
Exponential smoothing forecast (single, double, Holt-Winters, ETS auto). Args: series_id: Series to forecast horizon: Periods ahead (default 12) method: single, double, holt-winters, ets (default) start: Start date end: End date
| Parameter | Type | Description |
|---|---|---|
series_id * | string | |
end | ||
horizon | integer | |
method | string | |
start |
hp_filter
Boosted Hodrick-Prescott filter — trend vs cycle decomposition. Args: series_id: Series to decompose start: Start date end: End date
| Parameter | Type | Description |
|---|---|---|
series_id * | string | |
end | ||
start |
bandpass
Band-pass filter — extract cycles at specific frequencies (Baxter-King or Christiano-Fitzgerald). Args: series_id: Series to filter low: Min cycle length in periods (default 6) high: Max cycle length (default 32) method: bk or cf (default) start: Start date end: End date
| Parameter | Type | Description |
|---|---|---|
series_id * | string | |
end | ||
high | integer | |
low | integer | |
method | string | |
start |
seasonality
Seasonal decomposition — trend, seasonal, and residual components. Args: series_id: Series to decompose start: Start date end: End date
| Parameter | Type | Description |
|---|---|---|
series_id * | string | |
end | ||
start |
interpolate
Fill missing values using interpolation (linear, log-linear, spline, cardinal). Args: series_id: Series to interpolate method: linear (default), log-linear, spline, cardinal start: Start date end: End date
| Parameter | Type | Description |
|---|---|---|
series_id * | string | |
end | ||
method | string | |
start |
outliers
Detect outliers using Z-score, IQR, or Isolation Forest. Args: series_id: Series to analyse method: zscore (default), iqr, isolation_forest threshold: Detection threshold (default 3.0) start: Start date end: End date
| Parameter | Type | Description |
|---|---|---|
series_id * | string | |
end | ||
method | string | |
start | ||
threshold | number |
returns
Log returns, cumulative returns, and drawdown analysis. Args: series_id: Series to analyse start: Start date end: End date
| Parameter | Type | Description |
|---|---|---|
series_id * | string | |
end | ||
start |
elastic_net
Elastic net regression — variable selection for predicting a target series. Args: series_ids: All series (target + predictors) target: Series to predict alpha: Regularisation strength (default 1.0) start: Start date end: End date
| Parameter | Type | Description |
|---|---|---|
series_ids * | array | |
target * | string | |
alpha | number | |
end | ||
start |
quantile_reg
Quantile autoregression — conditional quantile estimates for tail risk analysis. Args: series_id: Series to analyse lags: Number of lags (default 1) start: Start date end: End date
| Parameter | Type | Description |
|---|---|---|
series_id * | string | |
end | ||
lags | integer | |
start |
bubble_test
GSADF test for explosive bubbles (Phillips, Shi & Yu 2015). Args: series_id: Series to test start: Start date end: End date
| Parameter | Type | Description |
|---|---|---|
series_id * | string | |
end | ||
start |
lpirf
Local Projection Impulse Response (Jordà 2005) — non-parametric IRF. Args: series_ids: All series involved (shock + response + controls) shock: Shock series ID response: Response series ID horizons: Number of horizons (default 20) start: Start date end: End date
| Parameter | Type | Description |
|---|---|---|
response * | string | |
series_ids * | array | |
shock * | string | |
end | ||
horizons | integer | |
start |
midas
MIDAS mixed-frequency volatility — use high-freq data to forecast low-freq vol. Args: low_freq_series: Low-frequency series (e.g. monthly) high_freq_series: High-frequency series (e.g. daily) start: Start date end: End date
| Parameter | Type | Description |
|---|---|---|
high_freq_series * | string | |
low_freq_series * | string | |
end | ||
start |
var
Vector Autoregression with impulse response and Granger causality. Args: series_ids: List of series IDs (at least 2) lags: Lag order (None = auto-select by AIC) start: Start date end: End date
| Parameter | Type | Description |
|---|---|---|
series_ids * | array | |
end | ||
lags | ||
start |
acf
Autocorrelation (ACF), partial autocorrelation (PACF), and Ljung-Box Q-stats. Args: series_id: Series to analyse nlags: Number of lags (default 20) start: Start date end: End date
| Parameter | Type | Description |
|---|---|---|
series_id * | string | |
end | ||
nlags | integer | |
start |
spread
Spread analysis between two series — spread, z-score, percentile, half-life. Args: series_a: First series (e.g. PET.RBRTE.D for Brent) series_b: Second series (e.g. PET.RWTC.D for WTI) start: Start date end: End date
| Parameter | Type | Description |
|---|---|---|
series_a * | string | |
series_b * | string | |
end | ||
start |
rolling_correlation
Rolling window correlation between two series — shows how relationships shift over time. Args: series_a: First series series_b: Second series window: Rolling window size (default 52) start: Start date end: End date
| Parameter | Type | Description |
|---|---|---|
series_a * | string | |
series_b * | string | |
end | ||
start | ||
window | integer |
chart
Chart one or more series — ASCII sparkline (default) or SVG for reports. Args: series_ids: Series to chart start: Start date end: End date width: ASCII chart width / SVG width scale factor (default 30) format: "ascii" (default, inline text) or "svg" (embeddable vector chart) watchlist: Use a saved watchlist (alternative to series_ids)
| Parameter | Type | Description |
|---|---|---|
end | ||
format | string | |
series_ids | ||
start | ||
watchlist | ||
width | integer |
snd_balance
US crude oil supply & demand balance with scenario analysis. Computes: Supply (production + imports) - Demand (refinery input + exports) = Stock Change. Forecasts each component with Theta, or use pinned values for scenarios. Args: production: Production series (default US weekly) imports: Imports series exports: Exports series refinery_input: Refinery input series (proxy for demand) stocks: Stocks series (for comparison) adjustments: Optional adjustment series pinned: Pin any component at a fixed value, e.g. {"production":…
| Parameter | Type | Description |
|---|---|---|
adjustments | ||
exports | ||
forecast_horizon | integer | |
imports | ||
pinned | ||
production | ||
refinery_input | ||
start | ||
stocks |
signal_backtest
Event-study backtest of a derived signal — what actually happened after every historical firing. Turns asserted stances ("extremes mean-revert") into measured distributions with sample sizes. Honesty guards (always on): point-in-time (expanding-window) predicate evaluation with no look-ahead; firings de-clustered into episodes (min_gap_days; 35d floor for weekly signals); base rate reported beside the conditional with edge = conditional − base; n_firings always surfaced and flagged LOW CONFIDENCE below 10; single-regime clustering flagged. Supported signal…
| Parameter | Type | Description |
|---|---|---|
signal * | string | |
history_start | ||
horizons | ||
min_gap_days | integer | |
overrides | ||
target |
report_presets
List all available report presets with descriptions. Each preset bundles the right combination of analytics tools for a specific reporting cadence (daily morning brief, weekly EIA release, monthly crude grades, quarterly strategy, post-shock debrief, etc.). Use with: report(watchlist="my_list", preset="morning")
report
Generate a market report — runs a battery of analytics on the given series. Available sections: prices, changes, spreads, forecast, volatility, correlations, breakpoints, seasonal, percentile, crack, curve, positioning. Presets (override sections): General: - "trader": prices, changes, spreads, crack, curve, positioning, seasonal - "analyst": prices, changes, spreads, forecast, correlations, breakpoints - "daily": prices, changes, spreads, curve - "deep": everything Desk-specific (oil analyst cycle): - "morning": overnight moves + cata…
| Parameter | Type | Description |
|---|---|---|
curve_prefix | ||
end | ||
forecast_horizon | integer | |
lookback_days | integer | |
positioning_series | ||
preset | ||
sections | ||
series_ids | ||
start | ||
watchlist |
crack_spread
Refining crack spread — 3-2-1, gasoline, or diesel. Args: ratio: 3-2-1 (default), gasoline, or diesel crude: Crude oil series (default WTI) gasoline: Gasoline series (default US Gulf Coast) distillate: Distillate series (default NY Harbor heating oil) start: Start date end: End date
| Parameter | Type | Description |
|---|---|---|
crude | string | |
distillate | string | |
end | ||
gasoline | string | |
ratio | string | |
start |
percentile
Rank the current value within the series' own history. Returns z-score, percentile, min/max, quartile breakdown. Use this when you need to answer "is this high or low?" for any series (CFTC positioning, stock levels, spread values, production volumes, etc.) without pairing it with a second series. Args: series_id: Series to evaluate as_of: (Optional) Evaluate the value as of this date (default: latest value) start: (Optional) Limit the historical reference window to start from this date end: (Optional) Limit the historical reference window…
| Parameter | Type | Description |
|---|---|---|
series_id * | string | |
as_of | ||
end | ||
start |
maintenance_signal
Detect likely refinery turnaround / maintenance weeks from utilization drops. For each of the last N weeks, computes a z-score and flags weeks below threshold_z. Clusters of consecutive flagged weeks are grouped as single events. MODES: - "trend" (DEFAULT): z vs trailing `trend_window`-period rolling mean. Best for catching UNEXPECTED drops that break the recent trajectory. Planned spring/fall turnarounds recur every year and wash out of the seasonal baseline — trend mode catches them because they break recent trend. - "seasonal": z vs same-w…
| Parameter | Type | Description |
|---|---|---|
lookback_years | integer | |
mode | string | |
scan_weeks | integer | |
series_id | string | |
threshold_z | number | |
trend_window | integer |
correlate_all
Scan many series against a target, rank by rolling correlation. Discovery tool: "what tracks WTI best lately?" or "which oil equities move most with crude?". Computes a rolling correlation window against the target for each candidate, then ranks by |current_correlation|. Args: target: Reference series (e.g. "PET.RWTC.D") candidates: List of candidates to test (e.g. OILEQ.* tickers) window: Rolling correlation window (default 60) start: Optional window start date end: Optional window end date limit: Top N to show (default 20)…
| Parameter | Type | Description |
|---|---|---|
target * | string | |
candidates | ||
end | ||
limit | integer | |
start | ||
watchlist | ||
window | integer |
arb_signal
US-Europe crude arb economics — combines spread, freight, and curve shape. A bullish arb for US crude exports looks like: wide Brent-WTI spread (buyers willing to pay up for Brent-priced crude) + low BWET tanker freight (cheap shipping) + contango or narrow backwardation (carry doesn't kill the trade). Args: wti: WTI crude series (default PET.RWTC.D) brent: Brent crude series (default PET.RBRTE.D) freight_proxy: Tanker freight proxy (default SHIP.BWET.D) curve_prefix: Futures curve prefix for structure analysis (default ICE.BRENT) sta…
| Parameter | Type | Description |
|---|---|---|
brent | string | |
curve_prefix | string | |
freight_proxy | string | |
start | ||
wti | string |
seasonal
Seasonal context — how does the current value compare to the same week/month in prior years? Essential for commodity analysis: "stocks at 462mb" means nothing without knowing whether that's +20mb or -10mb vs seasonal norm. Returns the current value, the N-year average for the same calendar position, min/max range, z-score, percentile, and the values from each prior year. Args: series_id: Series to evaluate (e.g. PET.WCESTUS1.W for crude stocks) lookback_years: Prior years to average (default 5) start: Optional start date to bound the historical w…
| Parameter | Type | Description |
|---|---|---|
series_id * | string | |
lookback_years | integer | |
start |
term_structure
Futures curve structure — contango/backwardation metric, calendar spreads, roll yield, curve slope. Reads M1..MN constant-maturity series for the given prefix (default ICE.BRENT). Args: prefix: Series prefix without .M{n}.D suffix (e.g. "ICE.BRENT", "NYMEX.WTI") n_maturities: How many nearby contracts to include (default 12)
| Parameter | Type | Description |
|---|---|---|
n_maturities | integer | |
prefix | string |
changes
What changed since last week? Detects significant moves across multiple series, ranked by size. Args: series_ids: List of series to check lookback_days: Days to look back (default 7) watchlist: Use a saved watchlist (alternative to series_ids)
| Parameter | Type | Description |
|---|---|---|
lookback_days | integer | |
series_ids | ||
watchlist |