Type-safe MCP server for controlling TradingView Desktop from Claude Code via Chrome DevTools Protocol.
Server has 11 well-named tools with consistent verb_noun patterns (chart_*, pine_*, quote_*, screenshot_*). All tools have descriptions (avg ~80 chars, within baseline 34-392). Input schemas are present and use Zod with type constraints (enums for timeframe, min/max for count). However, output schemas are NOT documented in the tool definitions, LLMs cannot see what fields to expect from responses. Error handling is minimal: no recovery guidance, no categorization of retryable vs fatal errors. No tool annotations (readOnlyHint/destructiveHint) despite clear risk levels. Parameter descriptions are adequate but lack dependency hints (e.g., 'Pine Editor must be open' is mentioned in pine_get_source but not in pine_set_source or pine_compile). Missing pagination for chart_get_ohlcv despite accepting a 'count' parameter up to 5000.
Fetch recent OHLCV bars from the active chart.
Read the current chart state: symbol, timeframe, visible studies, and last price.
Change the active chart symbol (e.g. "NASDAQ:AAPL").
Change the active chart timeframe / resolution.
Trigger a Pine compile and return diagnostics (errors, warnings).
Read the current Pine Editor source code. Pine Editor must be open.
Save the current Pine script (commits + reloads the indicator on the chart).
Output schemas not documented. LLMs cannot see what fields responses contain (e.g., quote_get returns what fields?). This forces agents to guess structure and wastes tokens on trial-and-error parsing.
No tool annotations (readOnlyHint/destructiveHint/idempotentHint). Tools are marked with Risk levels in metadata but MCP server does not expose these via tool annotations. Agents cannot distinguish safe reads from destructive writes at protocol level.
Error handling lacks recovery guidance. CallToolRequestSchema handler throws generic 'Unknown tool' and 'Invalid input' errors with no actionable next steps. Agents cannot self-correct or retry intelligently.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | C | 65 | 2025-06-18+ | v2 |
Replace the Pine Editor source code with new content.
Get a real-time quote snapshot for the active symbol (last price, day OHLC, volume).
Capture the chart pane as a base64-encoded PNG.
Capture the full TradingView viewport as a base64-encoded PNG.
Undocumented dependencies. pine_get_source description states 'Pine Editor must be open' but pine_set_source and pine_compile do not mention this prerequisite. Agents may call these tools in wrong order.
No pagination or result limits documented for chart_get_ohlcv. Accepts count up to 5000 but no guidance on when to paginate or what structure the response uses. Large results could exhaust context window.