Skip to main content
Glama
sablier-ai

Sablier MCP Server

Official
by sablier-ai

analyze_derivatives

Read-only

Assess options and futures portfolio risk using FLOW-generated market paths. Computes VaR, CVaR, Sharpe, Sortino, max drawdown, and per-position Greeks.

Instructions

Run options risk analysis on FLOW-generated paths for a mixed futures + options portfolio. Reprices each option at every timestep of every path using Black-76, then computes portfolio-level risk metrics (VaR, CVaR, Sharpe, Sortino, max drawdown) and per-position Greeks (delta, gamma, vega, theta, rho). Returns separate risk breakdowns for: combined portfolio, futures-only, and options-only components, plus P&L timeseries percentile bands. Requires a flow_job_id from generate_flow_paths or simulate_flow_scenario. For scenario analysis: run simulate_flow_scenario first (e.g., 'VIX > 30 and crude drops 20%'), then call this tool to see how your options hedge performs under that scenario.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
capitalNoOverride portfolio capital. If None, uses portfolio's capital.
flow_job_idYesFlow generation job ID (from generate_flow_paths, or simulate_flow_scenario)
portfolio_idNoPortfolio UUID for underlying futures weights. Optional for standalone options analysis.
risk_free_rateNoAnnualized risk-free rate (default 0.045 = 4.5%)
options_positionsYesList of option positions. Each dict must have: underlying (display_name of the futures, e.g. 'E-mini S&P 500 Futures'), option_type ('call' or 'put'), strike (float), days_to_expiry (int), quantity (int, negative for short), implied_vol (float, annualized e.g. 0.20). Optional: entry_premium (float), multiplier (float, defaults to contract spec).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior5/5

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

With readOnlyHint=true, the description adds substantial context: it computes at every timestep using Black-76, returns separate risk breakdowns, and shows how scenario analysis is chained. It discloses the computational scope and dependencies without contradicting annotations.

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 description is front-loaded with the core purpose, then method, outputs, and usage prerequisites. It is longer than minimal, but every sentence adds operational detail for a complex tool; no filler or redundancy.

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?

The description covers the tool's inputs (via flow job), computation, outputs, and a usage example. With an output schema present and 100% schema description coverage, it provides enough context for an agent to select and invoke the tool correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline is 3. The description adds value by specifying the source of flow_job_id (generate_flow_paths or simulate_flow_scenario) and giving a concrete scenario example, which clarifies how the parameters relate to a workflow. Other parameters are already well-described in the schema.

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?

The description opens with a specific verb+resource: 'Run options risk analysis on FLOW-generated paths for a mixed futures + options portfolio.' It details the Black-76 re-pricing, portfolio metrics, Greeks, and output breakdowns. It distinguishes from siblings like price_option and test_flow_risk by requiring a flow_job_id and positioning itself for portfolio-level analysis.

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 explicitly states when to use: after obtaining a flow_job_id from generate_flow_paths or simulate_flow_scenario, and provides a scenario-analysis workflow. It does not name negative alternatives (e.g., 'use price_option for single-option pricing'), but the prerequisite and scenario usage are clear.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/sablier-ai/sablier-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server