Skip to main content
Glama
daviddme

TradingView Unified MCP

by daviddme

pine_get_versions

Read-only

Read native saved Pine version history by exact script ID. An unexpected response is an error, never an empty version list.

Instructions

Read native saved Pine version history by exact script ID. An unexpected response is an error, never an empty version list.

Input Schema

NameRequiredDescriptionDefault
limitNo
script_idYes
target_idNoExact Chrome tab target ID from browser_list_tabs. Required for changes.
expected_layout_idNoExpected saved-layout ID. A mismatch stops the operation before writing.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, openWorldHint=true, and idempotentHint=false. The description adds useful behavioral context beyond that: an unexpected response is treated as an error and is never silently returned as an empty version list, which helps the agent interpret failures correctly.

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, front-loads the core purpose, and uses the second sentence for an important behavioral caveat. There is no filler or repetition.

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?

For a read-only version-history tool with no output schema, the description covers the main purpose and an important error-handling trait. It is still incomplete because it does not explain the limit parameter, version ordering, or what the returned version history contains.

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

Parameters2/5

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

Schema description coverage is only 50%. The description reinforces that script_id must be an exact script ID, but it says nothing about the limit parameter, even though pagination or result-size semantics are important for a version-history read. The target_id and expected_layout_id parameters are documented in the schema, but the description does not clarify their role in this read-only operation.

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

Purpose4/5

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

The description states a specific verb and resource: reading native saved Pine version history by exact script ID. This is clear enough to distinguish it from general source-reading siblings, but it does not explicitly name or contrast with the nearest alternatives such as pine_get_saved_source or pine_get_source.

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 phrase 'by exact script ID' implies that the tool requires a known exact ID and should not be used for discovery or listing, which gives some usage guidance. However, there is no explicit when-to-use/when-not-to-use guidance and no named alternative for listing scripts or reading current saved source.

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

Deploy Server

Other Tools