Skip to main content
Glama
daviddme

TradingView Unified MCP

by daviddme

data_get_last_bar

Read-only

Read the latest loaded candle; this is not a bid/ask quote.

Instructions

Read the latest loaded candle; this is not a bid/ask quote.

Input Schema

NameRequiredDescriptionDefault
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.7/5.0
Behavior4/5

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

Annotations already establish read-only and non-destructive behavior, so the bar is lower. The description adds meaningful behavioral context by saying the value is the 'latest loaded candle' and not a live bid/ask quote, implying chart-data freshness semantics rather than real-time quote semantics. It does not describe missing-data behavior or return shape, which keeps it below a 5.

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 a single efficient sentence with no wasted words. The key distinction from a quote is front-loaded after the action statement.

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 simple read-only tool with full parameter documentation and annotations, the description covers the core action and the quote distinction. However, with no output schema, it could say more about the returned candle fields or behavior when no bar is loaded, leaving a modest completeness gap.

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 100%, so both optional parameters are already fully documented in the schema. The description adds no parameter-specific semantics, which is acceptable given full schema coverage but not above baseline.

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: 'Read the latest loaded candle.' It also distinguishes the result from a bid/ask quote, which helps separate it from quote_get and quote_batch siblings. It does not explicitly distinguish itself from data_get_ohlcv, so it is clear but not fully sibling-differentiated.

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 'this is not a bid/ask quote' gives useful negative guidance about when not to use this tool. However, it does not state when to use it instead of data_get_ohlcv or quote_get, nor does it mention prerequisites or alternatives.

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