Skip to main content
Glama
Public.com MCP Server

Public.com MCP Server

Official
by PublicDotCom

place_call_credit_spread

Executes a bear call credit spread by selling a lower-strike call and buying a higher-strike call to collect net credit, with preflight checks before sending a real order.

Instructions

Place a Bear Call Spread (call credit spread).

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

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

Annotations only declare readOnly=false, openWorld=true, idempotent=false, destructive=false; the description adds materially more: this executes a real trade, the server preflights this exact spread, failures or configured limit breaches cause refusal, refusals return "submitted": false and are never sent, and confirmation is client-dependent. That is exactly the risk and failure-mode disclosure a trading tool needs beyond the structured hints.

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-loads the strategy and leg construction, then the execution warning, then a compact Args block — no repetition and no filler. Every sentence either defines the instrument or prevents a costly mistake.

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 7-param, non-idempotent, real-money mutation, it covers mechanics, required vs conditional params, the refusal contract, and even the refusal response shape, so the output schema is not needed for the agent to call it correctly. Nothing material is left out.

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 it does: each of the 7 params is explained with meaning the schema lacks — limit_price is the minimum net credit per spread (not a debit or per-leg price), quantity is number of spreads, time_in_force is DAY or GTD with DAY default, expiration_time is required only for GTD and is ISO 8601, 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?

States the verb (Place) and the exact resource (Bear Call Spread / call credit spread), then defines the mechanics: sell a lower-strike call, buy a higher-strike call, receive a net credit. That leg construction is specific enough that an agent can distinguish it from place_put_credit_spread or place_call_debit_spread without consulting another schema.

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?

Explains the submission flow (server preflight, refusal on failure or limit breach, optional user confirmation), which is useful context for calling it. However, it never says when to prefer this over place_multileg_order or when to run preflight_call_credit_spread explicitly first, so routing guidance is implied rather than stated.

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