TanukiTradeDocs

MCP

Connect

One hosted MCP server, two ways to connect. In ChatGPT and Claude you add the URL, press Connect, and paste your API token once on the TanukiTrade sign-in page. Developer tools such as Cursor, VS Code, Codex, and scripts can send the same token in a header instead. Either way the assistant calls the same derived-analytics routes as REST. Nothing to install on a server of your own.

What is the MCP server?

The TanukiTrade MCP server lets Claude, Cursor, and other Model Context Protocol clients query derived options analytics in plain language. Each enabled REST route is one tool. The tool name is the operation id. The arguments are the REST JSON body. Authentication stays on the HTTP request, never in a tool argument.

The server is stateless. There is no session id and no long-lived SSE stream. Every call is one POST of a JSON-RPC body, and the response is one JSON document. serverInfo.name is tanukiapi.

How a request reaches derived analytics A client script or MCP host sends a POST request with a Bearer token to TanukiTrade PRO over REST (/api/v1) or MCP (/mcp/v1), and receives a structured JSON envelope of derived options analytics across 8 route groups. ARCHITECTURE · ONE CONTRACT, TWO DOORS 120 req / min · gzip 1. CALLERS Your code & scripts Python, curl, private tools api.tanukitrade.com AI agents & IDEs Claude, Cursor, custom MCP hosts mcp.tanukitrade.com Bearer id.key POST JSON 2. UNIFIED GATEWAY TanukiTrade PRO 46 market + 3 account routes REST POST /api/v1/… Flat JSON body (max 4 KiB) MCP POST /mcp/v1 Stateless JSON-RPC tools/call Discovery · Gamma · Volatility · Range Chain · Fundamentals · Technical · History 200 JSON 3. DERIVED ANALYTICS Consistent JSON envelope Same fields on HTTP and MCP { "ok": true, "data": { "items": […] }, "meta": { next_cursor, built_at } } ET timestamps · cursor paging Scope boundary: Derived options analytics only — no raw OPRA chains, no per-contract quotes, no order routing, and no trade signals.
One product, two doors. REST is for your own code; MCP is for an assistant or IDE that calls the same tools directly.

Why connect it

Four jobs that fit a conversation with an assistant that can call the tools itself.

ResearchVolatility, in one threadAsk which names look cheap on IV. The assistant can read IV metrics, skew, and term structure, then narrow the list without a new script.
Pre-marketA morning passEarnings on the watchlist, IV rank and percentile, backwardation, then term structure on the two names that need a closer look.
ContextThe name, or the benchmarkProfile, sector, market cap, and the best-fit correlation against SPY, QQQ, IWM, TLT, or GLD, in one question.
RESTThe same call as codeDescribe the query, let the assistant call the tool, then ask for the curl or Python body. Keep the token in an environment variable.

Server details

MCP and REST are different hosts. Do not append /mcp/v1 to the REST base URL.

url
https://mcp.tanukitrade.com/mcp/v1
FactValue
URLhttps://mcp.tanukitrade.com/mcp/v1
REST basehttps://api.tanukitrade.com
TransportStreamable HTTP. One JSON POST. No session. No SSE stream.
Content-Typeapplication/json. Anything else is HTTP 415 and JSON-RPC -32600, after Origin and before the protocol-version header.
AuthorizationSign in with TanukiTrade (OAuth 2.1, the app gets its own access) or Authorization: Bearer YOUR_CLIENT_ID.YOUR_API_KEY.
Rate limit120 requests per America/New_York minute, shared with POST /api/v1.
Protocol2025-11-25 and 2025-06-18, the revisions with structured tool output. Any other request is answered as 2025-11-25. 2025-03-26 and older are not supported.
OriginDo not send an Origin header. A request with one is HTTP 403: MCP is not available from a browser.

The token is the client id, a dot, then the key. The client id is 8 lowercase letters or digits. The key is 16 to 128 letters or digits. The whole token is at most 160 characters, case-sensitive, and not trimmed. YOUR_CLIENT_ID.YOUR_API_KEY is a placeholder. It is not a secret and it is not a working token.

