Skip to main content
Glama
daviddme

TradingView Alerts MCP Server

by daviddme

create_strategy_alert

Create a TradingView alert from a saved Pine strategy, automatically resolving the symbol and using strategy defaults; optionally send signals to a trading bot via webhook.

Instructions

Create a new TradingView alert from one of your saved Pine strategies. Resolves the symbol and its currency-id automatically, and reads the strategy's own default input values so the alert actually fires. Optionally set a webhook URL to forward signals to your own trading bot or endpoint.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
emailNoSend email on fire. Default false.
popupNoShow popup in TradingView. Default true.
inputsNoOverride strategy inputs, e.g. {"in_0": 21}. Defaults come from the script.
symbolYesEXCHANGE:TICKER, e.g. "BYBIT:BTCUSDT.P" or "BINANCE:ETHUSDT".
messageNoAlert message. Supports {{strategy.order.action}}, {{ticker}} etc.
strategyYesSaved strategy name, title or pine_id. See list_saved_strategies.
web_hookNoWebhook URL to POST the alert message to.
resolutionNoTimeframe in minutes, or "D"/"W". Default "15".
mobile_pushNoSend push notification. Default true.
expiration_daysNoDays until the alert expires. Default 31.
Behavior3/5

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

With no annotations provided, the description carries the burden of behavioral disclosure. It adds useful context about automatic symbol resolution and reading default inputs, which explains why the alert works. However, it omits details about side effects, error conditions, or permission requirements, so it is informative but not comprehensive.

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 two sentences that front-load the main purpose and include key behavioral details without any fluff. Every sentence contributes value, and it maintains a clear structure.

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

Completeness3/5

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

The description provides a solid overview of the tool's behavior and relies on the rich schema for parameter details. However, it does not mention what the tool returns (e.g., an alert ID or confirmation), which is important for a creation tool especially since there is no output schema. This gap prevents a higher score.

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

Parameters4/5

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

The schema already covers all 10 parameters with detailed descriptions (100% coverage), so the baseline is 3. The description adds extra meaning by highlighting the automatic symbol resolution (relating to 'symbol'), reading default inputs (relating to 'inputs'), and the optional webhook URL (relating to 'web_hook'), which goes beyond the schema.

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 the action ('Create a new TradingView alert') and the resource ('from one of your saved Pine strategies'). It distinguishes itself from siblings like list_alerts and delete_alerts by focusing on creation, and the extra details about resolving symbols and reading default inputs clarify the specific scope.

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

Usage Guidelines4/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 you want to create an alert from a saved strategy) and references list_saved_strategies in the schema, which is a helpful alternative for finding strategy names. However, it does not explicitly state when not to use it or mention other sibling tools like list_alerts for viewing existing alerts.

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/daviddme/tradingview-alerts-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server