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. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, and non-destructive behavior. The description adds beyond that: the result is 'bounded weekly history' with 'pagination', 'source ids', and 'provenance', and warns 'Report-family categories are enforced; not trading advice.' This gives the agent useful expectations about output size, reproducibility, and validation without contradicting annotations.

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?

Four dense sentences, each earning its place: purpose, return contents, use cases, and caveat. Front-loaded with the core action, then examples and constraints. No filler or repetition of schema details.

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 9-parameter tool with no output schema, the description plus fully-covered schema is largely sufficient. It lists return contents, examples, and a validation caveat. The only mild gap is not explicitly routing ambiguous market names to cftc_cot_search_markets, but the schema's market parameter already says 'Search first when the name is ambiguous.'

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%, so the baseline is 3. The description echoes 'report family, scope, and trader category' and hints at 'bounded' pagination, but adds no parameter-specific details beyond what the schema already documents. It is not misleading but also not compensatory.

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 opens with a specific verb and resource: 'Return a bounded weekly history for one CFTC contract market, report family, scope, and trader category.' The examples ('managed money net positions in crude oil over time', 'commercial gold COT history') make the time-series nature unmistakable. Though no sibling is named, 'bounded weekly history' inherently differentiates it from cftc_cot_latest and cftc_cot_compare.

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?

The description provides explicit use cases: time-series positioning questions and reproducible charts. It does not state when NOT to use it or name alternatives (e.g., cftc_cot_latest for the current snapshot, cftc_cot_search_markets to resolve names), but the context is clear enough for an agent to select it for historical queries.

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.