Skip to main content
Glama
AnteWall

Avanza MCP Server

by AnteWall

get_stock_quote

Retrieve real-time stock quotes with current pricing, bid/ask spreads, trading volumes, and market data for Swedish stocks using Avanza instrument IDs.

Instructions

Get real-time stock quote with current pricing and trading data.

Provides immediate price information including bid/ask spread, last trade, trading volumes, and real-time status. Lighter weight than get_stock_info.

Args: ctx: MCP context for logging instrument_id: Avanza instrument ID from search results

Returns: Real-time quote data with: - buy: Current buy (bid) price - sell: Current sell (ask) price - last: Last traded price - highest: Highest price today - lowest: Lowest price today - change: Price change - changePercent: Percentage change - totalValueTraded: Total value traded - totalVolumeTraded: Total volume traded - volumeWeightedAveragePrice: VWAP - isRealTime: Whether data is real-time

Examples: Get current quote for a stock: >>> get_stock_quote(instrument_id="5269")

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
instrument_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

With no annotations provided, the description carries full burden and does well. It discloses key behavioral traits: real-time nature ('real-time stock quote', 'immediate price information'), data freshness ('real-time status'), and performance characteristics ('lighter weight'). However, it doesn't mention rate limits, authentication requirements, or error conditions.

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?

The description is well-structured and front-loaded: purpose first, then differentiation, followed by parameter semantics, return values, and an example. Every sentence adds value with zero waste. The bulleted return format is appropriately detailed without being verbose.

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?

Given the tool's moderate complexity (single parameter, real-time data), no annotations, but with an output schema (implied by the detailed return description), the description is complete enough. It covers purpose, differentiation, parameter meaning, return structure, and provides an example - addressing all key aspects an agent needs.

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?

The schema has 0% description coverage, so the description must compensate. It provides meaningful context for the single parameter: 'instrument_id: Avanza instrument ID from search results' clarifies the parameter's purpose and source. The example further illustrates usage. However, it doesn't specify format constraints or validation rules.

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?

The description clearly states the tool's purpose with specific verbs ('Get real-time stock quote') and resources ('current pricing and trading data'). It explicitly distinguishes from sibling tool 'get_stock_info' by stating it's 'lighter weight', providing clear differentiation.

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?

The description provides explicit guidance on when to use this tool versus alternatives: 'Lighter weight than get_stock_info' tells the agent this is the preferred option for basic quote data. It also specifies the required parameter context ('Avanza instrument ID from search results'), giving clear prerequisites.

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/AnteWall/avanza-mcp'

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