Sign in and copy the token from API Access (/webapp/developer/api/). REST and MCP use that same token. There is no second credential to create. With sign-in you paste it only on the TanukiTrade page; the app never receives it. Do not put the token in a URL, a query string, a tool argument, a log line, or a chat.

http
POST https://mcp.tanukitrade.com/mcp/v1
Authorization: Bearer YOUR_CLIENT_ID.YOUR_API_KEY
Content-Type: application/json
Accept: application/json

initialize, ping, tools/list, resources/list, resources/templates/list, and resources/read each spend one rate-limit attempt and do not add endpoint usage. A successful tool call spends an attempt and counts as usage, the same as the matching REST route. RateLimit-Limit is the budget this server is enforcing. RateLimit-Reset is seconds until the next ET minute, not a timestamp. On 429, wait at least Retry-After seconds. Headers are on Rate limits and headers.

Choose how to connect

WayUse it inWhat you do
Sign in with TanukiTradeChatGPT (web and desktop), Claude (claude.ai, Claude Desktop, Claude mobile), Claude Code, and other clients with an OAuth connector screenAdd the URL, press Connect, paste your API token on the TanukiTrade page, approve. Nothing to store in a file.
Token in a headerCursor, VS Code, Codex CLI and IDE, ChatGPT Desktop through Codex, the OpenAI Responses API, Windsurf, Gemini CLI, scriptsPaste a config block with the URL and Authorization: Bearer ….

Both ways use the same plan, the same tools, and the same 120 requests per America/New_York minute. Usage is counted together on API Access.

Sign in with TanukiTrade (ChatGPT, Claude)

Apps with a custom connector screen sign in with OAuth 2.1. You never type the token into the app.

  1. Add the server. In the app, add a custom connector or MCP server named TanukiTrade with the URL https://mcp.tanukitrade.com/mcp/v1. Leave client ID and client secret empty. The app finds the sign-in on its own.
  2. Press Connect. The TanukiTrade sign-in page opens in your browser. It shows which app is asking, what it can read, and what it cannot do.
  3. Paste your API token. Open API Access (it opens in a new tab), copy the token, come back, paste it, and press Approve and connect.
  4. Ask a question. The browser returns you to the app. In a new chat, turn the TanukiTrade tools on and ask: List the SPX primary key levels for the w1 expiry with TanukiTrade.

ChatGPT

  1. On chatgpt.com or in the desktop app, open Plugins (on some plans Settings → Apps, with developer mode turned on under Advanced).
  2. Choose + → Add custom MCP server. Name: TanukiTrade. URL: https://mcp.tanukitrade.com/mcp/v1. Authentication: OAuth. Leave client ID and secret empty.
  3. Create it, then press Connect and finish the TanukiTrade sign-in.
  4. In a new chat, open +, turn on TanukiTrade, and ask your question. A tool call appears in the answer.

Claude (claude.ai, Claude Desktop, mobile)

  1. Open Settings → Connectors → Add custom connector.
  2. Name: TanukiTrade. URL: https://mcp.tanukitrade.com/mcp/v1. Leave the advanced settings empty. Press Add.
  3. Press Connect next to the connector and finish the TanukiTrade sign-in. The connector shows Connected.
  4. In a new chat, turn TanukiTrade on under + → Search and tools. A connector added on claude.ai or in Claude Desktop is also available in the Claude mobile apps on the same account.

Claude Code

Add the server without a header. Claude Code then runs the same sign-in in your browser.

shell
claude mcp add --transport http -s user tanuki-pro https://mcp.tanukitrade.com/mcp/v1

Start claude, run /mcp, select tanuki-pro, and choose Authenticate. To use a header instead, see Claude Code with a token.

What the app receives, and for how long

  • Its own access, not your token. The app receives a separate access token for read-only PRO data. Your API token is checked once on the TanukiTrade page and is not passed on.
  • Read only. The app can read market data on your plan. It cannot place trades, move money, or see your password, e-mail, or payment details.
  • Stays connected. The access renews itself every hour while you use it. A connection unused for 30 days, or older than 365 days, asks you to sign in again.
  • Up to 20 connected apps. Each sign-in is one connection. A 21st connection replaces the oldest one.
  • Disconnect. Remove the connector in the app. To disconnect every app at once, regenerate your token on API Access; all connections stop within about a minute and you sign in again with the new token.

