Skip to main content
Glama

simulate_montecarlo

Read-onlyIdempotent

Simulate asset price paths using geometric Brownian motion with contributions and withdrawals. Returns terminal prices, percentiles, expected value, probability of profit, and path statistics.

Instructions

GBM Monte Carlo with contributions/withdrawals. Up to 5000 paths.

Use when running a Monte Carlo simulation for asset price paths. Provide starting price, drift, volatility, time horizon, and number of simulations. Returns: simulated terminal prices, percentile distribution (5th/25th/50th/75th/95th), expected value, probability of profit, and path statistics. NOTE: Via MCP, keep simulations ≤ 1000 and years ≤ 30 for fastest response. For larger simulations (up to 5000 paths, 100 years), call the REST API directly at https://api.quantoracle.dev/v1/simulate/montecarlo.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
yearsNoSimulation horizon in years
annual_volNoAnnual volatility (e.g. 0.20 = 20%)
simulationsNoNumber of Monte Carlo paths
annual_returnNoExpected annual return (e.g. 0.10 = 10%)
contributionsNoPeriodic contribution amount (per year)
initial_valueNoStarting portfolio value
withdrawal_rateNoAnnual withdrawal rate as fraction of portfolio
Behavior4/5

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

Annotations (readOnlyHint=true, destructiveHint=false) already indicate safety. The description adds behavioral details: it returns simulated terminal prices, percentile distribution, expected value, probability of profit, and path statistics. It also notes performance limits and API fallback, providing context beyond structured fields.

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?

Two sentences plus a note; no wasted words. The first sentence captures the core functionality, and the note provides essential usage constraints. Information is front-loaded and easy to parse.

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 7 parameters and no output schema, the description covers purpose, usage limits, and expected outputs (terminal prices, percentiles, etc.). It lacks error handling details but is fairly complete for a simulation tool with defaults. Annotations further enrich context.

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 coverage is 100% with all 7 parameters described in the input schema. The description mentions 'starting price, drift, volatility, time horizon, number of simulations' and contributions/withdrawals, but does not add significant meaning beyond what schema descriptions already provide. Baseline 3 is appropriate.

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 clearly states the tool performs GBM Monte Carlo simulation with contributions/withdrawals, up to 5000 paths, and lists returned outputs (terminal prices, percentiles, etc.). It distinguishes from sibling tools which focus on bonds, indicators, options, or risk metrics, none of which are Monte Carlo simulations for asset price paths.

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?

The description explicitly says 'Use when running a Monte Carlo simulation for asset price paths' and provides performance constraints: keep simulations ≤ 1000 and years ≤ 30 for MCP, and directs to REST API for larger simulations. It does not mention when not to use this tool versus alternatives, but the usage context is well-defined.

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/QuantOracledev/quantoracle'

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