Skip to main content
Glama

Time Series

time_series
Read-onlyIdempotent

Twelve Data OHLC time series for a stock, forex, crypto, or ETF symbol. Requires symbol and interval (e.g. '1min', '1h', '1day'). Returns timestamped open/high/low/close + volume.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "symbol": "AAPL",
      "interval": "1h"
    },
    "name": "time_series"
  }
}

Input Schema

NameRequiredDescriptionDefault
orderNoSort order: "asc" or "desc" (default desc, newest first).
symbolYesTicker/symbol. Stocks e.g. "AAPL", "MSFT"; forex "EUR/USD"; crypto "BTC/USD"; ETFs "SPY". Comma-separate for a batch (e.g. "AAPL,MSFT"). Market indices (SPX, N225, ...) need a Grow-or-higher Twelve Data key passed via _apiKey, the shared key cannot quote them.
end_dateNoOptional end of range, "YYYY-MM-DD" or "YYYY-MM-DD HH:MM:SS".
exchangeNoOptional exchange filter (e.g. "NASDAQ", "NYSE", "Binance").
intervalYesBar interval: 1min, 5min, 15min, 30min, 45min, 1h, 2h, 4h, 1day, 1week, or 1month.
timezoneNoOptional timezone, e.g. "America/New_York" or "UTC".
outputsizeNoNumber of data points to return (1-5000, default 30).
start_dateNoOptional start of range, "YYYY-MM-DD" or "YYYY-MM-DD HH:MM:SS".

Output Schema

