Skip to main content
Glama

BotSpot: AI Trading, Backtests and Bots

Discover broker markets and option contracts

broker_markets
Read-onlyIdempotent

Read native instruments through a saved broker connection. Use search for prediction-market contracts/details/rules and options for a bounded option chain. Preserve native IDs and the saved account mode for subsequent quotes and trades.

Set "action" to choose the operation. Only send the fields listed for that action.

action="search": Find broker markets

No other fields required. Read-only native market/contract discovery through the signed-in user's saved broker connection. Use this before web search for contracts available on a connected prediction exchange such as Kalshi or Polymarket. Pass query to search, marketId to read one contract and its settlement rules, or eventId to list the child contracts of a native event; omit these selectors to browse. An event groups contracts and is not itself tradable: choose an exact returned child market identifier and outcome before quotes or approval. Results are bounded, not a complete venue inventory. Keep exact native identifiers and outcome mappings for get_broker_quotes and place_trade. The saved connection selects demo or live; demo availability/prices are not live forecasts. Never invent tickers or pass raw credentials.

action="options": Get broker option chain

No other fields required. Read-only option chain from the user's saved broker. Default: 5 strikes each side of the current price, nearest expirations in the next 45 days; selection and hasMore show what was left out. For more: strikesPerSide, expiration, strikeMin/strikeMax, right, or full=true with page. Greeks only with includeGreeks=true. Too large? Use retryWith. Independent reads can run in parallel. Never pass raw credentials.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "action": "<action>"
    },
    "name": "broker_markets"
  }
}

Input Schema

NameRequiredDescriptionDefault
fullNoUsed with action="options".
pageNoUsed with action="options".
limitNoUsed with action="search", action="options".
queryNoUsed with action="search".
rightNoUsed with action="options".
actionYesWhich operation to run: "search", "options". See the tool description for each one.
symbolNoaction="search": Alias for query when searching markets. | action="options": Alias for underlyingSymbol. Used with action="search", action="options".
eventIdNoUsed with action="search".
marketIdNoUsed with action="search".
strikeMaxNoUsed with action="options".
strikeMinNoUsed with action="options".
expirationNoUsed with action="options".
detailLevelNoUsed with action="options".
expirationEndNoUsed with action="options".
includeGreeksNoUsed with action="options".
strikesPerSideNoUsed with action="options".
expirationStartNoUsed with action="options".
underlyingSymbolNoUsed with action="options".
brokerCredentialIdNoUsed with action="search", action="options".

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • removedInput schema / properties / limit / anyOf
      Removed value: -[
      -  {
      -    "exclusiveMinimum": 0,
      -    "maximum": 100,
      -    "type": "integer"
      -  },
      -  {
      -    "exclusiveMinimum": 0,
      -    "maximum": 1000,
      -    "type": "integer"
      -  }
      -]
    • addedInput schema / properties / limit / exclusiveMinimum
      Added value: +0
    • addedInput schema / properties / limit / maximum
      Added value: +1000
    • addedInput schema / properties / limit / type
      Added value: +"integer"
    • addedInput schema / properties / symbol
      Added value: +{
      +  "anyOf": [
      +    {
      +      "maxLength": 64,
      +      "minLength": 1,
      +      "type": "string"
      +    },
      +    {
      +      "maxLength": 256,
      +      "minLength": 1,
      +      "pattern": "^[A-Za-z0-9./:_-]+$",
      +      "type": "string"
      +    }
      +  ],
      +  "description": "action=\"search\": Alias for query when searching markets. | action=\"options\": Alias for underlyingSymbol. Used with action=\"search\", action=\"options\"."
      +}
    • changedInput schema / properties / underlyingSymbol / description
      Previous value: -"Used with action=\"options\". Required for action=\"options\"."New value: +"Used with action=\"options\"."
  2. Changed2 schema fields changed
    • addedInput schema / properties / full
      Added value: +{
      +  "description": "Used with action=\"options\".",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / strikesPerSide
      Added value: +{
      +  "description": "Used with action=\"options\".",
      +  "maximum": 50,
      +  "minimum": 1,
      +  "type": "integer"
      +}
  3. Changed1 schema field changed
    • addedInput schema / properties / eventId
      Added value: +{
      +  "description": "Used with action=\"search\".",
      +  "maxLength": 512,
      +  "minLength": 1,
      +  "type": "string"
      +}
  4. Added

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, open-world, non-destructive, so the description correctly spends its words on what annotations cannot say: results are bounded and not a complete venue inventory, the saved connection selects demo or live, demo availability/prices are not live forecasts, and Greeks are only returned with includeGreeks=true. The one weak spot is 'Too large? Use retryWith', which references a parameter that does not exist in the schema (additionalProperties=false), leaving the agent with an unusable escape hatch.

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?

Front-loaded with the core constraint, then cleanly sectioned per action with a consistent 'action="x"' header and a restated field rule. Some waste remains: 'No other fields required.' is repeated verbatim and the 'never invent tickers / never pass raw credentials' warnings appear twice.

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?

For a 19-parameter, two-action tool with no output schema, the description covers the essentials an agent needs: operation selection, identifier preservation, defaults, truncation signaling (selection and hasMore), and the demo/live caveat. It falls short only on return shape beyond the hasMore/selection hint and on the dangling retryWith reference.

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 100%, so the baseline is 3, and the description earns above that by explaining what the terse 'Used with action=...' fields actually do: query searches, marketId reads one contract plus settlement rules, eventId lists child contracts, and the options defaults are 5 strikes per side and nearest expirations in the next 45 days with full=true plus page for expansion. Remaining fields (detailLevel, expirationStart/expirationEnd, limit, symbol alias) are left to the schema alone.

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?

Names two specific operations with distinct verbs and resources: 'Find broker markets' (native market/contract discovery) and 'Get broker option chain'. It separates itself from siblings by naming get_broker_quotes and place_trade as downstream steps and by contrasting discovery with web search.

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

Usage Guidelines5/5

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

Gives explicit when-to-use routing: use search 'before web search' for contracts on a connected prediction exchange such as Kalshi or Polymarket, pass query/marketId/eventId depending on whether you want a search, a single contract with rules, or an event's children, and omit selectors to browse. It also states the ordering constraint that an event is not tradable and an exact returned child market identifier plus outcome must be chosen before quotes or approval.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.