Skip to main content
Glama
indian-option-mcp

indian-option-mcp

Analyse an open position

analyze_position
Read-only

Evaluate open options or futures positions to see live P&L, Greeks, spot-move scenarios, breakevens, and max profit or loss at nearest expiry without placing orders.

Instructions

Analyse an open position you hold (options and/or futures, any expiries): live mark-to-market P&L per leg, net delta, gamma, theta (₹/day) and vega (₹ per IV point), P&L if spot moves ±1–5% now and at expiry, breakevens and max profit/loss at the nearest expiry. Read-only: nothing is stored and no orders are placed.

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": {
      "symbol": "<symbol>",
      "legs": "<legs>"
    },
    "name": "analyze_position"
  }
}

Input Schema

NameRequiredDescriptionDefault
legsYesPosition legs with your entry prices
symbolYesUnderlying, e.g. NIFTY, BANKNIFTY, RELIANCE

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.4.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already establish readOnlyHint=true, destructiveHint=false and openWorldHint=true; the description adds the meaningful clarification that nothing is stored and no orders are placed, and specifies the units/granularity of outputs (theta in ₹/day, vega in ₹ per IV point, shocks at the nearest expiry). It does not mention data freshness, latency, or what happens with malformed legs, which keeps it from a 5.

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?

A single dense sentence, front-loaded with the core action and the read-only guarantee placed last as the closing qualifier. Every clause lists a concrete computed output, so nothing is padding, though the output enumeration is long enough that a short structured list would scan faster.

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?

With no output schema, the description carries the full burden of explaining return contents, and it does so thoroughly: P&L per leg, four greeks with units, scenario P&L, breakevens, max profit/loss, each tied to a horizon. Combined with the safety annotations, an agent has enough to call it correctly; only error/edge-case behavior is unstated.

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?

Schema description coverage is 100%, so the schema already documents symbol, legs, expiry default, strike, lots and entry_price. The description adds only marginal semantics beyond that ('options and/or futures, any expiries', entry prices driving mark-to-market), which is consistent with but not richer than the schema. Baseline 3 applies.

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 ('Analyse an open position you hold') and then enumerates exactly what the analysis contains: live mark-to-market P&L per leg, net delta/gamma/theta/vega, spot-shock P&L at ±1-5%, breakevens and max profit/loss at nearest expiry. It is clearly a position-level tool that takes the user's own entry prices, which implicitly separates it from leg-level calculators. It does not name any sibling explicitly, so it stops short of the top score.

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?

The phrase 'position you hold' implies the precondition (you already have legs with entry prices), so an agent can infer when this applies. However, there is no explicit when-to-use/when-not guidance and no routing to alternatives such as calculate_greeks, calculate_payoff or what_if_greeks, all of which overlap with part of what this tool returns.

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