If the sign-in page shows a message

MessageWhat to do
We could not verify that API tokenCopy the token again on API Access, including the dot in the middle. If you regenerated it, use the newest one. You can paste it again on the same page.
This API token is not activeAPI and MCP access come with an active PRO plan. Check your plan and token on API Access, then paste it again.
This sign-in link has expiredThe page is valid for 10 minutes. Go back to the app and press Connect again.
This app is not recognizedRemove the connector and add it again with https://mcp.tanukitrade.com/mcp/v1.
This app's return address is not allowedUse ChatGPT, Claude, Claude Code, or another client from this page.
Too many attemptsWait the seconds shown, then try again.

If the app itself says it could not connect after you approved, remove the connector, add it again, and connect once more. If it still fails, write to support with the time and the app name. Do not send the token.

Token in a header (developer tools)

  1. Copy the token from API Access while you are signed in.
  2. Paste one config below. Every working client needs the same three things: the URL, the Authorization header, and a server name. The snippets use YOUR_CLIENT_ID.YOUR_API_KEY.
  3. Restart the client, then ask it to list SPX, AAPL, and /ES1 with TanukiTrade. A 401 is an HTTP authentication failure before JSON-RPC. Check the full bearer token and the header, not the tool arguments.

The signed-in API Access page can also hand the config to Cursor or VS Code on your own computer. Do not share or paste that install link. It contains the token. The blocks on this page do not.

OpenAI and ChatGPT: what works

ChatGPT Desktop through Codex (token)

The ChatGPT Desktop app can connect directly to Streamable HTTP MCP servers on a Codex host. It shares ~/.codex/config.toml with Codex CLI and the Codex IDE extension. Put the token in TANUKI_TOKEN in the environment that launches the app, then open Settings → MCP servers and restart after saving.

~/.codex/config.toml
[mcp_servers.tanuki_pro]
url = "https://mcp.tanukitrade.com/mcp/v1"
bearer_token_env_var = "TANUKI_TOKEN"

The value of TANUKI_TOKEN is only YOUR_CLIENT_ID.YOUR_API_KEY. Do not include the word Bearer; the client adds it.

Codex CLI

Codex CLI uses the same ~/.codex/config.toml block and environment variable as ChatGPT Desktop. Restart Codex after saving, then run codex mcp list. Inside the Codex terminal UI, /mcp shows the connected server.

Codex VS Code / IDE extension

The Codex IDE extension also shares ~/.codex/config.toml. Open the extension gear menu, select MCP servers, add the Streamable HTTP URL, and restart the extension. This is the Codex extension; the generic VS Code MCP configuration is documented separately below.

OpenAI Responses API

The Responses API can call this remote MCP server programmatically. Pass the TanukiTrade token in the MCP tool’s authorization field on every Responses request. This is separate from the OpenAI API key used to call OpenAI.

python
import os
from openai import OpenAI

client = OpenAI()
response = client.responses.create(
    model=os.environ["OPENAI_MODEL"],
    input="Use TanukiTrade to list SPX and AAPL.",
    tools=[{
        "type": "mcp",
        "server_label": "tanuki_pro",
        "server_url": "https://mcp.tanukitrade.com/mcp/v1",
        "authorization": os.environ["TANUKI_TOKEN"],
        "require_approval": "always",
    }],
)

Claude Code with a token

Claude Code can also send the token as a custom header. -s user stores the server for every project on this machine. -s local keeps it in the current repo. Do not commit a project file that still has the real token.

shell
claude mcp add --transport http -s user tanuki-pro https://mcp.tanukitrade.com/mcp/v1 \
  --header "Authorization: Bearer YOUR_CLIENT_ID.YOUR_API_KEY"

Start claude and run /mcp. tanuki-pro should be connected. With a header set, Claude Code does not open the sign-in: a bad token is a failed connection, usually HTTP 401.

Claude Desktop with a token

