Skip to main content
Glama
avanza-mcp

avanza-mcp

by truls27a

Get Instrument

get_instrument
Read-onlyIdempotent

Retrieve instrument data by order book ID, including quotes, key ratios, dividend and report dates for stocks or ETFs, and NAV, fees, returns and top holdings for funds.

Instructions

Quote, key ratios, dividend and report dates for a stock or ETF; NAV, fees, returns and top holdings for a fund.

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": {
      "order_book_id": "<order_book_id>"
    },
    "name": "get_instrument"
  }
}

Input Schema

NameRequiredDescriptionDefault
order_book_idYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive, open-world, and an output schema exists, so the safety and return-shape burden is largely covered. The description adds the useful behavioral detail that the returned payload varies by asset class, but says nothing about coverage gaps (missing fields for some instruments) or rate limits.

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?

A single dense sentence with the resource and returned fields front-loaded and no filler. The semicolon split by instrument type is an efficient structure, though the sentence is packed enough that the two branches read quickly only on a second pass.

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 an output schema present, return values need no prose explanation, and the description covers the main data domains. What is missing is the identifier contract — how to get an order_book_id and what the tool does when one is not found — which for a one-parameter lookup tool is the main remaining gap.

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

Parameters2/5

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

Schema description coverage is 0% and the description never mentions the single parameter, so the meaning of 'order_book_id' — its format, where to obtain it, and whether it accepts ISINs or tickers — is left entirely unstated. The only clue is that the tool accepts stocks, ETFs, and funds.

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?

States a specific verb ('Get' via the title) with a concrete resource and enumerates the data classes returned, splitting behavior by instrument type: quote/ratios/dividends for stock or ETF, NAV/fees/returns/holdings for a fund. An agent can tell this is a detail-lookup by identifier, distinct from a search tool, though no sibling is named.

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

Usage Guidelines3/5

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

Usage is only implied: the schema requires an order_book_id, so an agent infers this is the call to make once it has an instrument identifier. There is no explicit when-to-use versus search_instruments, and no statement that the identifier must be resolved first or what happens on an unknown id.

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