NameRequiredDescriptionDefault
codeNoResponse code
statusNoResponse status
messageNoResponse message

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / outputsize / description
      Previous value: -"Number of data points to return (1–5000, default 30)."New value: +"Number of data points to return (1-5000, default 30)."
    • changedInput schema / properties / symbol / description
      Previous value: -"Ticker/symbol. Stocks e.g. \"AAPL\", \"MSFT\"; forex \"EUR/USD\"; crypto \"BTC/USD\"; ETFs \"SPY\". Comma-separate for a batch (e.g. \"AAPL,MSFT\"). Market indices (SPX, N225, …) need a Grow-or-higher Twelve Data key passed via _apiKey — the shared key cannot quote them."New value: +"Ticker/symbol. Stocks e.g. \"AAPL\", \"MSFT\"; forex \"EUR/USD\"; crypto \"BTC/USD\"; ETFs \"SPY\". Comma-separate for a batch (e.g. \"AAPL,MSFT\"). Market indices (SPX, N225, ...) need a Grow-or-higher Twelve Data key passed via _apiKey, the shared key cannot quote them."
  2. Changed1 schema field changed
    • changedInput schema / properties / symbol / description
      Previous value: -"Ticker/symbol. Stocks e.g. \"AAPL\", \"MSFT\"; forex \"EUR/USD\"; crypto \"BTC/USD\"; ETFs \"SPY\"; indices \"IXIC\". Comma-separate for a batch (e.g. \"AAPL,MSFT\")."New value: +"Ticker/symbol. Stocks e.g. \"AAPL\", \"MSFT\"; forex \"EUR/USD\"; crypto \"BTC/USD\"; ETFs \"SPY\". Comma-separate for a batch (e.g. \"AAPL,MSFT\"). Market indices (SPX, N225, …) need a Grow-or-higher Twelve Data key passed via _apiKey — the shared key cannot quote them."
  3. Changed1 schema field changed
    • changedInput schema / examples
      Previous value: -[
      -  {
      -    "interval": "1h",
      -    "symbol": "AAPL"
      -  },
      -  {
      -    "interval": "1d",
      -    "symbol": "EURUSD"
      -  }
      -]New value: +[
      +  {
      +    "interval": "1h",
      +    "symbol": "AAPL"
      +  },
      +  {
      +    "interval": "1d",
      +    "symbol": "EURUSD"
      +  },
      +  {
      +    "interval": "1day",
      +    "outputsize": 20,
      +    "symbol": "SPY"
      +  }
      +]
  4. Changed8 schema fields changed
    • addedInput schema / properties / end_date
      Added value: +{
      +  "description": "Optional end of range, \"YYYY-MM-DD\" or \"YYYY-MM-DD HH:MM:SS\".",
      +  "type": "string"
      +}
    • addedInput schema / properties / exchange
      Added value: +{
      +  "description": "Optional exchange filter (e.g. \"NASDAQ\", \"NYSE\", \"Binance\").",
      +  "type": "string"
      +}
    • addedInput schema / properties / interval
      Added value: +{
      +  "description": "Bar interval: 1min, 5min, 15min, 30min, 45min, 1h, 2h, 4h, 1day, 1week, or 1month.",
      +  "type": "string"
      +}
    • addedInput schema / properties / order
      Added value: +{
      +  "description": "Sort order: \"asc\" or \"desc\" (default desc, newest first).",
      +  "type": "string"
      +}
    • addedInput schema / properties / outputsize
      Added value: +{
      +  "description": "Number of data points to return (1–5000, default 30).",
      +  "type": "number"
      +}
    • addedInput schema / properties / start_date
      Added value: +{
      +  "description": "Optional start of range, \"YYYY-MM-DD\" or \"YYYY-MM-DD HH:MM:SS\".",
      +  "type": "string"
      +}
    • addedInput schema / properties / symbol
      Added value: +{
      +  "description": "Ticker/symbol. Stocks e.g. \"AAPL\", \"MSFT\"; forex \"EUR/USD\"; crypto \"BTC/USD\"; ETFs \"SPY\"; indices \"IXIC\". Comma-separate for a batch (e.g. \"AAPL,MSFT\").",
      +  "type": "string"
      +}
    • addedInput schema / properties / timezone
      Added value: +{
      +  "description": "Optional timezone, e.g. \"America/New_York\" or \"UTC\".",
      +  "type": "string"
      +}
  5. Changed1 schema field changed
    • removedInput schema / additionalProperties
      Removed value: -true
  6. Changed2 schema fields changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "interval": "1h",
      +    "symbol": "AAPL"
      +  },
      +  {
      +    "interval": "1d",
      +    "symbol": "EURUSD"
      +  }
      +]
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "code": {
      +      "description": "Response code",
      +      "type": "number"
      +    },
      +    "message": {
      +      "description": "Response message",
      +      "type": "string"
      +    },
      +    "status": {
      +      "description": "Response status",
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
  7. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, and openWorldHint=true, so the safety profile is covered. The description adds the return shape (timestamped OHLC + volume), but says nothing about rate limiting, data availability windows, or the per-symbol key requirement for market indices — all real behavioral traits of a market-data call.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short sentences, front-loaded with the resource and its scope, with no filler. The final sentence about return fields is partly redundant given a dedicated output schema exists, which keeps it from a top score.

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 eight parameters, a full output schema, and rich annotations, the structured fields carry most of the burden, and the description covers the essentials. What is missing is the decision context — when this is the right call versus 'eod' or asset-listing siblings — and any note on rate limits or batch behavior that would change how an agent plans the call.

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%, with every parameter including examples and constraints (intervals, date formats, outputsize bounds, the Grow-or-higher key note for indices). The description merely restates that symbol and interval are required and gives three sample interval strings, adding no meaning beyond the schema, so baseline 3 applies.

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 names a specific verb and resource — Twelve Data OHLC time series — and enumerates the asset classes covered (stock, forex, crypto, ETF), which is more than a restatement of the tool name. It does not, however, distinguish itself from near-neighbors like 'eod' or the asset-listing tools, so an agent must infer the boundary itself.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no guidance on when to choose this tool over siblings such as 'eod' or the symbol-listing tools, and no mention of prerequisites or exclusions. The only usage-adjacent content is 'Requires symbol and interval', which is a parameter requirement rather than a decision rule.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.