The simplest way in Claude Desktop is Settings → Connectors with sign-in. Use the config file only if you want the token in a header. Claude Desktop's config file runs local stdio servers, so the config starts the mcp-remote bridge. That needs Node.js and downloads the package through npm the first time.

Open Settings → Developer → Edit Config. On macOS the file is ~/Library/Application Support/Claude/claude_desktop_config.json. On Windows it is %APPDATA%\Claude\claude_desktop_config.json. Merge the block, then quit Claude Desktop completely and reopen it.

The header value has no space after the colon. mcp-remote documents that a space inside args is mangled on Windows. The token itself, including the Bearer scheme, lives in env.

claude_desktop_config.json
{
  "mcpServers": {
    "tanuki-pro": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://mcp.tanukitrade.com/mcp/v1",
        "--header",
        "Authorization:${AUTH_HEADER}"
      ],
      "env": {
        "AUTH_HEADER": "Bearer YOUR_CLIENT_ID.YOUR_API_KEY"
      }
    }
  }
}

The Add custom connector screen uses sign-in and does not need this file.

Cursor

Use ~/.cursor/mcp.json for every project, or .cursor/mcp.json in one project. Do not commit the project file while it contains the real token. Cursor also expands ${env:TANUKI_TOKEN} in headers if you would rather keep the token in the environment.

mcp.json
{
  "mcpServers": {
    "tanuki-pro": {
      "url": "https://mcp.tanukitrade.com/mcp/v1",
      "headers": {
        "Authorization": "Bearer YOUR_CLIENT_ID.YOUR_API_KEY"
      }
    }
  }
}

Open Settings → MCP. tanuki-pro should show a green dot. There is no type field. A url is the remote HTTP server.

VS Code

Workspace config is .vscode/mcp.json and uses a top-level servers object. User config is Command Palette → MCP: Open User Configuration. A portable .mcp.json in the repo root uses mcpServers instead. Do not paste this block into that other shape.

.vscode/mcp.json
{
  "servers": {
    "tanuki-pro": {
      "type": "http",
      "url": "https://mcp.tanukitrade.com/mcp/v1",
      "headers": {
        "Authorization": "Bearer YOUR_CLIENT_ID.YOUR_API_KEY"
      }
    }
  }
}

Run MCP: List Servers from the command palette. To keep the token out of the file, set the header to Bearer ${input:tanuki-token} and add an inputs entry with "type": "promptString" and "password": true.

Windsurf

Edit ~/.codeium/windsurf/mcp_config.json, or use Settings → Cascade → MCP Servers. Remote entries use serverUrl, not url. Quit Windsurf completely and reopen it. If the product on your machine was renamed, use that install's MCP settings; the entry still needs serverUrl and the Authorization header.

mcp_config.json
{
  "mcpServers": {
    "tanuki-pro": {
      "serverUrl": "https://mcp.tanukitrade.com/mcp/v1",
      "headers": {
        "Authorization": "Bearer YOUR_CLIENT_ID.YOUR_API_KEY"
      }
    }
  }
}

Gemini CLI

Add the block to ~/.gemini/settings.json and restart the CLI. httpUrl is the streamable HTTP field. In current Gemini CLI docs, url alone is the SSE field, so do not swap them. /mcp lists the loaded servers. Avoid an underscore in the server name.

settings.json
{
  "mcpServers": {
    "tanuki-pro": {
      "httpUrl": "https://mcp.tanukitrade.com/mcp/v1",
      "headers": {
        "Authorization": "Bearer YOUR_CLIENT_ID.YOUR_API_KEY"
      }
    }
  }
}

Any other client

A client that can do streamable HTTP and a custom header needs only the URL and this header. A client with an OAuth connector screen uses Sign in with TanukiTrade instead.

generic
{
  "transport": "streamable-http",
  "url": "https://mcp.tanukitrade.com/mcp/v1",
  "headers": {
    "Authorization": "Bearer YOUR_CLIENT_ID.YOUR_API_KEY"
  }
}

Protocol

The client sends JSON-RPC 2.0. Auth is not a field in that body. A notification, a request with no id, is HTTP 202 and an empty body. An unknown method is HTTP 200 and JSON-RPC -32601. ping is HTTP 200 and result is {}. A JSON-RPC error on a well-formed request is HTTP 200. HTTP 4xx is reserved for a request the server will not accept: bad JSON, an invalid request, a non-JSON Content-Type, an Origin header, or an unsupported protocol version.

