search_markets
Pack: cftc-cot · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)
No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/search_markets for the schema, then POST the same URL with its arguments for the data.
Find CFTC Commitment of Traders (COT) futures markets by name. Use this first to get the exact market_and_exchange_names and contract_code that latest_report and report_history require. Keyless. e.g. “crude oil”, “gold”, “E-MINI S&P”, “bitcoin”, “euro”, “corn”.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
query | string | yes | Substring to match against the market name, e.g. “crude oil”, “gold”, “E-MINI S&P”, “bitcoin”, “euro”. |
limit | number | no | Max distinct markets to return (default 15, max 30). |
Example call
Arguments
{
"query": "crude oil"
}
curl
curl -X POST https://gateway.pipeworx.io/cftc-cot/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"search_markets","arguments":{"query":"crude oil"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('search_markets', {
"query": "crude oil"
});
More examples
{
"query": "gold",
"limit": 10
}
Connect
Add this to your MCP client config — every tool in the catalog, including this one — or use one-click install buttons:
{
"mcpServers": {
"pipeworx": {
"url": "https://pipeworx.io/mcp"
}
}
}
Connect to just the cftc-cot pack
{
"mcpServers": {
"cftc-cot": {
"url": "https://gateway.pipeworx.io/cftc-cot/mcp"
}
}
}
See Getting Started for client-specific install steps.