Skip to main content
Glama
avanza-mcp

avanza-mcp

by truls27a

Get Transactions

get_transactions
Read-onlyIdempotent

Retrieve transaction history for Avanza accounts—trades, deposits, dividends, and fees—newest first, with optional date range, account, and limit filters. Requires an active BankID session.

Instructions

Transactions (trades, deposits, dividends, fees), newest first. Needs a live session.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_transactions"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
date_toNoYYYY-MM-DD; default today
date_fromNoYYYY-MM-DD; default 30 days before date_to
account_idNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and open-world behavior, so the bar is low. The description still adds two things the annotations do not: the result ordering ('newest first', which implies the limit selects the most recent N rather than an arbitrary page) and the live-session auth requirement.

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?

Two short sentences with zero filler, resource first and the operational constraint second. Every clause carries information the agent needs.

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?

An output schema exists, so return values need not be described, and the date defaults are in the schema. What is missing for a 4-param query tool is the account_id filtering semantics and any note on result-set size relative to the limit default of 100.

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

Parameters3/5

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

Schema coverage is 50% — date_from and date_to are documented inline, but limit and account_id are not. The description does not clarify whether account_id filters to one account or is optional context, which is the main semantic gap an agent would hit; the newest-first note only implicitly explains what limit counts.

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 resource (transactions) and enumerates the record kinds covered — trades, deposits, dividends, fees — plus the sort order. It is clearly distinguishable from get_holdings or get_accounts, though it does not name a sibling to contrast against.

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?

The prerequisite 'Needs a live session' tells the agent a session must exist before calling, which is real usage guidance. However, there is no explicit when-to-use/when-not framing and no pointer to an alternative when no live session is available (e.g. connect_avanza or bankid_login_start).

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