Skip to main content
Glama

get_cftc_cot_reports

Read-only

CFTC Commitments of Traders: one row per futures contract per weekly report_date. noncomm = large speculators, comm = hedgers, nonrept = small; *_net = long - short. Legacy report, futures and options combined; each row's source_url is that row's own query on it. since/until: YYYY-MM-DD, inclusive, on report_date; these and contract_market_name filter a bounded window. Default: report_date desc, 50 rows. More: keyvex.com/docs/tools/get_cftc_cot_reports

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_cftc_cot_reports"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNo{code}-{YYYY-MM-DD}.
limitNo
sinceNo
untilNo
sort_byNo
sort_orderNo
latest_onlyNoNewest per contract.
commodity_nameNoExact, e.g. 'GOLD'.
contract_market_nameNoName part; short (≤3) = WHOLE WORDS.
cftc_contract_market_codeNoExact, e.g. '13874A'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed10 schema fields changed
    • changedInput schema / properties / cftc_contract_market_code / description
      Previous value: -"Exact CFTC contract code (e.g., '13874A' = E-mini S&P 500, '088691' = Gold, '067651' = Crude Oil WTI)."New value: +"Exact, e.g. '13874A'."
    • changedInput schema / properties / commodity_name / description
      Previous value: -"Exact commodity name from CFTC's catalog (e.g., 'S&P 500 STOCK INDEX', 'GOLD', 'CRUDE OIL', 'EURO FX')."New value: +"Exact, e.g. 'GOLD'."
    • changedInput schema / properties / contract_market_name / description
      Previous value: -"Case-insensitive substring on contract_market_name (e.g., 'S&P 500', 'GOLD', 'CRUDE OIL', 'JAPANESE YEN'); a needle of 3 characters or fewer matches WHOLE WORDS ('GAS' finds 'NAT GAS', not 'GASOLINE'). Applied client-side, within a bounded window."New value: +"Name part; short (≤3) = WHOLE WORDS."
    • changedInput schema / properties / id / description
      Previous value: -"Direct doc lookup ({contract_code}-{YYYY-MM-DD}). Fastest path."New value: +"{code}-{YYYY-MM-DD}."
    • changedInput schema / properties / latest_only / description
      Previous value: -"When true, returns only the most recent report row per contract (one row per contract instead of weekly history)."New value: +"Newest per contract."
    • removedInput schema / properties / limit / description
      Removed value: -"Max records. Default 50, max 500."
    • removedInput schema / properties / since / description
      Removed value: -"Inclusive lower bound on report_date (YYYY-MM-DD)."
    • removedInput schema / properties / sort_by / description
      Removed value: -"Sort key. Default: report_date. report_date, open_interest, noncomm_net, comm_net."
    • removedInput schema / properties / sort_order / description
      Removed value: -"Default: desc."
    • removedInput schema / properties / until / description
      Removed value: -"Inclusive upper bound on report_date (YYYY-MM-DD)."
  2. Changed2 schema fields changed
    • changedInput schema / properties / contract_market_name / description
      Previous value: -"Case-insensitive substring on contract_market_name (e.g., 'S&P 500', 'GOLD', 'CRUDE OIL', 'JAPANESE YEN'). Client-side filter."New value: +"Case-insensitive substring on contract_market_name (e.g., 'S&P 500', 'GOLD', 'CRUDE OIL', 'JAPANESE YEN'); a needle of 3 characters or fewer matches WHOLE WORDS ('GAS' finds 'NAT GAS', not 'GASOLINE'). Applied client-side, within a bounded window."
    • changedInput schema / properties / sort_by / description
      Previous value: -"Sort key. Default: report_date."New value: +"Sort key. Default: report_date. report_date, open_interest, noncomm_net, comm_net."
  3. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint true, destructiveHint false, openWorldHint true), yet the description adds real context: report variant, weekly cadence, per-row source_url provenance, inclusive date semantics, and default sort/limit. It does not discuss pagination depth or row-count ceilings, which would have pushed this higher.

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?

Extremely dense but front-loaded: grain first, then a needed field glossary, then filtering/date semantics, then defaults, then a docs link. Every clause carries information; the telegraphic style ('noncomm = large speculators') is efficient rather than cryptic because the glossary is right there.

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?

With no output schema, the description carries the return-value burden and does so via the column glossary (noncomm/comm/nonrept, *_net = long - short) and source_url provenance. Defaults and date formats are covered. It stops short of describing what a full row contains beyond those fields or how to retrieve more than the default 50 rows.

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 coverage is only 50%, and the description compensates for the biggest gaps: since/until use YYYY-MM-DD, are inclusive, and apply to report_date; contract_market_name participates in the bounded-window filter. It also documents the default ordering and row limit. Remaining gaps are sort_by/sort_order behavior and the id/latest_only parameters, which are left to their schema entries or unexplained.

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?

States a specific dataset and grain: 'one row per futures contract per weekly report_date', plus which report variant (Legacy, futures and options combined). An agent knows exactly what it retrieves. It does not explicitly differentiate itself from any sibling, but no listed sibling covers COT data, so the practical ambiguity is low.

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?

Usage is implied through the described filter behavior (since/until and contract_market_name 'filter a bounded window', default sort and 50-row limit) rather than stated as when-to-use guidance. There is no explicit when-not-to-use or alternative-tool routing, and no mention of how to page beyond the limit.

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.

Resources