Skip to main content
Glama

Agent Data Tools: Prices and DeFi

Stock price, stock quote

stock_quote
Read-only

Stock price and quote for any ticker or company name: last price, change and percent, previous close, day high and low, volume, 52-week high and low, currency, exchange and market time. Works for US and world stocks, ETFs, indices (^GSPC), currencies (EURUSD=X) and crypto pairs (BTC-USD). Up to 10 comma-separated tickers in one call return a quotes list. Use to price a stock in an agent, check a move, or value a portfolio line. Example: symbol=AAPL. Price $0.002/call via x402 USDC or a card key (/credits), first 10 free; failed calls free. Reads or computes only and changes nothing; each call is charged, so repeats are not free.

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": {
      "symbol": "<symbol>"
    },
    "name": "stock_quote"
  }
}

Input Schema

NameRequiredDescriptionDefault
symbolYesTicker (AAPL, VOLV-B.ST, ^GSPC, BTC-USD) or a company name; up to 10 tickers separated by commas (AAPL,MSFT,^GSPC) return { count, quotes, failed }

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / symbol / description
      Previous value: -"Ticker (AAPL, VOLV-B.ST, ^GSPC, BTC-USD) or a company name"New value: +"Ticker (AAPL, VOLV-B.ST, ^GSPC, BTC-USD) or a company name; up to 10 tickers separated by commas (AAPL,MSFT,^GSPC) return { count, quotes, failed }"
  2. Added

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, openWorldHint=true, idempotentHint=false and destructiveHint=false, so the safety profile is given. The description still earns credit for information annotations cannot carry: pricing/billing model ($0.002 per call via x402 USDC or card key, first 10 free, failed calls free, repeats are not free) and an explicit no-side-effect statement. It omits response format for failures and rate limits, so it is solid rather than exhaustive.

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 capability and returned fields, then coverage, then batching, then use cases and price. Every clause carries information, though the final sentence compresses pricing, auth, idempotency and side-effect claims together, making it denser than necessary. No wasted filler.

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

Completeness5/5

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

For a single-parameter tool with no output schema, the description documents the returned metrics directly and schema plus description together fully specify input syntax and the multi-ticker return shape ({count, quotes, failed}). An agent has everything needed to call it correctly and to predict cost behavior.

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%, so a 3 would be the baseline. The description goes beyond the schema by listing accepted symbol syntaxes (^GSPC for indices, EURUSD=X for FX, BTC-USD for crypto, VOLV-B.ST style suffixes, company names) and confirms that multi-ticker calls return a quotes list. The example symbol=AAPL adds a small amount of concreteness.

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?

Names a specific verb and resource ('Stock price and quote for any ticker or company name') and enumerates exactly what is returned (last price, change/percent, previous close, day high/low, volume, 52-week range, currency, exchange, market time). It also scopes the asset classes covered (US/world stocks, ETFs, indices, FX, crypto pairs), which makes it easy to separate from siblings like stock_history, stock_brief, btc_price or crypto_price.

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?

Gives concrete usage contexts ('price a stock in an agent, check a move, or value a portfolio line'), a worked example (symbol=AAPL), and the batching condition (up to 10 comma-separated tickers). It stops short of explicit when-not guidance or naming an alternative tool for historical or fundamental lookups, so it is clear context without exclusions.

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.

Resources