MCP server that provides tools to fetch cryptocurrency price and candlestick data from OKX exchange API, integrated with Google Gemini for AI-powered queries
Two tools with basic schemas and descriptions, but significant gaps in parameter documentation and output schema specification. Tool names follow verb_noun convention (get_price, get_candlesticks). Descriptions are present but minimal (34-52 chars, below the 50-200 char LLM-optimized baseline). Input schemas are properly typed JSON Schema with required fields declared. However, parameter descriptions lack detail on constraints, formats, and valid ranges. No output schema documentation visible. Error handling exists but lacks recovery guidance. Overall: fair definition quality with room for improvement in parameter clarity and output documentation.
Get candlestick data for an OKX instrument
Get latest price for an OKX instrument
Parameter descriptions lack constraint details. 'instrument' parameter has no guidance on format (e.g., 'Must be a valid OKX instrument pair like BTC-USDT, ETH-USDT'). 'bar' parameter lists examples but no enum constraint or validation rules. 'limit' parameter states 'max 100' but no minimum specified.
Tool descriptions are too brief (34-52 chars vs. 50-200 char baseline). 'Get latest price for an OKX instrument' lacks context on when to use this vs. get_candlesticks, what data is returned, or prerequisites. LLMs cannot determine selection criteria from minimal descriptions.
No output schema documentation. Callers cannot know what fields are returned (e.g., does get_price return {price, timestamp, currency} or {data: {price, ...}}?). LLMs must guess structure, risking parsing errors and wasted tokens.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | C | 61 | 2026-07-28+ | v2 |
Error handling returns McpError with ErrorCode but no recovery guidance. When 'instrument' is invalid or API fails, the error message does not suggest next steps (e.g., 'Try calling list_instruments() to see valid pairs'). Agents cannot self-correct.
No pagination support. get_candlesticks accepts 'limit' but no offset/cursor parameter. If results exceed limit, agent cannot fetch next page. Large result sets risk context window exhaustion.