Skip to main content
Glama

BotSpot: AI Trading, Backtests and Bots

Show option payoff

show_option_payoff
Read-onlyIdempotent

Draws ONE option position at expiration from the legs described (call or put, long or short, strike, premium, contracts): one call or put, debit or credit spread, straddle, strangle, butterfly, iron condor; covered call with stock (shares, pricePaid: their cost, or today's price as an example); cash-secured put with cashSecured true. To compare positions, call once per position. Shows breakevens and a price slider. Uses only the inputs given; fetches no data and places no trade. Read-only. Shows an interactive panel in apps that support MCP Apps; always returns a text summary and a botspot.trade link.

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": {
      "underlying": "<underlying>",
      "expiration": "<expiration>",
      "legs": "<legs>"
    },
    "name": "show_option_payoff"
  }
}

Input Schema

NameRequiredDescriptionDefault
feesNo
legsYes
stockNo
nextStepsNoUp to two buttons; tap sends prompt. Only things BotSpot does today (place a trade, compare, backtest, build a bot); no price alerts.
expirationYes
priceRangeNo
underlyingYes
cashSecuredNo
underlyingPriceNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed27 schema fields changed
    • changedInput schema / properties / cashSecured / type
      Previous value: -"boolean"New value: +[
      +  "boolean",
      +  "null"
      +]
    • addedInput schema / properties / fees / anyOf
      Added value: +[
      +  {
      +    "minimum": 0,
      +    "type": "number"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / fees / default
      Removed value: -0
    • removedInput schema / properties / fees / minimum
      Removed value: -0
    • removedInput schema / properties / fees / type
      Removed value: -"number"
    • addedInput schema / properties / legs / items / properties / multiplier / anyOf
      Added value: +[
      +  {
      +    "exclusiveMinimum": 0,
      +    "type": "number"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / legs / items / properties / multiplier / default
      Removed value: -100
    • removedInput schema / properties / legs / items / properties / multiplier / exclusiveMinimum
      Removed value: -0
    • removedInput schema / properties / legs / items / properties / multiplier / type
      Removed value: -"number"
    • addedInput schema / properties / nextSteps / anyOf
      Added value: +[
      +  {
      +    "description": "Up to two buttons; tap sends prompt. Only things BotSpot does today (place a trade, compare, backtest, build a bot); no price alerts.",
      +    "items": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "label": {
      +          "maxLength": 40,
      +          "minLength": 1,
      +          "type": "string"
      +        },
      +        "prompt": {
      +          "maxLength": 500,
      +          "minLength": 1,
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "label",
      +        "prompt"
      +      ],
      +      "type": "object"
      +    },
      +    "maxItems": 2,
      +    "minItems": 1,
      +    "type": "array"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / nextSteps / items
      Removed value: -{
      -  "additionalProperties": false,
      -  "properties": {
      -    "label": {
      -      "maxLength": 40,
      -      "minLength": 1,
      -      "type": "string"
      -    },
      -    "prompt": {
      -      "maxLength": 500,
      -      "minLength": 1,
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "label",
      -    "prompt"
      -  ],
      -  "type": "object"
      -}
    • removedInput schema / properties / nextSteps / maxItems
      Removed value: -2
    • removedInput schema / properties / nextSteps / minItems
      Removed value: -1
    • removedInput schema / properties / nextSteps / type
      Removed value: -"array"
    • addedInput schema / properties / priceRange / anyOf
      Added value: +[
      +  {
      +    "items": {
      +      "minimum": 0,
      +      "type": "number"
      +    },
      +    "maxItems": 2,
      +    "minItems": 2,
      +    "type": "array"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / priceRange / items
      Removed value: -{
      -  "minimum": 0,
      -  "type": "number"
      -}
    • removedInput schema / properties / priceRange / maxItems
      Removed value: -2
    • removedInput schema / properties / priceRange / minItems
      Removed value: -2
    • removedInput schema / properties / priceRange / type
      Removed value: -"array"
    • removedInput schema / properties / stock / additionalProperties
      Removed value: -false
    • addedInput schema / properties / stock / anyOf
      Added value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "pricePaid": {
      +        "exclusiveMinimum": 0,
      +        "type": "number"
      +      },
      +      "shares": {
      +        "exclusiveMinimum": 0,
      +        "type": "number"
      +      }
      +    },
      +    "required": [
      +      "shares",
      +      "pricePaid"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / stock / properties
      Removed value: -{
      -  "pricePaid": {
      -    "exclusiveMinimum": 0,
      -    "type": "number"
      -  },
      -  "shares": {
      -    "exclusiveMinimum": 0,
      -    "type": "number"
      -  }
      -}
    • removedInput schema / properties / stock / required
      Removed value: -[
      -  "shares",
      -  "pricePaid"
      -]
    • removedInput schema / properties / stock / type
      Removed value: -"object"
    • addedInput schema / properties / underlyingPrice / anyOf
      Added value: +[
      +  {
      +    "exclusiveMinimum": 0,
      +    "type": "number"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / underlyingPrice / exclusiveMinimum
      Removed value: -0
    • removedInput schema / properties / underlyingPrice / type
      Removed value: -"number"
  2. Changed3 schema fields changed
    • addedInput schema / properties / cashSecured
      Added value: +{
      +  "type": "boolean"
      +}
    • addedInput schema / properties / nextSteps
      Added value: +{
      +  "description": "Up to two buttons; tap sends prompt. Only things BotSpot does today (place a trade, compare, backtest, build a bot); no price alerts.",
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "label": {
      +        "maxLength": 40,
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "prompt": {
      +        "maxLength": 500,
      +        "minLength": 1,
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "label",
      +      "prompt"
      +    ],
      +    "type": "object"
      +  },
      +  "maxItems": 2,
      +  "minItems": 1,
      +  "type": "array"
      +}
    • addedInput schema / properties / stock
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "pricePaid": {
      +      "exclusiveMinimum": 0,
      +      "type": "number"
      +    },
      +    "shares": {
      +      "exclusiveMinimum": 0,
      +      "type": "number"
      +    }
      +  },
      +  "required": [
      +    "shares",
      +    "pricePaid"
      +  ],
      +  "type": "object"
      +}
  3. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already cover readOnly/idempotent/non-destructive, but the description adds real context beyond them: no data fetching, no trade placement, an interactive panel in MCP Apps, and a guaranteed text summary plus a botspot.trade link as the fallback return. The only soft tension is openWorldHint=true alongside 'fetches no data', which reads as external only through the returned link — not enough to call a contradiction.

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 action, then scope enumeration, then the per-position rule, then behavioral caveats and return shape — a sensible ordering. The strategy list is long but each item prevents a failed call, so it earns its space; the parenthetical 'their cost, or today's price as an example' is slightly tangled.

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 9-parameter tool with no output schema and thin schema descriptions, the description still tells the agent what the return contains (text summary, link, optional interactive panel) and how to structure multi-position comparisons. The remaining gap is the undocumented auxiliary parameters (fees, priceRange, underlyingPrice) that an agent would want when refining a payoff chart.

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?

With only 11% schema description coverage the description must carry the load, and it does well for legs (kind, side, strike, premium, contracts), stock (shares, pricePaid as cost vs. today's example price), cashSecured, and the underlying/expiration intent. However fees, priceRange, underlyingPrice, and multiplier are never mentioned, leaving four of nine parameters with no meaning anywhere.

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?

States a specific verb and resource ('Draws ONE option position at expiration from the legs described') and then enumerates exactly which strategy shapes are supported — single call/put, vertical spread, straddle, strangle, butterfly, iron condor, covered call, cash-secured put. That enumeration lets an agent decide self-serve whether its position is in scope, and the emphasis on ONE distinguishes it from the position/holdings siblings.

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?

'To compare positions, call once per position' is an explicit invocation rule for the most likely mis-use (trying to pass multiple positions). 'Uses only the inputs given; fetches no data' tells the agent it must supply everything itself rather than relying on account state. It does not name a sibling alternative (e.g. show_position) for the case where the user wants live account data rather than a hypothetical payoff, so it stops short of full alternative routing.

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.