Skip to main content
Glama

Get futures bars

get_futures
Read-onlyIdempotent

Answers 'give me every ES contract since 2007' (or any futures market's history). Give a root (ES, NQ, YM, RTY, CL, GC, SI, NG, ZN, ZB, VX, 6E and more; a leading '/' is fine) for the continuous back-adjusted series, or a contract (e.g. ESZ26) for one contract; optionally interval (1min, 5min, 15min, 30min, 1hour) for intraday bars. Returns daily OHLCV and open interest, clipped to as_of. Covers 139 futures markets (CME, CBOT, NYMEX, COMEX, ICE, Eurex, Cboe) with every individual contract since 2007. Free keys get the last 30 days; full history with a FinzData plan.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "root": "<root>"
    },
    "name": "get_futures"
  }
}

Input Schema

NameRequiredDescriptionDefault
endNo
rootYesFutures root, e.g. ES, NQ, CL, GC, VX.
as_ofNoPoint-in-time cutoff (YYYY-MM-DD). Nothing dated after this is returned, preventing look-ahead bias. Defaults to today (UTC).
startNo
contractNoOptional single contract, e.g. ESZ26.
intervalNoBar size: 1day (default), or intraday 1min, 5min, 15min, 30min, 1hour (full Globex session, US Eastern timestamps; intraday comes with a purchase of that market).
continuousNoBack-adjusted continuous series (default true when no contract).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / interval
      Added value: +{
      +  "description": "Bar size: 1day (default), or intraday 1min, 5min, 15min, 30min, 1hour (full Globex session, US Eastern timestamps; intraday comes with a purchase of that market).",
      +  "type": "string"
      +}
  2. Added

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the description earns credit for the extra behavior it discloses: results are clipped to as_of to prevent look-ahead bias, output is daily OHLCV plus open interest, intraday bars use US Eastern timestamps over the full Globex session, and intraday access requires purchasing that market. It also exposes entitlement limits (free keys get 30 days, full history needs a FinzData plan), which is exactly the kind of constraint annotations cannot carry. It stops short of noting pagination or response size for a 19-year daily series.

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 use case and the root-vs-contract decision are front-loaded in the first two sentences, and the entitlement caveat closes it out. The middle is a dense single run-on sentence with nested parentheticals (root list, interval list) that could be split or bulleted for faster scanning, but nothing is redundant.

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 7-parameter read tool with no output schema, the description covers the return payload (daily OHLCV plus open interest, clipped to as_of), venue breadth, history depth and access tiers, which is most of what an agent needs. The remaining gap is the undocumented start/end range semantics and their interaction with as_of.

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?

With schema coverage at 71%, the schema already documents root, as_of, contract, interval and continuous. The description adds real value on root (accepts a leading "/", enumerates roots) and on continuous (defaults true when no contract is supplied), but start and end have no description in either the schema or the prose, and the expected date format for those range parameters is never stated.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Get futures bars" is reinforced by a concrete verb+resource statement (returns daily OHLCV and open interest for a root's continuous series or a single contract) and by the market/venue coverage list. The description makes the domain unmistakably futures, but it never names the near neighbours an agent must discriminate against, notably get_futures_rolls, get_ticks and get_bars, so differentiation is inferred rather than stated.

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

Usage Guidelines3/5

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

The opening example ("give me every ES contract since 2007") and the root-vs-contract-versus-continuous branching give implied usage, but there is no explicit when-to-use/when-not-to-use guidance relative to alternatives. An agent must guess whether roll-adjusted histories belong here or in get_futures_rolls, and whether intraday sub-minute data belongs here or in get_ticks.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.