Skip to main content
Glama

ASPERN: counterparty checks for agents

Try a withdrawal before making it (free up to $1,000)

simulate_withdrawal
Idempotent

TRY ONE WITHDRAWAL FROM A VAULT BEFORE YOU MAKE IT. Runs the vault’s own withdraw(amount, holder, holder) by eth_call at the head block, as the holder you name or, if you name none, as its largest depositor: the contract executes and nothing is signed, sent or spent. Says whether it would have gone through, the revert reason where it would not (e.g. NotEnoughLiquidity, TransferReverted past a V2 vault’s idle balance), the block, and what the holder’s position was worth; a size over what the holder owns is tried at their position and said so. It does NOT show a later block, or what happens once somebody else takes the same free money. Morpho vaults for now; anything else answers simulated: false and is not charged. FREE up to $1,000; over it PAID, $2 a simulation over x402, or free with a decision pass from this vault’s due-diligence report.

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": {
      "vault": "<vault>",
      "amountUsd": "<amountUsd>"
    },
    "name": "simulate_withdrawal"
  }
}

Input Schema

NameRequiredDescriptionDefault
passNoA decision pass from this vault’s due-diligence report (its X-ASPERN-Decision-Pass header): simulations over $1,000 on that vault without paying again.
vaultYesThe vault slug, or an address we can resolve to one. `list_vaults` or `find_vaults` find a slug.
holderNoThe address to withdraw as. Leave it out to try as the vault’s largest depositor.
amountUsdYesHow much to withdraw, in US dollars. Up to 1000 is free.

Output Schema

NameRequiredDescriptionDefault
atNoWhen, UTC.
metaNoHow current this answer is and what it was read from: `freshness` and the ages behind it. Present on every answer from this server, whatever the tool.
saysYesThe answer in one paragraph.
blockNoThe block it was simulated at.
priceYes`usd` for a paid simulation and `freeUpToUsd`.
vaultYesThe vault slug the request resolved to.
holderNoThe address the withdrawal was tried as.
paidByNofree, report-pass or this-call.
reasonNoThe revert reason where it would have reverted.
askedUsdNoThe amount asked.
holderAsNonamed or largest-depositor.
triedUsdNoThe amount tried: the amount asked, or the holder’s position less 0.1% where they own less.
warningsNoAnything the server wants a caller to know about THIS answer before acting on it. Empty is the normal case and is not a guarantee.
holderUsdNoWhat that holder’s shares were worth at the block.
simulatedYesWhether a withdrawal was run. False where the vault is not one we simulate, no endpoint answered, or there was no holder to try as; nothing is charged then.
limitationsNoWhat one simulation does not show.
wouldGoThroughYesTrue if the simulated withdraw call returned at that block (a call result, not an executed withdrawal), false if it reverted, null where nothing was tried.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / properties / wouldGoThrough / description
      Previous value: -"True if the withdrawal would have gone through at that block, false if it would have reverted, null where nothing was tried."New value: +"True if the simulated withdraw call returned at that block (a call result, not an executed withdrawal), false if it reverted, null where nothing was tried."
  2. Changed8 schema fields changed
    • changedOutput schema / properties / askedUsd / type
      Previous value: -"number"New value: +[
      +  "number",
      +  "null"
      +]
    • changedOutput schema / properties / at / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "null"
      +]
    • changedOutput schema / properties / block / type
      Previous value: -"number"New value: +[
      +  "number",
      +  "null"
      +]
    • changedOutput schema / properties / holder / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "null"
      +]
    • changedOutput schema / properties / holderAs / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "null"
      +]
    • changedOutput schema / properties / holderUsd / type
      Previous value: -"number"New value: +[
      +  "number",
      +  "null"
      +]
    • changedOutput schema / properties / paidBy / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "null"
      +]
    • changedOutput schema / properties / triedUsd / type
      Previous value: -"number"New value: +[
      +  "number",
      +  "null"
      +]
  3. Added

TDQS

A4.5/5.0
Behavior5/5

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

Goes well beyond the annotations: it discloses that nothing is signed, sent or spent, what is returned (pass/fail, revert reason like NotEnoughLiquidity or TransferReverted, the block, position value), the holder-default and amount-clamping behavior, and the exact pricing model ($1,000 free, $2 per simulation over x402, waived with a decision pass). The readOnlyHint=false annotation is not contradicted — the call executes contract code and can incur a charge — and destructiveHint=false is consistent with 'nothing is spent'.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with a clear imperative and generally well organized, but it runs long for a four-parameter tool and repeats the free/paid boundary three times (title, opening, closing sentence, plus the `pass` param), which is redundant. The all-caps opener and dense run-on clauses cost readability.

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?

Complete for the tool's complexity: an output schema exists, yet the description still explains the verdict shape, revert reasons, and the explicit blind spots (later blocks, third-party drain of idle liquidity). An agent can decide whether to call it and interpret the result without further documentation.

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 would be 3, but the prose adds real meaning: `holder` omitted means simulate as the vault's largest depositor, an `amountUsd` above the holder's position is tried at their position and reported as such, and `pass` is specifically the X-ASPERN-Decision-Pass header from that vault's due-diligence report. It does not clarify amount units/decimals handling beyond 'US dollars'.

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 and resource — it runs the vault's own withdraw(amount, holder, holder) via eth_call at the head block as a named holder or the largest depositor — so the agent knows exactly what is simulated and what is not. It is clearly distinguishable from decision/exit tools like evaluate_vault_decision by being an execution dry-run, and it scopes supported targets to Morpho vaults.

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 opening line gives an explicit trigger condition ('before you make it'), and the description says what it does not cover (a later block, or what happens once somebody else takes the same liquidity) and that non-Morpho vaults return `simulated: false` uncharged. It also states the free/paid boundary, but it does not name a sibling to use instead when the head-block limitation matters.

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.