Skip to main content
Glama
Public.com MCP Server

Public.com MCP Server

Official
by PublicDotCom

place_put_debit_spread

Place a bear put debit spread by buying a higher-strike put, selling a lower-strike put, and paying a net debit. Preflight validation runs before the real trade is submitted.

Instructions

Place a Bear Put Spread (put debit spread).

Buy a higher-strike put, sell a lower-strike put. Pays a net debit. ⚠️ This executes a real trade. Before submitting, the server preflights this exact spread and refuses it if the preflight fails or breaks a configured limit; when the client supports it, the user is asked to confirm. A refused order comes back with "submitted": false and is not sent.

Args: sell_contract_osi: OSI symbol of the put to sell (lower strike). buy_contract_osi: OSI symbol of the put to buy (higher strike). quantity: Number of spreads. limit_price: Maximum net debit to pay per spread. time_in_force: DAY or GTD. Default is DAY. expiration_time: Required when time_in_force is GTD. ISO 8601 format. account_id: Account ID. Optional if PUBLIC_COM_ACCOUNT_ID is set.

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": {
      "sell_contract_osi": "<sell_contract_osi>",
      "buy_contract_osi": "<buy_contract_osi>",
      "quantity": "<quantity>",
      "limit_price": "<limit_price>"
    },
    "name": "place_put_debit_spread"
  }
}

Input Schema

NameRequiredDescriptionDefault
quantityYes
account_idNo
limit_priceYes
time_in_forceNoDAY
expiration_timeNo
buy_contract_osiYes
sell_contract_osiYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.1

TDQS

A4.3/5.0
Behavior4/5

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

Goes well beyond the annotations: it discloses that this executes a real trade, that the server preflights and enforces configured limits, that user confirmation may be requested, and that a refused order returns 'submitted': false and is not sent. That refusal contract is genuinely useful. It stops short of describing fill/response shape, but the output schema likely covers that.

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 strategy definition and the trade-execution warning, then a tidy parameter list where each line earns its place. The Args block mirrors parameter names, which is slightly list-heavy but justified given zero schema coverage.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a live order-placement tool with an output schema, the description covers what the agent needs: leg semantics, debit pricing, TIF/expiration dependency, account defaulting, and what happens on refusal. Nothing critical is left to inference.

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

Parameters5/5

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

Schema coverage is 0%, so the description carries the full burden and does so: it explains each leg by strike role, defines quantity as spreads, limit_price as max net debit per spread, DAY/GTD with DAY default, ISO 8601 expiration required for GTD, and account_id as optional when the env var is set.

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 instrument ('Place a Bear Put Spread'), then defines the leg structure (buy higher-strike put, sell lower-strike put) and the cash flow (net debit). This cleanly distinguishes it from the sibling call-debit and put-credit spread tools without needing their schemas.

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

Usage Guidelines3/5

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

Usage is implied rather than stated: the agent must already know it wants a put debit spread. The note that the server preflights the exact spread internally hints that a separate preflight call is unnecessary, but the description never explicitly routes the agent away from preflight_put_debit_spread or place_multileg_order.

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