initialize

request
{
  "jsonrpc": "2.0",
  "id": "req_init_01",
  "method": "initialize",
  "params": {"protocolVersion": "2025-06-18"}
}
result
{
  "jsonrpc": "2.0",
  "id": "req_init_01",
  "result": {
    "protocolVersion": "2025-06-18",
    "capabilities": {"tools": {}, "resources": {}},
    "serverInfo": {"name": "tanukiapi", "version": "2025-06-18"},
    "instructions": "Times and dates are America/New_York with a numeric offset. Before interpreting a level or a label, call get_glossary once. Page with the cursor argument; meta.page only locates the current page. Call only arguments named in the tool schema. On DATA_WARMING, wait and retry. On 429, honor Retry-After. If a description is not enough, resources/read one tanuki://docs/v1 uri. The bearer token is already on the HTTP request."
  }
}

Ask for 2025-11-25 or 2025-06-18. The server answers the version you asked for. Any other request, including 2025-03-26, a missing version, or an unknown string, is answered as 2025-11-25, and instructions starts with a sentence that names the two supported versions. Reconnect with one of them. A client that supports neither disconnects. serverInfo.version is the chosen protocol version. The instructions string is short on purpose. It does not repeat the tool catalog.

tools/list

No cursor, or an empty one, returns the tools this token may call, in route order. A default PRO token receives every group. An explicit group list omits the rest. Any other params.cursor is HTTP 200 and JSON-RPC -32602 with message Invalid cursor. Each tool has name, description, inputSchema, and outputSchema. Both schemas are type: object. inputSchema has additionalProperties: false. outputSchema requires a boolean ok and is either the success envelope (data, meta) or the error envelope (error).

request
{
  "jsonrpc": "2.0",
  "id": "req_tools_list_01",
  "method": "tools/list",
  "params": {}
}

Short markdown for one tool is resources/read on a tanuki://docs/v1 URI. Both resource calls are bearer-protected. The list is on Resources.

tools/call

This is the same call as POST /api/v1/discovery/expiries. On success, structuredContent is the HTTP envelope and follows the tool's outputSchema. content has one text block. Its text is that envelope serialized as compact JSON. The MCP spec says a tool that returns structured content should also return the serialized JSON in a text block, so a client that forwards only text to the model still shows the full result. Claude Desktop through mcp-remote is one of those clients.

POST /mcp/v1
{
  "jsonrpc": "2.0",
  "id": "req_expiries_01",
  "method": "tools/call",
  "params": {
    "name": "list_expiries",
    "arguments": {"symbol": "SPX"}
  }
}
result
{
  "jsonrpc": "2.0",
  "id": "req_expiries_01",
  "result": {
    "content": [
      {"type": "text", "text": "{\"ok\":true,\"data\":{\"items\":[{\"expiration_date\":\"2026-10-23\",\"dte\":0,\"aliases\":[\"0\",\"w1\"],\"is_monthly\":false},\"...\"]},\"meta\":{\"request\":{\"symbol\":\"SPX\"},\"count\":52,\"next_cursor\":null,\"built_at\":\"2026-10-23T01:08:02-04:00\",\"docs\":{\"reference\":\"https://tanukitrade.com/docs/api/discovery#list_expiries\",\"glossary\":\"https://tanukitrade.com/docs/api/glossary\"}}}"}
    ],
    "structuredContent": {
      "ok": true,
      "data": {
        "items": [
          {"expiration_date": "2026-10-23", "dte": 0, "aliases": ["0", "w1"], "is_monthly": false},
          "..."
        ]
      },
      "meta": {
        "request": {"symbol": "SPX"},
        "count": 52,
        "next_cursor": null,
        "built_at": "2026-10-23T01:08:02-04:00",
        "docs": {
          "reference": "https://tanukitrade.com/docs/api/discovery#list_expiries",
          "glossary": "https://tanukitrade.com/docs/api/glossary"
        }
      }
    },
    "isError": false
  }
}

