Reference Docs (Market)
mdmcp-market_data_docs
Reference documentation for market_data_table and market_data_options_search, one topic per call: filter_fields (every filter field with type, definition, valid values, and the operator validity table), metrics (metric ids and definitions, price-unit scales, retail-term routing), group_by_fields (group-by, histogram and percentile fields), dates_and_compare (date snapping, trend rules, multi-period combining, compare semantics), text_search (name/description query syntax). Pass ids to get only specific entries (supported for filter_fields, metrics, group_by_fields) — e.g. topic="filter_fields", ids=["gender", "tier"]. The query tool descriptions may not carry all of this inline — call this whenever you need a field id, metric id, valid value, operator, price scale or date rule you do not already have, and to re-read a section later.
Parameters
| Name | Type | Required | Constraints | Description |
|---|---|---|---|---|
topic | string | yes | — | Documentation section to retrieve. |
ids | string[] | no | — | Optional: return only these field/metric ids. Supported for filter_fields, metrics and group_by_fields. |
Try it
Code examples
- curl
- TypeScript
- Python
curl -s https://mcp.edited.com/mcp \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-H "MCP-Protocol-Version: 2025-06-18" \
-H "x-api-key: $MCP_API_KEY" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "mdmcp-market_data_docs",
"arguments": {
"topic": "example"
}
}
}'
import { Client } from "@modelcontextprotocol/sdk/client/index.js";
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js";
const client = new Client({ name: "demo", version: "1.0.0" }, { capabilities: {} });
await client.connect(
new StreamableHTTPClientTransport(new URL("https://mcp.edited.com/mcp"), {
requestInit: { headers: { "x-api-key": process.env.MCP_API_KEY ?? "" } },
}),
);
const result = await client.callTool({
name: "mdmcp-market_data_docs",
arguments: {
"topic": "example"
},
});
import os
from mcp import ClientSession
from mcp.client.streamable_http import streamablehttp_client
headers = {"x-api-key": os.environ["MCP_API_KEY"]}
async with streamablehttp_client("https://mcp.edited.com/mcp", headers=headers) as (read, write, _):
async with ClientSession(read, write) as session:
await session.initialize()
result = await session.call_tool(
"mdmcp-market_data_docs",
{"topic": "example"},
)
Input schema
{
"type": "object",
"properties": {
"topic": {
"description": "Documentation section to retrieve.",
"enum": [
"filter_fields",
"metrics",
"group_by_fields",
"dates_and_compare",
"text_search"
],
"type": "string"
},
"ids": {
"description": "Optional: return only these field/metric ids. Supported for filter_fields, metrics and group_by_fields.",
"items": {
"type": "string"
},
"type": "array"
}
},
"required": [
"topic"
]
}