Skip to main content
Glama
Public.com MCP Server

Public.com MCP Server

Official
by PublicDotCom

place_call_debit_spread

Place a bull call spread by buying a lower-strike call and selling a higher-strike call at a maximum net debit, with preflight checks and optional confirmation before the real trade is submitted.

Instructions

Place a Bull Call Spread (call debit spread).

Buy a lower-strike call, sell a higher-strike call. 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 call to sell (higher strike). buy_contract_osi: OSI symbol of the call to buy (lower 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_call_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.6/5.0
Behavior5/5

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

Annotations only say readOnlyHint=false, destructiveHint=false, and openWorldHint=true, none of which conveys that a real order is sent. The description adds material behavior: it executes a real trade, the server preflights the exact spread and can refuse it on limit breaches, the user is asked to confirm when supported, and refusals return "submitted": false without sending the order. That is genuine value beyond the structured fields and does not contradict them.

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 strategy definition, followed by a single dense behavior/risk warning, then a compact Args block where each line adds semantics the schema lacks. No filler sentences.

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 high-stakes trade-placement tool with 7 parameters, it covers the risk gating, confirmation flow, refusal return value, every parameter's meaning, and the GTD dependency. An output schema exists, so it need not explain full return payloads.

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 description coverage is 0%, so the description carries the full burden and does so: it clarifies the strike relationship for sell/buy OSI symbols, defines limit_price as the maximum net debit per spread, gives the DAY/GTD domain and default, makes expiration_time conditionally required for GTD, and notes account_id is optional when PUBLIC_COM_ACCOUNT_ID 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?

Uses a specific verb (place) plus the named strategy, then immediately defines the mechanics: buy a lower-strike call, sell a higher-strike call, paying a net debit. This makes it unambiguously distinguishable from the credit-spread and put-spread siblings without opening 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 context is implied rather than stated: it is clearly the execution step for a call debit spread, and it notes the server preflights automatically (implying a separate preflight call is unnecessary), but it never explicitly says when to prefer it over place_multileg_order or the dedicated preflight_call_debit_spread sibling, nor when to avoid it.

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