The sample is shortened: "..." marks cut rows, and meta shows only some fields. The full envelope is on list_expiries.

Domain error

A domain failure is still a JSON-RPC result, not a JSON-RPC error. isError is true. structuredContent is the same error envelope as REST. The one text block is that envelope serialized as JSON, so the message is inside the text. The HTTP status is 200, so a client does not treat it as a transport failure. Unknown symbol stays code UNKNOWN_SYMBOL inside that result. On REST the same failure is HTTP 422.

result
{
  "jsonrpc": "2.0",
  "id": "req_expiries_01",
  "result": {
    "content": [{"type": "text", "text": "{\"ok\":false,\"error\":{\"code\":\"UNKNOWN_SYMBOL\",\"message\":\"Unknown symbol.\",\"request_id\":\"req_example_01\"}}"}],
    "structuredContent": {
      "ok": false,
      "error": {
        "code": "UNKNOWN_SYMBOL",
        "message": "Unknown symbol.",
        "request_id": "req_example_01"
      }
    },
    "isError": true
  }
}

An unknown tool name is different. That is HTTP 200 and JSON-RPC -32602 with message Unknown tool. It is not UNKNOWN_SYMBOL.

Disabled tool

A tool that exists but is outside this token's groups is HTTP 200. A default token can call every catalog group, so this code is for an explicit list that leaves the tool out. The body is a tool result, isError true, code ENDPOINT_NOT_ENABLED. The message is This endpoint is not available on your plan yet. The same code on REST is HTTP 403 and a normal error envelope, without the JSON-RPC wrapper. Do not retry until the group is on the list. The code list is on Errors.

HTTP 200
{
  "jsonrpc": "2.0",
  "id": "req_gamma_01",
  "result": {
    "content": [{"type": "text", "text": "{\"ok\":false,\"error\":{\"code\":\"ENDPOINT_NOT_ENABLED\",\"message\":\"This endpoint is not available on your plan yet.\",\"request_id\":\"req_example_01\"}}"}],
    "structuredContent": {
      "ok": false,
      "error": {
        "code": "ENDPOINT_NOT_ENABLED",
        "message": "This endpoint is not available on your plan yet.",
        "request_id": "req_example_01"
      }
    },
    "isError": true
  }
}

Authentication and rate limits

401 and 429 happen before the body is read as JSON-RPC. The response is the HTTP error envelope, not a result and not isError. Do not look for them inside structuredContent.

HTTPCodeWhen
401AUTH_REQUIREDNo bearer token. WWW-Authenticate: Bearer carries resource_metadata, so a sign-in client such as ChatGPT or Claude starts the TanukiTrade sign-in. With a header client, fix the header. Do not retry in a loop.
401INVALID_CREDENTIALSThe token is malformed or not recognized, or a sign-in access has expired or was disconnected. A sign-in client renews or asks you to connect again on its own. Failed header auths from this address share a counter.
200ENDPOINT_NOT_ENABLEDThe tool's group is not enabled. On MCP the HTTP status is 200 and the body is the tool result above (isError true). On REST the same code is HTTP 403 and the error envelope alone.
429RATE_LIMIT_EXCEEDEDThe shared ET-minute budget is spent. Wait Retry-After. The window ends at the next America/New_York minute.
429AUTH_RATE_LIMITEDToo many auth failures from this address. Wait Retry-After.

Origin and protocol-version headers

After auth, and before the JSON-RPC method runs, the server checks three things, in this order. A refusal is a JSON-RPC error with id null and code -32600, not the HTTP error envelope. The header value you sent is not echoed back.

OrderHTTPCheckWhen
1403OriginAny Origin header, including null and an empty value. Message: Origin header refused: browser access to MCP is not supported. MCP is not available from a browser. Call it from a desktop client, a CLI, or a server. REST is not affected. This wins over a bad Content-Type and a bad protocol version.
2415Content-TypeMissing, or not application/json. Message: Content-Type must be application/json. A charset parameter is fine. On REST the same mistake is HTTP 422 VALIDATION_ERROR.
3400MCP-Protocol-VersionPresent, and not 2025-11-25 or 2025-06-18. Message: Unsupported MCP-Protocol-Version. This server supports MCP 2025-11-25 and 2025-06-18 only. error.data.supported is the list. A request without the header is served. Update the client if it sends an older version.
HTTP 400
{
  "jsonrpc": "2.0",
  "id": null,
  "error": {
    "code": -32600,
    "message": "Unsupported MCP-Protocol-Version. This server supports MCP 2025-11-25 and 2025-06-18 only.",
    "data": {"supported": ["2025-11-25", "2025-06-18"]}
  }
}

