Skip to main content
Glama
AnteWall

Avanza MCP Server

by AnteWall

get_warrant_details

Read-onlyIdempotent

Fetch extended warrant details using an Avanza order-book ID from discovery, returning information beyond standard instrument data.

Instructions

Get recognized extended warrant details beyond info.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
order_book_idYesAvanza order-book ID from discovery; not the separate instrumentId.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
issuerNo
tradesNo
endDateNo
documentsNo
orderDepthNo
tradingUnitNo
collateralValueNo
brokerTradeSummariesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changedv2.1.0
    • removedOutput schema / additionalProperties
      Removed value: -true
    • addedOutput schema / properties / brokerTradeSummaries
      Added value: +{
      +  "items": {
      +    "description": "Summary of broker trades for a stock.",
      +    "properties": {
      +      "brokerCode": {
      +        "type": "string"
      +      },
      +      "brokerName": {
      +        "type": "string"
      +      },
      +      "buyVolume": {
      +        "type": "integer"
      +      },
      +      "netBuyVolume": {
      +        "type": "integer"
      +      },
      +      "sellVolume": {
      +        "type": "integer"
      +      }
      +    },
      +    "required": [
      +      "brokerCode",
      +      "sellVolume",
      +      "buyVolume",
      +      "netBuyVolume",
      +      "brokerName"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / collateralValue
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "number"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null
      +}
    • addedOutput schema / properties / documents
      Added value: +{
      +  "anyOf": [
      +    {
      +      "description": "Public instrument document links.",
      +      "properties": {
      +        "kid": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "default": null
      +        },
      +        "prospectus": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "default": null
      +        }
      +      },
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null
      +}
    • addedOutput schema / properties / endDate
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null
      +}
    • addedOutput schema / properties / issuer
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null
      +}
    • addedOutput schema / properties / orderDepth
      Added value: +{
      +  "anyOf": [
      +    {
      +      "description": "Order book depth showing buy and sell orders.",
      +      "properties": {
      +        "levels": {
      +          "default": [],
      +          "items": {
      +            "description": "Single level in the order book depth.",
      +            "properties": {
      +              "buySide": {
      +                "anyOf": [
      +                  {
      +                    "description": "Buy or sell side of an order.",
      +                    "properties": {
      +                      "price": {
      +                        "type": "number"
      +                      },
      +                      "priceString": {
      +                        "type": "string"
      +                      },
      +                      "volume": {
      +                        "type": "integer"
      +                      }
      +                    },
      +                    "required": [
      +                      "price",
      +                      "volume",
      +                      "priceString"
      +                    ],
      +                    "type": "object"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ],
      +                "default": null
      +              },
      +              "sellSide": {
      +                "anyOf": [
      +                  {
      +                    "description": "Buy or sell side of an order.",
      +                    "properties": {
      +                      "price": {
      +                        "type": "number"
      +                      },
      +                      "priceString": {
      +                        "type": "string"
      +                      },
      +                      "volume": {
      +                        "type": "integer"
      +                      }
      +                    },
      +                    "required": [
      +                      "price",
      +                      "volume",
      +                      "priceString"
      +                    ],
      +                    "type": "object"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ],
      +                "default": null
      +              }
      +            },
      +            "type": "object"
      +          },
      +          "type": "array"
      +        },
      +        "receivedTime": {
      +          "anyOf": [
      +            {
      +              "type": "integer"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "default": null
      +        }
      +      },
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null
      +}
    • addedOutput schema / properties / trades
      Added value: +{
      +  "items": {
      +    "description": "Individual trade information.",
      +    "properties": {
      +      "buyer": {
      +        "type": "string"
      +      },
      +      "buyerName": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null
      +      },
      +      "cancelled": {
      +        "type": "boolean"
      +      },
      +      "dealTime": {
      +        "type": "integer"
      +      },
      +      "matchedOnMarket": {
      +        "type": "boolean"
      +      },
      +      "price": {
      +        "type": "number"
      +      },
      +      "seller": {
      +        "type": "string"
      +      },
      +      "sellerName": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null
      +      },
      +      "volume": {
      +        "type": "integer"
      +      }
      +    },
      +    "required": [
      +      "buyer",
      +      "seller",
      +      "dealTime",
      +      "price",
      +      "volume",
      +      "matchedOnMarket",
      +      "cancelled"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / tradingUnit
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "number"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null
      +}
  2. Addedv2.0.0

TDQS

C2.3/5.0
Behavior2/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is covered. The description adds no behavioral context of its own — no mention of permissions, failure modes, or what 'recognized' coverage means — so it contributes nothing beyond the structured fields.

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?

It is a single short sentence, so it is not bloated, but the wording is awkward and non-front-loaded in meaning ('recognized extended warrant details beyond info'), leaving the agent to decode the intent.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

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

An output schema and rich annotations exist, so return-value and safety details need not be repeated; the missing piece is disambiguation from the many warrant/instrument siblings. That routing information is entirely absent, making the definition inadequate for correct selection.

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 100% and the single order_book_id parameter is fully documented in the schema, including the caveat that it is not the instrumentId. The description adds no parameter meaning, so the baseline 3 applies.

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

Purpose2/5

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

The phrase 'Get recognized extended warrant details beyond info' largely restates the tool name and is garbled enough that an agent cannot tell what 'recognized extended' means. The only differentiating signal, 'beyond info', is an oblique hint at the sibling get_warrant_info rather than a stated distinction.

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 explicit when-to-use statement, no prerequisites, and no named alternative. The vague 'beyond info' implies a relationship with get_warrant_info but never tells the agent when to pick this tool over it or over filter_warrants/get_warrant_info.

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