Skip to main content
Glama

Etfs

etfs
Read-onlyIdempotent

Twelve Data reference list of supported ETF symbols (64,000+ listings worldwide) with exchange and country metadata, paged, default 200 rows, count is the total matched. Filter by symbol (e.g. "SPY"), country or exchange. Use to discover or validate ETF tickers before querying price endpoints. A stock ticker (e.g. "AAPL") is not an ETF and returns an empty list with empty_reason: wrong_instrument_class, use the stocks tool for those.

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": "SPY"
    },
    "name": "etfs"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoPage of the reference list (default 1). `count` in the response is the TOTAL matched; `data` is this page.
symbolNoOptional ETF ticker filter (e.g. "SPY", "QQQ", "VTI").
countryNoOptional country filter, full name or alpha code (e.g. "Japan", "Germany", "United States", "US").
exchangeNoOptional exchange filter (e.g. "NASDAQ", "NYSE", "Binance").
mic_codeNoOptional ISO 10383 market identifier code filter (e.g. "XNAS", "XLON").
outputsizeNoRows per page (default 200, max 5000). The unfiltered ETF list is 64,000+ rows, so narrow with symbol / country / exchange rather than raising this.

Output Schema

NameRequiredDescriptionDefault
codeNoResponse code
statusNoResponse status
messageNoResponse message

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / country / description
      Previous value: -"Optional country filter — full name or alpha code (e.g. \"Japan\", \"Germany\", \"United States\", \"US\")."New value: +"Optional country filter, full name or alpha code (e.g. \"Japan\", \"Germany\", \"United States\", \"US\")."
  2. Changed7 schema fields changed
    • changedInput schema / examples
      Previous value: -[
      -  {}
      -]New value: +[
      +  {
      +    "symbol": "SPY"
      +  },
      +  {
      +    "country": "United States",
      +    "outputsize": 20
      +  }
      +]
    • addedInput schema / properties / country
      Added value: +{
      +  "description": "Optional country filter — full name or alpha code (e.g. \"Japan\", \"Germany\", \"United States\", \"US\").",
      +  "type": "string"
      +}
    • addedInput schema / properties / exchange
      Added value: +{
      +  "description": "Optional exchange filter (e.g. \"NASDAQ\", \"NYSE\", \"Binance\").",
      +  "type": "string"
      +}
    • addedInput schema / properties / mic_code
      Added value: +{
      +  "description": "Optional ISO 10383 market identifier code filter (e.g. \"XNAS\", \"XLON\").",
      +  "type": "string"
      +}
    • addedInput schema / properties / outputsize
      Added value: +{
      +  "description": "Rows per page (default 200, max 5000). The unfiltered ETF list is 64,000+ rows, so narrow with symbol / country / exchange rather than raising this.",
      +  "type": "number"
      +}
    • addedInput schema / properties / page
      Added value: +{
      +  "description": "Page of the reference list (default 1). `count` in the response is the TOTAL matched; `data` is this page.",
      +  "type": "number"
      +}
    • changedInput schema / properties / symbol / description
      Previous value: -"Optional ETF ticker filter (e.g. \"SPY\")."New value: +"Optional ETF ticker filter (e.g. \"SPY\", \"QQQ\", \"VTI\")."
  3. Changed1 schema field changed
    • addedInput schema / properties / symbol
      Added value: +{
      +  "description": "Optional ETF ticker filter (e.g. \"SPY\").",
      +  "type": "string"
      +}
  4. Changed1 schema field changed
    • removedInput schema / additionalProperties
      Removed value: -true
  5. Changed2 schema fields changed
    • addedInput schema / examples
      Added value: +[
      +  {}
      +]
    • 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"
      +}
  6. First observed

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint, so the safety profile is covered. The description adds genuinely useful behavior: default 200 rows, `count` being the total matched, and the `empty_reason: wrong_instrument_class` signal on empty results. It doesn't discuss rate limits or how the 64,000-row list interacts with paging beyond the default, keeping it at a solid mid score.

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?

Front-loaded with what the tool returns, then filters, then the negative case. Most sentences earn their place, though the '64,000+ listings worldwide' figure and the long parenthetical ticker example are slightly padded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With annotations, a full schema and an output schema, the description covers the important gaps: usage intent, the wrong-instrument-class empty result, and total-vs-page semantics. Only minor items like the mic_code filter are left to the schema, which is acceptable.

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 100%, so every parameter is already documented with examples and the outputsize warning about the 64,000-row list. The description only restates the symbol/country/exchange filters and omits mic_code and page entirely, adding no semantics beyond the schema. Baseline 3 applies.

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?

States a specific verb and resource: a reference list of supported ETF symbols with exchange and country metadata, paged. It also explicitly separates itself from the sibling: 'A stock ticker (e.g. "AAPL") is not an ETF... use the stocks tool for those.' An agent can route correctly without opening either schema.

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

Usage Guidelines5/5

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

Gives positive guidance ('use to discover or validate ETF tickers before querying price endpoints') and an explicit when-not with the alternative named ('use the stocks tool' for stock tickers). Both the selection condition and the failure mode are spelled out.

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.