Skip to main content
Glama
Hamid-K

Avanza-MCP

by Hamid-K

avanza_order_edit

Update an open order's price, volume, or validity. Use dry-run to preview changes; confirm to apply live.

Instructions

Dry-run or update an existing open order (price/volume/valid_until). Live update requires TUI R/W mode and confirm=true.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
priceYes
volumeYes
confirmNo
order_idYes
account_idYes
session_idNoLegacy alias for tenant_session_id (non-paper tools only).
valid_untilYes
tenant_session_idNoOptional tenant session scope id for multi-session TUI/MCP routing.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.42

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations provided, the description carries the behavioral burden. It discloses that the tool supports dry-run versus live update, that confirm=true gates the live update, and that TUI R/W mode is a prerequisite. This goes well beyond a bare 'edit order' statement, though it does not detail response behavior or failure modes.

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?

A single dense sentence that front-loads the core action, then adds the critical condition for live execution. Every clause carries meaningful information; there is no filler or redundancy.

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?

The definition covers the essential behavioral modes and prerequisites despite lacking annotations and an output schema. It does not describe return values or error conditions, but for selecting and invoking the tool, the required parameters and the dry-run/live distinction are sufficiently specified.

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 description coverage is only 25%, but the description compensates for the key editable fields by naming price/volume/valid_until and explaining confirm's role in switching from dry-run to live update. However, account_id and order_id semantics are left implicit, and valid_until's format is unspecified.

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 edits an existing open order's price/volume/valid_until, and distinguishes 'dry-run' from 'live update'. The phrase 'existing open order' differentiates it from siblings like avanza_order_set (creating orders) and avanza_open_order_cancel/avanza_order_delete (removing orders).

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

Usage Guidelines4/5

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

It gives explicit context: this is for editing existing open orders, and live execution requires TUI R/W mode plus confirm=true. It does not explicitly name alternative tools for exclusion, but the intended use case is clear enough for an agent to route correctly.

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

Deploy Server

Other Tools