Skip to main content
Glama
routescore

@routescore/mcp

Official
by routescore

simulate_scenario

Run Monte Carlo simulations to model expected premium and refunds for MEV sandwich risk, based on user-defined assumptions about frequency, loss, and deductible.

Instructions

Run a what-if Monte Carlo: model expected premium vs expected refund/loss over a horizon, given assumptions about sandwich frequency, average loss, and deductible. Returns a narrative + distribution.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
avg_loss_bpsNoAverage sandwich loss in bps. Default 40.
horizon_daysNoHorizon in days (≈ swaps). Default 30.
notional_usdYesPer-swap notional in USD.
deductible_bpsNoDeductible in bps. Default 100.
sandwich_freq_pctNoSandwich frequency as a percentage 0–100. Default 1.2.
Behavior3/5

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

With no annotations provided, the description must fully disclose behavior. It states the simulation returns 'a narrative + distribution' but does not clarify if the tool is read-only, whether it has side effects, or any computational or rate-limit considerations. Basic transparency is present but incomplete for a Monte Carlo tool that could be resource-intensive.

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 two sentences, front-loaded with the core action ('Run a what-if Monte Carlo') and outcome ('Returns a narrative + distribution'). Every phrase adds value, with no repetition or fluff. Highly efficient.

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 simulation tool with no output schema, the description vaguely states 'narrative + distribution' but does not specify the shape or format of the output. However, given the tool's purpose and the presence of well-documented parameters, the description is nearly complete. A more detailed output specification would improve it.

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%, so each parameter already has a description. The description adds context by grouping parameters as 'assumptions about sandwich frequency, average loss, and deductible,' but does not provide additional syntax or format details beyond the schema defaults. Baseline score of 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 uses specific verbs ('Run a what-if Monte Carlo') and clearly states the resource ('model expected premium vs expected refund/loss'). It distinguishes this simulation tool from sibling tools like 'quote_mev_cover' or 'check_swap' by explicitly naming the analysis type (Monte Carlo) and the inputs (sandwich frequency, average loss, deductible).

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 description implies when to use (for 'what-if' modeling) but provides no explicit guidance on when not to use or alternatives. It does not mention prerequisites or contrast with sibling tools, leaving the agent to infer usage context without clear boundaries.

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/routescore/mcp'

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