Skip to main content
Glama

Simulate Liquidation

simulate_liquidation
Read-onlyIdempotent

Simulates the impact of a collateral price drop on all active EVM lending positions for a wallet (Aave V3/V4, Spark, Morpho, Euler, Moonwell). Formula: newHF = currentHF × (1 − drop%). Shows per-position health factor changes and flags which positions would move to AT RISK, DANGER, or LIQUIDATED. Use this when asked: "What happens to this wallet if ETH drops 30%?", "Would this wallet survive a 40% market crash?", "Stress-test this address at -20% collateral", "Which positions are closest to liquidation if the market drops?"

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
walletYesEVM wallet address — must start with 0x and be exactly 42 characters, e.g. 0xabc…1234
collateral_drop_pctYesPercentage drop in collateral value to simulate, e.g. 30 for a 30% price crash. Range: 1–80.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
positionsYesPer-position simulation results
allSurvivedYesTrue if every position survives the simulated drop
atRiskCountYesPositions that would move to AT RISK or DANGER tier
liquidatedCountYesPositions that would be liquidated (HF < 1.0)
scenarioDropPctYesSimulated collateral price drop percentage

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint, idempotentHint, destructiveHint=false, openWorldHint), so the burden is lower. The description adds real substance beyond them: the exact formula (newHF = currentHF × (1 − drop%)) and the output behavior (per-position HF changes plus AT RISK / DANGER / LIQUIDATED flags). It stops short of stating protocol coverage limits or failure modes for non-lending wallets.

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?

Front-loaded with purpose, then the formula, then output shape, then usage cues — a sensible ordering. The four example queries are somewhat repetitive and could be trimmed, but each reinforces a distinct framing (single-asset drop, market crash, stress test, liquidation proximity).

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?

An output schema exists, so return values need not be described, yet the description still summarizes them helpfully. With two fully documented required parameters, full annotation coverage, and stated scope across five protocols, nothing an agent needs to invoke this correctly is missing.

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 the baseline is 3. The description adds meaning beyond the schema by explaining collateral_drop_pct as a wholesale collateral-value multiplier via the newHF formula, clarifying that the pct applies to the entire collateral side rather than a single asset.

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 (simulate) and resource (impact of a collateral price drop on active EVM lending positions), and names the protocols covered (Aave V3/V4, Spark, Morpho, Euler, Moonwell). An agent can distinguish it from calculate_health_factor (static current HF) and the scan_* siblings without opening any schema.

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?

Gives explicit triggering conditions via four natural-language user queries ('What happens to this wallet if ETH drops 30%?', 'Would this wallet survive a 40% market crash?', etc.), which is strong when-to-use guidance. It does not name an alternative tool (e.g., calculate_health_factor for the no-drop case) or state when NOT to use it, so it falls short of the 5 bar.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.