Skip to main content
Glama
avanza-mcp

avanza-mcp

by truls27a

Get Price History

get_price_history
Read-onlyIdempotent

Retrieve closing prices for a specified order book ID over a chosen period, from one week to five years, to analyze price trends.

Instructions

Closing prices over a period.

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_price_history"
  }
}

Input Schema

NameRequiredDescriptionDefault
periodNoone_year
order_book_idYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.4/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=true, so the safety profile is fully covered elsewhere. The description adds nothing beyond them — no data granularity (daily closes?), no freshness, no handling of periods exceeding available history. With annotations carrying the safety burden, a low-but-not-minimum score reflects that no additional behavioral context is supplied.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Five words with zero padding, so nothing is wasted, but the result is a noun fragment rather than a front-loaded informative sentence. Brevity here reflects under-specification rather than disciplined editing.

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?

The existence of an output schema relieves the description of explaining return values, so the missing piece is not the response shape. Still, for a tool with a required identifier parameter and a seven-value enum, the definition leaves an agent without enough context to invoke it confidently or know when it is the right choice.

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%, so the description must compensate for both parameters and does not. It vaguely gestures at the period parameter but never explains the enum values (e.g. whether this_year is calendar-year or trailing), the default of one_year, or what order_book_id must contain — despite that being the sole required parameter.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The fragment "Closing prices over a period" conveys the resource (historical closing prices) but omits the key scope fact that it is for a single instrument identified by order_book_id, and does not distinguish it from siblings like get_instrument or get_holdings. An agent can infer it retrieves price history but must open the schema to learn it is instrument-scoped.

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

Usage Guidelines2/5

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

There is no guidance on when to use this versus alternatives such as get_instrument (which may also carry pricing) or search_instruments for finding an order_book_id. No prerequisites, no exclusions, no mention that a valid instrument identifier is needed first.

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