How a tool call flows

  1. The client sends the call. The assistant picks a tool. The client posts it to https://mcp.tanukitrade.com/mcp/v1 with the bearer token in the header.
  2. The server runs the REST route. Same arguments, same validation, same cache, and the same 120-per-minute budget. One tool call is one request.
  3. The chat gets the result. Success is the HTTP envelope in structuredContent and in the single text block. A domain failure is that envelope with isError: true. The assistant answers, or it fixes the arguments and calls again.

The server does not remember the previous call. If the assistant fans out across five tickers in parallel, that is five requests in the same minute.

The tool catalog

You rarely name a tool. Describe the question and the assistant matches the description. The table is what tools/list returns for a default PRO token: every group. An explicit group list omits the rest, and calling one of those is HTTP 200 with isError: true and code ENDPOINT_NOT_ENABLED. The 3 account tools are always listed. The same catalog is on Tools.

ToolGroupWhat it answers
list_symbolsDiscoverySymbols
list_expiriesDiscoveryExpiries
get_glossaryDiscoveryGlossary
list_fundamentals_profileFundamentalsCompany profile
list_fundamentals_benchmark_correlationFundamentalsBenchmark correlation
list_earningsFundamentalsEarnings
list_fundamentals_conversion_factorFundamentalsConversion factor
list_volatility_iv_metricsVolatilityIV metrics
list_volatility_term_structureVolatilityTerm structure
list_volatility_backwardation_summaryVolatilityBackwardation summary
list_volatility_call_put_skewVolatilityCall/put skew
list_0dte_expected_move_boxesRange0DTE boxes
list_range_binary_expected_moveRangeBinary expected move
list_range_std1_sigmaRange1-sigma range
list_range_delta_interpolated_ladderRangeDelta ladder
list_range_tanuki_smart_rangeRangeTanuki Smart range
list_gamma_profile_statesGammaProfile states
list_key_levels_primaryGammaPrimary key levels
list_key_levels_secondaryGammaSecondary key levels
list_gamma_net_exposuresGammaNet exposures
list_gamma_strikes_net_gexGammaStrike net GEX
list_gamma_strikes_net_dexGammaStrike net DEX
list_gamma_strikes_net_oiGammaStrike net OI
list_gamma_strikes_abs_oiGammaStrike abs OI
list_gamma_strikes_abs_gexGammaStrike abs GEX
list_gamma_strikes_net_volumeGammaStrike net volume
list_gamma_strikes_gex_by_volumeGammaStrike GEX by volume
list_gamma_strikes_net_vannaGammaStrike net vanna
list_gamma_strikes_net_charmGammaStrike net charm
list_chain_activityChainChain activity
list_chain_expiry_distributionChainExpiry distribution
list_chain_max_pain_summaryChainMax pain by expiry
list_technical_price_changeTechnicalPrice change
list_technical_realized_volatilityTechnicalRealized volatility
list_technical_ohlcvTechnicalDaily OHLCV
list_history_volatility_iv_rankHistoryIV rank history
list_history_volatility_ivxHistoryIVx history
list_history_volatility_call_put_skewHistoryCall/put skew history
list_history_0dte_expected_move_boxesHistory0DTE box history
list_history_gamma_profile_statesHistoryProfile history
list_history_key_levels_primaryHistoryPrimary levels history
list_history_key_levels_secondaryHistorySecondary levels history
list_history_gamma_net_exposuresHistoryNet exposure history
list_history_technical_price_changeHistoryPrice change history
list_history_technical_realized_volatilityHistoryRealized volatility history
list_history_conversion_factorHistoryConversion factor history
get_account_usageAccountAccount usage
get_account_clientsAccountAccount clients
get_account_statusAccountAccount status

