Skip to main content
Glama
biranjan01
by biranjan01

analyze_position

Calculate breakeven, current P&L, and hold/exit levels for an open long option position from spot, strike, entry, days to expiry, and optional VWAP/IV.

Instructions

Score an open long option position: breakeven, current P&L, hold/exit framing.

Args: symbol: underlying symbol (for reporting) right: 'C' or 'P' strike: strike held entry: entry premium per share spot: current underlying price t_days: calendar days to expiry qty_shares: total shares (qty * lot_size), e.g. 6750 for 1 CANBK lot vwap: today's VWAP if known — adds the hold-above/exit-below filter iv: annualized IV; if omitted, estimated 0.28 (India F&O typical) — pass a real one when known

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ivNo
spotYes
vwapNo
entryYes
rightYes
strikeYes
symbolYes
t_daysYes
qty_sharesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It usefully discloses a default-injection behavior (IV estimated at 0.28 India F&O typical when omitted) and that vwap toggles a hold-above/exit-below filter, but it never says the tool is a pure computation with no side effects, nor how errors or missing inputs are handled.

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?

The purpose leads and the Args list follows; every line carries information that is unavailable in the schema. No filler sentences or redundancy.

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 a 9-parameter computational tool with no output schema and no annotations, the description covers inputs well and summarizes the outputs at a high level. Edge cases (expiry-day handling, units for entry/spot) are left implicit, which keeps it just short of complete.

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 Args block is doing all the work — and it does it: every one of the 9 parameters is documented with meaning, including 'C'/'P' for right, the lot-size multiplication example for qty_shares, and the vwap/iv conditional behavior. This is a genuine semantic upgrade over bare schema titles.

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 resource ('Score an open long option position') and enumerates the outputs (breakeven, current P&L, hold/exit framing). The 'open long position' scope implicitly separates it from market-wide siblings like option_chain, max_pain, and greeks, so an agent can route correctly.

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 scope (an already-held long option) and there is per-argument guidance ('vwap ... if known', 'pass a real one when known'), but the description never states when to choose this over siblings such as greeks or strategy_payoff, nor any exclusions for short/complex positions.

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