Skip to main content
Glama
AnteWall

Avanza MCP Server

by AnteWall

filter_warrants

Read-onlyIdempotent

Select warrants by issuer, direction, and sub-type with server-side pagination. Then use the orderbookId from results for detailed information.

Instructions

Select warrants by upstream filters with server-side pagination.

Sub-type, direction and issuer vocabulary is upstream-defined. Select an orderbookId from results before requesting info or extended details.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
offsetNo
issuersNo
sub_typesNo
directionsNo
sort_fieldNoname
sort_orderNoasc
underlying_instrumentsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
filterNo
sortByNo
warrantsYes
paginationNo
filterOptionsNo
totalNumberOfOrderbooksNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed12 schema fields changedv2.1.0
    • addedOutput schema / $defs
      Added value: +{
      +  "FilterOption": {
      +    "description": "Named filter option, optionally containing child options.",
      +    "properties": {
      +      "children": {
      +        "anyOf": [
      +          {
      +            "items": {
      +              "$ref": "#/$defs/FilterOption"
      +            },
      +            "type": "array"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null
      +      },
      +      "displayName": {
      +        "type": "string"
      +      },
      +      "numberOfOrderbooks": {
      +        "anyOf": [
      +          {
      +            "type": "integer"
      +          },
      +          {
      +            "type": "string"
      +          }
      +        ]
      +      },
      +      "value": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "value",
      +      "displayName",
      +      "numberOfOrderbooks"
      +    ],
      +    "type": "object"
      +  },
      +  "PaginationResponse": {
      +    "description": "Pagination values returned by filter endpoints.",
      +    "properties": {
      +      "limit": {
      +        "type": "integer"
      +      },
      +      "offset": {
      +        "type": "integer"
      +      }
      +    },
      +    "required": [
      +      "offset",
      +      "limit"
      +    ],
      +    "type": "object"
      +  },
      +  "SortBy": {
      +    "description": "Sort configuration for filter endpoints.",
      +    "properties": {
      +      "field": {
      +        "type": "string"
      +      },
      +      "order": {
      +        "enum": [
      +          "asc",
      +          "desc"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "field",
      +      "order"
      +    ],
      +    "type": "object"
      +  },
      +  "UnderlyingInstrument": {
      +    "description": "Underlying instrument for derivatives.",
      +    "properties": {
      +      "countryCode": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null
      +      },
      +      "instrumentType": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null
      +      },
      +      "name": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null
      +      },
      +      "orderbookId": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null
      +      }
      +    },
      +    "type": "object"
      +  },
      +  "WarrantFilter": {
      +    "description": "Filter criteria for warrants.",
      +    "properties": {
      +      "directions": {
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "issuers": {
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "subTypes": {
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "underlyingInstruments": {
      +        "items": {
      +          "description": "Avanza order-book ID from discovery; not the separate instrumentId.",
      +          "minLength": 1,
      +          "pattern": "^[0-9]+$",
      +          "type": "string"
      +        },
      +        "type": "array"
      +      }
      +    },
      +    "type": "object"
      +  },
      +  "WarrantFilterOptions": {
      +    "properties": {
      +      "categories": {
      +        "items": {
      +          "$ref": "#/$defs/FilterOption"
      +        },
      +        "type": "array"
      +      },
      +      "directions": {
      +        "items": {
      +          "$ref": "#/$defs/FilterOption"
      +        },
      +        "type": "array"
      +      },
      +      "endDates": {
      +        "items": {
      +          "$ref": "#/$defs/FilterOption"
      +        },
      +        "type": "array"
      +      },
      +      "exposures": {
      +        "items": {
      +          "$ref": "#/$defs/FilterOption"
      +        },
      +        "type": "array"
      +      },
      +      "issuers": {
      +        "items": {
      +          "$ref": "#/$defs/FilterOption"
      +        },
      +        "type": "array"
      +      },
      +      "subTypes": {
      +        "items": {
      +          "$ref": "#/$defs/FilterOption"
      +        },
      +        "type": "array"
      +      },
      +      "underlyingInstruments": {
      +        "items": {
      +          "$ref": "#/$defs/FilterOption"
      +        },
      +        "type": "array"
      +      }
      +    },
      +    "type": "object"
      +  },
      +  "WarrantListItem": {
      +    "description": "Warrant in filter/list results.",
      +    "properties": {
      +      "buyPrice": {
      +        "anyOf": [
      +          {
      +            "type": "number"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null
      +      },
      +      "countryCode": {
      +        "type": "string"
      +      },
      +      "direction": {
      +        "type": "string"
      +      },
      +      "hasPosition": {
      +        "type": "boolean"
      +      },
      +      "issuer": {
      +        "type": "string"
      +      },
      +      "name": {
      +        "type": "string"
      +      },
      +      "oneDayChangePercent": {
      +        "anyOf": [
      +          {
      +            "type": "number"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null
      +      },
      +      "orderbookId": {
      +        "type": "string"
      +      },
      +      "sellPrice": {
      +        "anyOf": [
      +          {
      +            "type": "number"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null
      +      },
      +      "spread": {
      +        "anyOf": [
      +          {
      +            "type": "number"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null
      +      },
      +      "stopLoss": {
      +        "anyOf": [
      +          {
      +            "type": "number"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null
      +      },
      +      "subType": {
      +        "type": "string"
      +      },
      +      "totalValueTraded": {
      +        "anyOf": [
      +          {
      +            "type": "number"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null
      +      },
      +      "underlyingInstrument": {
      +        "anyOf": [
      +          {
      +            "$ref": "#/$defs/UnderlyingInstrument"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null
      +      }
      +    },
      +    "required": [
      +      "orderbookId",
      +      "countryCode",
      +      "name",
      +      "direction",
      +      "issuer",
      +      "subType",
      +      "hasPosition"
      +    ],
      +    "type": "object"
      +  }
      +}
    • removedOutput schema / additionalProperties
      Removed value: -true
    • changedOutput schema / properties / filter / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": true,
      -    "description": "Filter criteria for warrants.",
      -    "properties": {
      -      "directions": {
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "issuers": {
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "subTypes": {
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "underlyingInstruments": {
      -        "items": {
      -          "description": "Avanza order-book ID from discovery; not the separate instrumentId.",
      -          "minLength": 1,
      -          "pattern": "^[0-9]+$",
      -          "type": "string"
      -        },
      -        "type": "array"
      -      }
      -    },
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "$ref": "#/$defs/WarrantFilter"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedOutput schema / properties / filterOptions
      Added value: +{
      +  "anyOf": [
      +    {
      +      "$ref": "#/$defs/WarrantFilterOptions"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null
      +}
    • changedOutput schema / properties / pagination / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": true,
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "$ref": "#/$defs/PaginationResponse"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedOutput schema / properties / sortBy / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": true,
      -    "description": "Sort configuration for filter endpoints.",
      -    "properties": {
      -      "field": {
      -        "type": "string"
      -      },
      -      "order": {
      -        "enum": [
      -          "asc",
      -          "desc"
      -        ],
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "field",
      -      "order"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "$ref": "#/$defs/SortBy"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedOutput schema / properties / warrants / items / $ref
      Added value: +"#/$defs/WarrantListItem"
    • removedOutput schema / properties / warrants / items / additionalProperties
      Removed value: -true
    • removedOutput schema / properties / warrants / items / description
      Removed value: -"Warrant in filter/list results."
    • removedOutput schema / properties / warrants / items / properties
      Removed value: -{
      -  "buyPrice": {
      -    "anyOf": [
      -      {
      -        "type": "number"
      -      },
      -      {
      -        "type": "null"
      -      }
      -    ],
      -    "default": null
      -  },
      -  "countryCode": {
      -    "type": "string"
      -  },
      -  "direction": {
      -    "type": "string"
      -  },
      -  "hasPosition": {
      -    "type": "boolean"
      -  },
      -  "issuer": {
      -    "type": "string"
      -  },
      -  "name": {
      -    "type": "string"
      -  },
      -  "oneDayChangePercent": {
      -    "anyOf": [
      -      {
      -        "type": "number"
      -      },
      -      {
      -        "type": "null"
      -      }
      -    ],
      -    "default": null
      -  },
      -  "orderbookId": {
      -    "type": "string"
      -  },
      -  "sellPrice": {
      -    "anyOf": [
      -      {
      -        "type": "number"
      -      },
      -      {
      -        "type": "null"
      -      }
      -    ],
      -    "default": null
      -  },
      -  "spread": {
      -    "anyOf": [
      -      {
      -        "type": "number"
      -      },
      -      {
      -        "type": "null"
      -      }
      -    ],
      -    "default": null
      -  },
      -  "stopLoss": {
      -    "anyOf": [
      -      {
      -        "type": "number"
      -      },
      -      {
      -        "type": "null"
      -      }
      -    ],
      -    "default": null
      -  },
      -  "subType": {
      -    "type": "string"
      -  },
      -  "totalValueTraded": {
      -    "anyOf": [
      -      {
      -        "type": "number"
      -      },
      -      {
      -        "type": "null"
      -      }
      -    ],
      -    "default": null
      -  },
      -  "underlyingInstrument": {
      -    "anyOf": [
      -      {
      -        "additionalProperties": true,
      -        "description": "Underlying instrument for derivatives.",
      -        "properties": {
      -          "countryCode": {
      -            "anyOf": [
      -              {
      -                "type": "string"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ],
      -            "default": null
      -          },
      -          "instrumentType": {
      -            "anyOf": [
      -              {
      -                "type": "string"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ],
      -            "default": null
      -          },
      -          "name": {
      -            "anyOf": [
      -              {
      -                "type": "string"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ],
      -            "default": null
      -          },
      -          "orderbookId": {
      -            "anyOf": [
      -              {
      -                "type": "string"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ],
      -            "default": null
      -          }
      -        },
      -        "type": "object"
      -      },
      -      {
      -        "type": "null"
      -      }
      -    ],
      -    "default": null
      -  }
      -}
    • removedOutput schema / properties / warrants / items / required
      Removed value: -[
      -  "orderbookId",
      -  "countryCode",
      -  "name",
      -  "direction",
      -  "issuer",
      -  "subType",
      -  "hasPosition"
      -]
    • removedOutput schema / properties / warrants / items / type
      Removed value: -"object"
  2. Addedv2.0.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent and non-destructive, so safety is covered. The description usefully discloses server-side pagination and that filter vocabulary is upstream-defined, but leaves the critical question open: where does the agent obtain valid issuer/sub-type/direction values? No filter-options sibling is named.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short sentences, front-loaded with what the tool does and following with the vocabulary caveat and the ordering workflow. No filler or repetition, though the vocabulary sentence is vague enough that its brevity costs clarity.

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?

The existence of an output schema excuses the description from explaining return values, and pagination plus the orderbookId step are covered. However, for an 8-parameter filter tool with zero schema descriptions, omitting where valid filter values come from leaves an agent unable to construct a correct call from this definition alone.

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

Parameters2/5

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

Schema description coverage is 0% across 8 parameters, so the description must carry the semantics and it does not. It never explains limit/offset defaults, sort_field/sort_order behavior, or the expected format of issuers, sub_types and directions arrays (only the nested underlying_instruments pattern carries documentation).

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 verb ('Select') and resource ('warrants') plus the mechanism ('upstream filters', 'server-side pagination'), which cleanly separates it from filter_certificates and filter_etfs. It stops short of naming a sibling explicitly, but the resource boundary is unambiguous.

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?

Gives a clear downstream workflow rule: pick an orderbookId from results before calling for info or extended details, which routes the agent toward get_warrant_info/get_warrant_details. It says nothing about when not to use it or what to do when filters are unavailable.

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