Asking good questions

The assistant picks a tool by matching your words to the tool description.

  • Name the concept. IV rank, skew, backwardation, term structure, and implied move into earnings are the words on the tool descriptions.
  • Give the tickers. List them: SPX, NVDA, AAPL, /ES1. A symbols array can carry up to 300 names in one call. Futures keep the leading slash.
  • Anchor the expiry. Say 0DTE, the next weekly, or the front monthly. Aliases are 0, 1, w1–w4, M1–M3, and ALL.
  • Follow up by name. "Now show the term structure for the same two names" keeps the assistant on the tool it just used.
  • Keep New York time. Every timestamp is America/New_York with a numeric offset. Do not ask the assistant to rewrite them as Z.

Prompt pack

Copy one prompt after the client shows the TanukiTrade tools. These examples use discovery, fundamentals, or volatility. The other groups are on a default token. They are missing only when an explicit group list leaves them out.

Getting started

Verify the connection list_symbols

Verify the connection
Use the TanukiTrade tools to list the symbols SPX, AAPL and /ES1. Tell me which ones exist and their type. If a call fails, show me the exact error code.

What can you do with TanukiTrade?

What can you do with TanukiTrade?
List every TanukiTrade tool you have access to, one line each, grouped by Discovery, Fundamentals and Volatility. Then suggest three questions I could ask you as an options trader.

Pre-market

Morning volatility brief list_volatility_iv_metrics list_volatility_backwardation_summary list_earnings

Morning volatility brief
For SPX, QQQ, NVDA, TSLA, AAPL and AMZN: get IV rank, IV percentile and the 5-day IVx change, flag any backwardation, and list earnings in the next 7 days with the implied move. Give me a compact table sorted by IV rank, then three bullet takeaways.

Earnings week planner list_earnings list_volatility_iv_metrics

Earnings week planner
Which of these report earnings in the next 10 days: AAPL, MSFT, NVDA, AMZN, META, GOOGL, TSLA, NFLX? For each one show the date, before/after market, days to earnings, the implied move and current IV rank. Highlight where IV rank is low relative to the implied move.

Volatility

Cheap vs. rich IV screen list_volatility_iv_metrics list_volatility_call_put_skew

Cheap vs. rich IV screen
Rank SPY, QQQ, IWM, NVDA, AMD, TSLA, META, AAPL, MSFT and AMZN by IV percentile. Split them into "IV cheap" (below 30) and "IV rich" (above 70) and add the call/put skew on the optimal expiry for each. Explain in two sentences what the skew suggests for the rich names.

Term structure check list_volatility_term_structure list_expiries

Term structure check
Show the full term structure (expiry ALL) for SPX: DTE, IVx and backwardation per expiry. Is the curve in contango or backwardation, and where is the kink? Keep times in New York time.

Backwardation alert list_volatility_backwardation_summary

Backwardation alert
Check weekly and monthly backwardation for SPX, NDX, RUT, TSLA, NVDA and COIN. List only the names currently in backwardation and say whether it is weekly, monthly or both.

Fundamentals

Company snapshot list_fundamentals_profile list_fundamentals_benchmark_correlation

Company snapshot
Give me a one-paragraph snapshot of PLTR: sector, industry, market cap, P/E, EPS and dividend yield, plus which benchmark (SPY, QQQ, IWM, TLT, GLD) it correlates with best over 63 days and how strongly.

Is it the stock or the market? list_fundamentals_benchmark_correlation

Is it the stock or the market?
For NVDA, AMD, SMCI, ARM and AVGO show the best-fit benchmark and the 63-day correlation. Which of them mostly trade like QQQ, and which have their own story right now?

Developer

Turn this into code list_volatility_iv_metrics

Turn this into code
Call the IV metrics tool for SPX and AAPL. Then write the equivalent REST request as a curl command and as a short Python script (requests library) against https://api.tanukitrade.com. Read the token from an environment variable called TANUKI_API_TOKEN; never inline it.

TanukiTrade API and MCP. Derived options analytics for your code and for agents. Not investment advice. tanukitrade.com