Skip to main content
Glama
iran-brokers-mcp

iran-brokers-mcp

by sepehr071

Stock options: chain or one contract

br_options
Read-onlyIdempotent

List and filter stock-option contracts by underlying, expiry, side, or open interest, or retrieve one contract's margin, break-even, and order book details.

Instructions

List stock-option contracts (about 1,600) with strike, expiry, moneyness, open interest and flows, or show one contract.

Source: Agah only. Prices are Rial per underlying share. Pass option (ISIN from the chain) for one contract with margin, break-even and order book. Use br_search first if unsure of the underlying.

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

Input Schema

NameRequiredDescriptionDefault
sideNoChain filter.
sortNoChain order.value
limitNo
expiryNoChain filter: expiry YYYY-MM-DD (Gregorian).
optionNoOption ISIN from a previous result, to show that one contract. Omit to list the chain.
underlyingNoChain filter: underlying symbol (Persian, e.g. 'شپنا') or company name part.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed14 schema fields changedv0.2.0
    • removedInput schema / properties / expiry / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • changedInput schema / properties / expiry / description
      Previous value: -"Chain filter: expiry date YYYY-MM-DD (Gregorian) as in the results."New value: +"Chain filter: expiry YYYY-MM-DD (Gregorian)."
    • addedInput schema / properties / expiry / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedInput schema / properties / option / anyOf
      Removed value: -[
      -  {
      -    "pattern": "^IR[A-Z0-9]{10}$",
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • changedInput schema / properties / option / description
      Previous value: -"Option ISIN from a previous result, e.g. 'IRO9PNES0A01', to show that one contract. Omit to list the chain."New value: +"Option ISIN from a previous result, to show that one contract. Omit to list the chain."
    • addedInput schema / properties / option / pattern
      Added value: +"^IR[A-Z0-9]{10}$"
    • addedInput schema / properties / option / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedInput schema / properties / side / anyOf
      Removed value: -[
      -  {
      -    "enum": [
      -      "call",
      -      "put"
      -    ],
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • changedInput schema / properties / side / description
      Previous value: -"Chain filter: call (اختیار خرید) or put (اختیار فروش) only."New value: +"Chain filter."
    • addedInput schema / properties / side / enum
      Added value: +[
      +  "call",
      +  "put",
      +  null
      +]
    • addedInput schema / properties / side / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedInput schema / properties / underlying / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • changedInput schema / properties / underlying / description
      Previous value: -"Chain filter: underlying symbol, e.g. 'شپنا' (Persian), or part of the company name."New value: +"Chain filter: underlying symbol (Persian, e.g. 'شپنا') or company name part."
    • addedInput schema / properties / underlying / type
      Added value: +[
      +  "string",
      +  "null"
      +]
  2. First observedv0.1.2

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, non-destructive, open-world behavior, so the bar is lower. The description nonetheless adds real context beyond the annotations: the data comes from Agah only, prices are in Rial per underlying share, and single-contract mode returns margin, break-even and order book.

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?

Front-loaded with the primary capability and contract count, followed by source and unit caveats and then the mode switch. Two sentences plus one guidance clause, with no filler.

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?

With no output schema, 6 optional parameters and two distinct modes, the description covers data source, unit semantics, both modes and the discovery prerequisite. Minor gaps remain around pagination for the chain listing and how filters interact with limit, but nothing that would cause a mis-invocation.

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?

Schema coverage is 83%, so most parameters are self-documenting (side, sort, limit, expiry, underlying all carry descriptions). The description still adds meaning the schema lacks: that `option` must come from a chain result and what the single-contract response contains, which helps the agent decide how to populate it.

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?

Uses a specific verb and resource ('List stock-option contracts... or show one contract'), states scope (~1,600 contracts) and fields (strike, expiry, moneyness, open interest, flows). No sibling tool covers options, and the description explicitly routes the agent to br_search and away from the chain-vs-single-contract ambiguity.

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 clear mode selection: pass `option` for one contract, omit it to list the chain, and use br_search first if the underlying is uncertain. It stops short of stating when not to use it (e.g. non-option instruments or non-Agah data), so it is strong but not fully exhaustive.

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