Skip to main content
Glama
pbajkovic-hub

tv-cdp-mcp

tv_delete_alerts

Destructive

Permanently delete TradingView alerts by ID. Requires confirm=true; each ID is resolved to name and symbol before deletion, and the result confirms gone or still present after 5 seconds.

Instructions

MUTATES: PERMANENTLY delete the given alerts (REST /delete_alerts via the alerts REST handler; there is no undo - a deleted alert can only be re-created by cloning another one). Requires confirm=true. Every id is resolved to name + symbol BEFORE anything is deleted (unknown ids abort the whole call), and the result echoes { id, name, symbol, resolution, active } per deleted alert plus confirmed_gone read back from the server list (the delete can lag seconds; still_present lists ids that were still there after ~5 s). VERIFIED LIVE 2026-09-05: a paused clone (id 7700000006) deleted, confirmed gone in ~1 s.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idsYesalert ids to delete, as returned by tv_list_alerts
layoutNochart layout id, target id, or 0-based index; default = the chart tab that is actually painting
confirmYesmust be true - deletion is permanent
expect_layoutNolayout id the tab is expected to show right now; the call refuses if it differs (a tab keeps its target id when the user opens another layout in it)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true, but the description goes far beyond: it explains the irreversible nature, the resolution-to-name/symbol step before any deletion, the abort-on-unknown-id behavior, the exact result payload structure, the potential lag with still_present ids, and even a live verification date. This is exemplary behavioral disclosure.

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 front-loaded with the critical mutation warning, then packs each sentence with actionable detail—no redundancy. The structure flows from high-level purpose to execution details and a verification note, every sentence earns its place.

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

Completeness5/5

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

For a destructive operation with no output schema, this is remarkably complete: it covers the endpoint, irreversibility, required confirmation, pre-deletion resolution, abort behavior, response format, and lag characteristics. An agent can predict outcomes and side effects confidently. The only missing element, a formal output schema, is mitigated by the description itself.

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 covers 100% of parameters with descriptions (ids, confirm, layout, expect_layout), so baseline is 3. The description reinforces that confirm must be true and that ids are resolved before deletion, which adds process context but does not fundamentally change parameter semantics. It aligns with the schema rather than adding new meaning.

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 opens with 'MUTATES: PERMANENTLY delete the given alerts' and names the exact REST endpoint, clearly distinguishing this from siblings like tv_pause_alerts and tv_resume_alerts which handle temporary state. The verb 'delete' and resource 'alerts' are specific and unambiguous.

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?

It clearly states the permanent nature ('there is no undo') and the confirm=true requirement, implying this is for final removal rather than temporary suspension. It does not explicitly name alternative tools, but the context makes it obvious when to use this vs. others. A slightly higher score would require an explicit 'use tv_pause_alerts instead for temporary' clause.

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