Skip to main content
Glama
pbajkovic-hub

tv-cdp-mcp

tv_study_template

Destructive

Manage TradingView study templates: list saved templates, snapshot current chart studies, save a new template, apply one to the chart, or delete custom templates.

Instructions

Indicator (study) templates of the TradingView account, one tool switched on action. list (read-only): saved templates - custom first, then the built-in standard/fundamental ones. snapshot (read-only): the study set of the chart on screen as a template object (optionally written to file) - take one before apply so it can be undone. save: store the chart's studies under name (POST /api/v1/study-templates; replace=true to overwrite an existing custom template). apply: MUTATES THE CHART - REPLACES EVERY STUDY on the layout with the template from name (saved), template (inline) or file (JSON); returns studies before/after. delete: remove a custom template by name; confirm=true required; built-ins refuse. Verified live: full round trip - snapshot, save (listed in ~2 s), apply back (studies_before == studies_after), delete with confirm (gone in ~1 s).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fileNosnapshot: write the JSON here; apply: read the template JSON from here
nameNotemplate name (save / apply-by-name / delete)
actionYeslist | snapshot | save | apply | delete
layoutNochart layout id, target id, or 0-based index; default = the chart tab that is actually painting
confirmNodelete: must be true
replaceNosave: overwrite an existing custom template of that name (default false)
templateNoapply: inline template object, e.g. from a previous snapshot
save_symbolNosnapshot/save: include the symbol (default false)
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)
save_intervalNosnapshot/save: include the interval (default false)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.7/5.0
Behavior5/5

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

The description goes well beyond the annotations by explicitly warning that `apply` MUTATES THE CHART and REPLACES EVERY STUDY, that `delete` requires `confirm=true`, and that built-in templates refuse deletion. It also adds verified behavior such as list appearing in ~2 s, apply restoring studies, and delete taking effect in ~1 s.

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 long but dense and well-structured, using action labels as anchors. Each sentence contributes unique operational detail, including endpoint information, mutation warnings, and latency expectations, with the overall tool purpose front-loaded.

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 multi-action tool with 10 parameters and no output schema, the description is unusually complete. It explains return expectations for apply (studies before/after), snapshot (template object), list (custom before built-in), and delete (gone). The live round-trip verification further reduces agent uncertainty about real behavior.

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?

Schema description coverage is 100%, so the baseline is 3case. The description adds meaningful action-parameter mapping: `replace=true` overwrites, `confirm=true` is mandatory for delete, `file` can be written by snapshot or read by apply, and `template` supports inline JSON. This goes beyond the schema descriptions.

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 identifies the tool as managing TradingView indicator/study templates, with each action (`list`, `snapshot`, `save`, `apply`, `delete`) explicitly enumerated. It differentiates the tool from sibling study-related tools by focusing on saved templates and mutating the chart's study set rather than individual study values.

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?

Per-action usage guidance is explicit: snapshot is recommended before apply for undoability, delete requires confirm and refuses built-ins, replace overwrites existing templates. It does not explicitly compare to sibling tools like tv_list_studies or tv_get_study_values, but the action-based routing and clear read-only vs. destructive labeling give strong context.

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