Skip to main content
Glama

Strategy build

option_strategy_build

Build multi-leg options structures from a chain snapshot, returning legs, breakevens, max gain/loss, probability of profit, net Greeks, and friction estimates; rank strategies for an outlook.

Instructions

Build one multi-leg structure from a chain snapshot: iron condor, iron butterfly, call butterfly, vertical spreads, straddle, strangle, covered call, cash-secured put, protective put, long call or put. Returns legs, breakevens, maximum gain and loss, model probability of profit, net Greeks and a friction estimate. Pass list to see the playbook, or an outlook from -2 to +2 to rank structures for a view. Before quoting any number from this result, state the degraded flag and its reason when the result carries one, and cite the artifact path it names.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "option_strategy_build"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNoWhich side a time spread is built from
nameNoStrategy name, e.g. iron_condor
sizeNo
offsetNoHow far out of the money a diagonal sells the near leg, as a fraction of spot
snapshotNo
vol_viewNo
list_onlyNoList the playbook instead
recommendNoOutlook -2 to +2 to rank for
far_snapshotNoThe later expiry, for a calendar or diagonal. Omit and the nearest later chain on disk for the same underlying is used
owns_underlyingNo
direction_unknownNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations declare readOnlyHint=false and idempotentHint=false but not destructive, and the description is consistent with a builder that emits an artifact. It adds genuinely useful behavioral context beyond the annotations: the full return payload (legs, breakevens, max gain/loss, probability of profit, net Greeks, friction) and the instruction to surface a degraded flag and cite the artifact path before quoting numbers. Missing are side effects of the non-read-only hint and any snapshot/permission prerequisites.

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?

It is front-loaded with the build action and return payload, then usage modes, then the degraded-flag caveat at the end where it matters most. The long enumeration of structure names is informative rather than filler, though it could be compressed without losing meaning.

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 an 11-parameter tool with no output schema, the description does the heavy lifting: it names the produced fields, explains the two operating modes, and warns about degraded results and artifact paths. The remaining gap is operational detail around the non-snapshot arguments and what artifact gets written.

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 11 parameters and only 55% schema description coverage, the description compensates for some of the gap by explaining the list and outlook (-2 to +2) modes and by tying construction to a chain snapshot. However, it says nothing about size, offset, vol_view, owns_underlying, direction_unknown, or far_snapshot, which the schema covers only partially, so several parameters remain thin in both places.

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 states a specific verb and resource ('Build one multi-leg structure from a chain snapshot') and enumerates the supported structures, from iron condor through cash-secured put. An agent can tell what it produces without opening the schema, but it never contrasts itself with siblings such as option_strategy_compare or option_backtest, so sibling disambiguation is left implicit.

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?

It gives concrete mode-selection guidance: pass a list flag to see the playbook, or an outlook of -2 to +2 to rank structures for a view. That is clear when-to-use context, but there are no exclusions or named alternatives for the compare/backtest paths an agent might otherwise pick.

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