Skip to main content
Glama
AnteWall

Avanza MCP Server

by AnteWall

get_future_forward_details

Read-onlyIdempotent

Retrieve extended futures and forwards contract details for a Swedish order-book ID, including data beyond standard instrument info.

Instructions

Get recognized extended contract 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
tradesNo
documentsNo
orderDepthNo
underlyingNo
tradingUnitNo
collateralValueNo
brokerTradeSummariesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 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 / 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
      +}
    • addedOutput schema / properties / underlying
      Added value: +{
      +  "anyOf": [
      +    {
      +      "description": "Public market information for an underlying instrument.",
      +      "properties": {
      +        "instrumentSubType": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "default": null
      +        },
      +        "instrumentType": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "default": null
      +        },
      +        "listing": {
      +          "anyOf": [
      +            {
      +              "description": "Stock listing information.",
      +              "properties": {
      +                "countryCode": {
      +                  "anyOf": [
      +                    {
      +                      "type": "string"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ],
      +                  "default": null
      +                },
      +                "currency": {
      +                  "type": "string"
      +                },
      +                "marketListName": {
      +                  "anyOf": [
      +                    {
      +                      "type": "string"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ],
      +                  "default": null
      +                },
      +                "marketPlaceCode": {
      +                  "anyOf": [
      +                    {
      +                      "type": "string"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ],
      +                  "default": null
      +                },
      +                "marketPlaceName": {
      +                  "type": "string"
      +                },
      +                "marketTradesAvailable": {
      +                  "anyOf": [
      +                    {
      +                      "type": "boolean"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ],
      +                  "default": null
      +                },
      +                "shortName": {
      +                  "type": "string"
      +                },
      +                "tickSizeListId": {
      +                  "anyOf": [
      +                    {
      +                      "type": "string"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ],
      +                  "default": null
      +                },
      +                "tickerSymbol": {
      +                  "anyOf": [
      +                    {
      +                      "type": "string"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ],
      +                  "default": null
      +                }
      +              },
      +              "required": [
      +                "shortName",
      +                "currency",
      +                "marketPlaceName"
      +              ],
      +              "type": "object"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "default": null
      +        },
      +        "name": {
      +          "type": "string"
      +        },
      +        "orderbookId": {
      +          "type": "string"
      +        },
      +        "previousClosingPrice": {
      +          "anyOf": [
      +            {
      +              "type": "number"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "default": null
      +        },
      +        "quote": {
      +          "anyOf": [
      +            {
      +              "description": "Latest available stock quote data; inspect isRealTime and source timestamps.",
      +              "properties": {
      +                "buy": {
      +                  "anyOf": [
      +                    {
      +                      "type": "number"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ],
      +                  "default": null
      +                },
      +                "change": {
      +                  "anyOf": [
      +                    {
      +                      "type": "number"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ],
      +                  "default": null
      +                },
      +                "changePercent": {
      +                  "anyOf": [
      +                    {
      +                      "type": "number"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ],
      +                  "default": null
      +                },
      +                "highest": {
      +                  "anyOf": [
      +                    {
      +                      "type": "number"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ],
      +                  "default": null
      +                },
      +                "isRealTime": {
      +                  "anyOf": [
      +                    {
      +                      "type": "boolean"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ],
      +                  "default": null
      +                },
      +                "last": {
      +                  "anyOf": [
      +                    {
      +                      "type": "number"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ],
      +                  "default": null
      +                },
      +                "lowest": {
      +                  "anyOf": [
      +                    {
      +                      "type": "number"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ],
      +                  "default": null
      +                },
      +                "sell": {
      +                  "anyOf": [
      +                    {
      +                      "type": "number"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ],
      +                  "default": null
      +                },
      +                "spread": {
      +                  "anyOf": [
      +                    {
      +                      "type": "number"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ],
      +                  "default": null
      +                },
      +                "timeOfLast": {
      +                  "anyOf": [
      +                    {
      +                      "type": "integer"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ],
      +                  "default": null
      +                },
      +                "totalValueTraded": {
      +                  "anyOf": [
      +                    {
      +                      "type": "number"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ],
      +                  "default": null
      +                },
      +                "totalVolumeTraded": {
      +                  "anyOf": [
      +                    {
      +                      "type": "number"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ],
      +                  "default": null
      +                },
      +                "updated": {
      +                  "anyOf": [
      +                    {
      +                      "type": "integer"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ],
      +                  "default": null
      +                },
      +                "volumeWeightedAveragePrice": {
      +                  "anyOf": [
      +                    {
      +                      "type": "number"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ],
      +                  "default": null
      +                }
      +              },
      +              "type": "object"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "default": null
      +        },
      +        "reference": {
      +          "anyOf": [
      +            {
      +              "type": "boolean"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "default": null
      +        }
      +      },
      +      "required": [
      +        "orderbookId",
      +        "name"
      +      ],
      +      "type": "object"
      +    },
      +    {
      +      "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 beyond those annotations, such as authentication requirements, rate limits, or what 'extended' details include. It does not contradict the annotations.

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?

The description is a single short sentence and is not bloated, so it satisfies basic concision. However, its structure and phrasing are awkward, and it does not front-load actionable selection criteria.

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 exists, so return values need not be described. Still, for a 'details' tool that sits alongside get_future_forward_info, the description should clarify what additional detail is returned and when to prefer it, which it does not. The annotations and parameter schema cover safety and input, but the core distinction is missing.

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 required parameter order_book_id is fully documented there, including the warning that it is not the separate instrumentId. The description adds no parameter meaning beyond the schema, so the baseline of 3 applies when the schema does the heavy lifting.

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 description contains a verb and resource ('Get ... details'), but the phrase 'recognized extended contract details beyond info' is vague and circular. It does not clearly distinguish this tool from the sibling get_future_forward_info, so an agent cannot confidently select it on purpose alone.

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, when-not-to-use, or alternative selection guidance. The phrase 'beyond info' weakly hints that this is a more detailed sibling to get_future_forward_info, but it never names the alternative or states the condition for choosing it.

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