Skip to main content
Glama

cftc_cot_history

Read-onlyIdempotent

Return a bounded weekly history for one CFTC contract market, report family, scope, and trader category from the self-hosted official snapshot. Includes long, short, spreading, net, changes, percentages, open interest, pagination, source ids, and provenance. Use this for 'managed money net positions in crude oil over time', 'commercial gold COT history', or a reproducible positioning chart. Report-family categories are enforced; not trading advice.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum weekly observations. Default 20.
scopeNoFutures-only or futures-and-options-combined view. Defaults to futures_only, except CIT (combined only).
marketYesExact CFTC contract market code or contract name. Search first when the name is ambiguous.
offsetNoObservations to skip. Default 0.
categoryYesFamily-specific category: noncommercial/commercial; producer_merchant_processor_user/swap_dealer/managed_money/other_reportables; dealer_intermediary/asset_manager_institutional/leveraged_funds/other_reportables; or noncommercial_ex_cit/commercial_ex_cit/commodity_index_trader.
end_dateNoOptional latest report date, YYYY-MM-DD.
start_dateNoOptional earliest report date, YYYY-MM-DD.
report_typeYesCFTC report family. Categories differ by family; use search or the evidence pack to discover available families.
response_formatNoHuman-readable markdown or machine-readable JSON. Default markdown.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed12 schema fields changed
    • addedInput schema / properties / category / maxLength
      Added value: +64
    • addedInput schema / properties / category / minLength
      Added value: +1
    • addedInput schema / properties / end_date / pattern
      Added value: +"^\\d{4}-\\d{2}-\\d{2}$"
    • addedInput schema / properties / limit / maximum
      Added value: +260
    • addedInput schema / properties / limit / minimum
      Added value: +1
    • changedInput schema / properties / limit / type
      Previous value: -"number"New value: +"integer"
    • addedInput schema / properties / market / maxLength
      Added value: +160
    • addedInput schema / properties / market / minLength
      Added value: +1
    • addedInput schema / properties / offset / maximum
      Added value: +10000
    • addedInput schema / properties / offset / minimum
      Added value: +0
    • changedInput schema / properties / offset / type
      Previous value: -"number"New value: +"integer"
    • addedInput schema / properties / start_date / pattern
      Added value: +"^\\d{4}-\\d{2}-\\d{2}$"
  2. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, so the safety profile is covered. The description adds real context beyond that: the payload fields returned (long, short, spreading, net, changes, percentages, open interest, source ids, provenance), the bounded nature of the history, the enforcement of report-family categories, and a 'not trading advice' caveat. No auth or rate-limit detail, but that is a minor gap given annotation coverage.

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?

Three sentences, front-loaded with the core verb and resource, then payload contents, then usage examples. The middle field-list is somewhat dense but each item is informative. No filler or repetition of the title.

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 correctly takes on the burden of describing the return payload (net, open interest, provenance, pagination). Combined with 100% schema coverage and annotations covering safety, an agent has nearly everything needed; only explicit sibling routing is missing.

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?

Schema description coverage is 100% across 9 parameters, so the schema already documents market, report_type, category, scope, limit/offset, dates and response_format in detail. The description restates the filtering dimensions in prose ('report family, scope, and trader category') without adding syntax or format guidance beyond the schema, so the baseline of 3 is appropriate.

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?

The description gives a specific verb and resource: 'Return a bounded weekly history for one CFTC contract market, report family, scope, and trader category.' The time-series framing implicitly separates it from cftc_cot_latest and cftc_cot_compare, but neither sibling is named, so an agent must infer the boundary from the tool names alone.

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

Usage Guidelines4/5

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

Concrete use cases are supplied ('managed money net positions in crude oil over time', 'commercial gold COT history', 'a reproducible positioning chart'), which clearly signals when this tool applies. However, there is no explicit when-not or routing statement toward cftc_cot_latest/compare/search, so the agent gets context but no exclusions.

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.