Skip to main content
Glama
Public.com MCP Server

Public.com MCP Server

Official
by PublicDotCom

place_put_credit_spread

Executes a bull put credit spread by selling a higher-strike put and buying a lower-strike put, collecting a net credit after preflight risk checks and confirmation.

Instructions

Place a Bull Put Spread (put credit spread).

Sell a higher-strike put, buy a lower-strike put. Receives a net credit. ⚠️ 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 (higher strike). buy_contract_osi: OSI symbol of the put to buy (lower strike). quantity: Number of spreads. limit_price: Minimum net credit to receive 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_credit_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
Behavior5/5

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

Annotations already flag readOnlyHint=false, openWorldHint=true, idempotentHint=false, but the description adds materially more: the trade is real, the server preflights this exact spread and can refuse it against configured limits, a client-side confirmation prompt may appear, and a refusal returns 'submitted': false without sending. That is exactly the failure-mode and side-effect context an agent needs before invoking a live trading call.

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?

The description is front-loaded with purpose, then mechanics, then the execution warning, then parameters — a sensible order for a high-risk tool. The Args block is slightly list-like and repeats parameter names, but since the schema has zero descriptions that repetition is doing necessary work rather than padding.

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 mutation with seven parameters, the description covers execution risk, server-side preflight gating, refusal semantics, and every parameter's meaning and conditionality. An output schema exists, so the description is not obligated to document return values, and it still names the key refusal field. Nothing an agent needs to call this correctly is missing.

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 for all seven parameters: it distinguishes sell vs. buy by strike side, clarifies quantity is number of spreads (not contracts), defines limit_price as a minimum net credit per spread, documents the DAY default, makes expiration_time conditional on GTD with ISO 8601 format, and explains account_id's fallback to PUBLIC_COM_ACCOUNT_ID. This is meaningfully more than the bare schema titles provide.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description gives a specific verb and resource ('Place a Bull Put Spread') and then defines the mechanics precisely: sell the higher-strike put, buy the lower-strike put, receive a net credit. That makes it distinguishable from place_put_debit_spread and place_call_credit_spread by strategy structure rather than by name alone. It stops short of an explicit 'this is not the preflight tool' statement, so it lands at 4 rather than 5.

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 by the strategy definition and the 'This executes a real trade' warning, and the description explains what happens when the order is refused. However, it never tells the agent when to prefer the sibling preflight_put_credit_spread over this tool, nor does it state any prerequisite such as checking buying power or account setup first. Guidance is adequate but leaves the alternative-selection decision to inference.

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