Skip to main content
Glama
avanza-mcp

avanza-mcp

by truls27a

Disconnect Avanza

disconnect_avanza

Logs out of Avanza and deletes the stored session while keeping the holdings snapshot intact. Use it to end authenticated access and clear saved credentials.

Instructions

Log out of Avanza and delete the stored session. The holdings snapshot is kept.

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": "disconnect_avanza"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

The annotations already declare openWorldHint=true and destructiveHint=false, so the description's job is to explain scope. It does that well by naming exactly what is removed (the stored session) and what survives (the holdings snapshot), which is what makes destructiveHint=false credible. It stops short of saying whether in-flight or subsequent calls fail once disconnected.

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 sentences, no waste, with the primary action front-loaded and the retention caveat placed 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.

Completeness4/5

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

For a zero-parameter action tool with an output schema and a safety annotation profile, the description covers the action and its one non-obvious side effect. The only meaningful omission is post-disconnection behavior for other tools.

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 declares zero parameters, so the baseline is 4 and there is nothing for the description to compensate for. It adds no parameter claims, correctly matching the empty input object.

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 pairs a specific verb ("Log out") and object ("the stored session") with the implicit resource, Avanza. It also states a second effect (session deletion) and a retention guarantee ("The holdings snapshot is kept"), which cleanly separates it from connect_avanza, avanza_status, and the read-only data tools.

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?

"Log out" strongly implies when to call it, and the phrase names the counterpart state to connect_avanza. However, there is no explicit when/when-not guidance, no note about calling it before re-authenticating, and no statement about what happens to other tools after disconnection.

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