Skip to main content
Glama
tedorigawa001

TradingView-MCP

ensure_analysis_overlay

Idempotently ensures a TradingView chart has exactly one Bushido analysis overlay at the latest saved Pine version, reusing, adding, or upgrading and migrating inputs, then removing old versions; changes preview-only without confirmation.

Instructions

Idempotently ensure that the audited Bushido Analysis Overlay is present once on a target chart at the latest saved Pine version. It reuses a current instance, adds a missing one, or transactionally adds the latest version, migrates the analysis inputs, verifies them, then removes the old instance. Source, symbol, timeframe, pine_id, version and input contract are checked fail-closed. Without confirm=true, any chart-changing action is preview-only.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
confirmNo
pine_idYesSaved Bushido Analysis Overlay id from list_pine_scripts
chart_indexNo
expected_symbolYes
expected_timeframeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.10

TDQS

A4.2/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden and does so thoroughly. It discloses idempotency, transactional ordering, migration, verification, old-instance removal, fail-closed checks, and preview-only behavior without confirm=true. This is exceptionally transparent for a mutating tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is compact, front-loaded with the core purpose, and every sentence adds crucial behavioral detail. There is no filler or unnecessary repetition; it reads as a tight, information-dense spec.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a complex transactional tool, the description is highly complete: it explains the idempotent flow, transactionality, fail-closed validation, and preview gating. The main omission is chart_index semantics and any indication of return/result shape, which would improve completeness but are not fatal given the strong behavioral coverage.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 20%, so the description must compensate. It adds meaning for confirm (preview-only), expected_symbol/expected_timeframe (checked), and pine_id (checked), but chart_index is left unexplained. This is a clear gap, though most parameters gain some context from the description.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states a specific operation: idempotently ensure the audited Bushido Analysis Overlay is present once at the latest Pine version. It further explains the exact mechanisms (reuse, add, transactional migrate, verify, remove old), which distinguishes it from sibling tools like add_pine_to_chart or apply_analysis_overlay.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies when to use this tool: when the overlay must be present exactly once and at the latest version. However, it does not explicitly name alternatives or state when not to use it, leaving the agent to infer the distinction from the behavior described.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools