Skip to main content
Glama
sherajdev

Twelve Data MCP Server

by sherajdev

Get Real-Time Price

twelvedata_get_price
Read-onlyIdempotent

Retrieve the current real-time price for any trading symbol, supporting forex, precious metals, cryptocurrencies, and stocks. Enter a symbol to obtain the price.

Instructions

Get the current real-time price for any trading symbol.

Supports forex pairs, precious metals, crypto, and stocks. This is the fastest endpoint for getting current prices.

Symbols examples:

  • Metals: XAU/USD (gold), XAG/USD (silver), XPT/USD (platinum)

  • Forex: EUR/USD, GBP/USD, USD/JPY

  • Crypto: BTC/USD, ETH/USD

  • Stocks: AAPL, MSFT, GOOGL

Args:

  • symbol (string): Trading symbol (e.g., "XAU/USD", "EUR/USD", "BTC/USD")

  • response_format ('markdown' | 'json'): Output format

Returns: Current price of the symbol.

Examples:

  • "What's the current gold price?" -> symbol: "XAU/USD"

  • "Get EURUSD price" -> symbol: "EUR/USD"

  • "Bitcoin price now" -> symbol: "BTC/USD"

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
symbolYesSymbol to get price for (e.g., XAU/USD for gold, EUR/USD for forex)
response_formatNoOutput format: 'markdown' for human-readable or 'json' for structured datamarkdown
Behavior4/5

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

Annotations already cover readOnlyHint, idempotentHint, and destructiveHint. The description adds that it is the fastest endpoint and supports multiple asset types, which provides valuable behavioral context beyond annotations.

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?

Well-structured with sections and bullet lists. Each sentence adds value, though the examples section could be slightly more compact. Overall no wasted text.

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?

Given the tool simplicity and rich annotations, the description adequately covers purpose, parameters, usage examples, and return value. Could mention potential errors or rate limits, but not critical for a read-only, idempotent tool.

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

Parameters4/5

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

Schema coverage is 100% (baseline 3), but the description adds numerous real-world examples of symbol formats and usage patterns, which meaningfully guides parameter usage beyond the schema alone.

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?

Clearly states it gets the current real-time price for any trading symbol, and distinguishes itself by claiming to be the fastest endpoint for current prices. Examples of supported asset types reinforce the purpose.

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

Usage Guidelines4/5

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

Explicitly describes when to use it (fastest endpoint for current prices) and provides many example symbols. However, it does not explicitly mention when to consider sibling tools like get_quote or get_time_series.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/sherajdev/twelvedata-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server