Skip to main content
Glama

get_intraday_candles

Retrieve today's intraday OHLC candles for an Upstox instrument by specifying an interval or a unit and interval value.

Instructions

Get today's intraday candles (Upstox v3). Use interval (legacy names) OR unit+interval_value (minutes 1-300, hours 1-5, days 1).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "instrument_key": "<instrument_key>"
    },
    "name": "get_intraday_candles"
  }
}

Input Schema

NameRequiredDescriptionDefault
unitNo
intervalNo
instrument_keyYes
interval_valueNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are provided, so the description carries the burden. It discloses the version and the finite scope (today only), and bounds the interval values, but never states auth requirements, rate limits, or what candles contain (OHLCV? volume?), which matters for a data-fetch tool with zero annotation coverage.

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?

Two dense sentences, front-loaded with the core action, then the parameter-selection rule. No filler and nothing buried.

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?

With no annotations, no output schema, and four undocumented schema params, the description leaves gaps: instrument_key format, what a candle record contains, and whether the result set is bounded by market hours. The interval rules are well covered, but a complete definition for this tool would say more about inputs and results.

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 coverage is 0%, so the description must compensate — and it does substantially for three of four params, explaining mutual exclusivity of `interval` versus `unit`+`interval_value` and giving numeric ranges (minutes 1-300, hours 1-5, days 1) that the schema omits. However, `instrument_key`, the only required parameter, is entirely unexplained, and 'legacy names' is not defined beyond the enum.

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?

States a specific verb and resource ('Get today's intraday candles') plus an API version (Upstox v3). The 'today's intraday' scope implicitly separates it from the historical/expired candle siblings without naming them, so an agent can distinguish it, though explicit sibling differentiation is absent.

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?

Usage is only implied by 'today's' — the agent must infer that historical data belongs to get_historical_candles. The description does clarify the either/or selection between the two interval schemes, but that is parameter guidance rather than when-to-use-this-tool guidance.

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