Skip to main content
Glama
Replaced by its MCP Registry listing

This endpoint is listed in the official MCP Registry as Ingravity Autonomous EVM Security & DeFi Guard ($0.005 x402 v2). If you published it, claim ownership there.

Flash-Loan Exploit Simulator & Safe-Harbor Planner

ingravity_simulateDeepExploitAndWhitehatBounty
Read-onlyIdempotent

Simulates flash-loan drain vectors, oracle slot0/reserve exposure, and live on-chain TVL across five EVM chains for a target protocol (protocolName required; poolAddress defaults to Base Aerodrome address when omitted, tvlUsd defaults to 250000). Strictly read-only: reads live RPC liquidity and optional Solidity code (via O(N) lexical + structural AST/pattern + 4-gate filter) to compute exploitImmunityScore and optional unsigned EIP-5792/EOA Safe-Harbor emergency pause/sweep calldata without transferring funds. Fixed price per call: FULL ($45.00 USDC, default) returns complete flashLoanSimulation, findings, and remediation bundle; ESSENTIAL ($9.50 USDC) returns vulnerabilitySeverity, exploitImmunityScore, and summary counts; unpaid calls return isError: true. Use for live pool exploitability and contingency planning; use ingravity_generateMultiContractProtocolDossier for multi-file codebase audits.

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": {
      "protocolName": "<protocolName>"
    },
    "name": "ingravity_simulateDeepExploitAndWhitehatBounty"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeNoOptional Solidity (.sol) contract source code to include 3-layer static exploit, honeypot, and slot0 manipulation analysis.
tierNoBilling & output depth: FULL ($45.00 USDC fixed) returns complete flashLoanSimulation, liveOnChainPoolForensics, and unsigned contingency calldata; ESSENTIAL ($9.50 USDC fixed) returns vulnerabilitySeverity, exploitImmunityScore, and summary counts only.FULL
tvlUsdNoDeclared pool TVL in USD; automatically overridden upward if live on-chain RPC TVL exceeds it.
chainIdNoTarget EVM chain ID for live RPC bytecode and TVL verification (8453 Base, 42161 Arbitrum, 10 Optimism, 137 Polygon, 1 Ethereum; unknown falls back to 8453).
poolAddressNoTarget 42-char EVM pool or vault contract address (0x...) inspected via live RPC on chainId.0x420DD381b31aEf6683db6B902084cB0FFECe40Da
protocolNameYesTarget protocol or pool identifier (non-empty string required).
ownerTreasuryNoOptional protocol owner/multisig recipient (0x...) designated in generated unsigned contingency calldata.

Output Schema

NameRequiredDescriptionDefault
tierYesService classification identifier ('institutional_whale_bounty').
actionYesRecommended exploit mitigation action.
signalYesTraffic-light severity indicator.
chainIdYesResolved EVM chain ID.
settledYesWhether x402 USDC payment settled cleanly.
summaryYesCritical/High severity counts, live TVL, and contingency summary.
protocolYesEvaluated protocol identifier.
poolAddressYesTarget EVM pool or vault address inspected.
auditDetailsNoDetailed static audit findings when code is provided, or RPC summary note (FULL tier).
tvlAnalyzedUsdYesEffective TVL used for economic simulation.
whitehatRescuePlanNoOptional post-incident Safe-Harbor contingency plan and private relay instructions (FULL tier).
flashLoanSimulationNoSpot price oracle manipulation and reentrancy vector assessment (FULL tier).
exploitImmunityScoreYesEstimated exploit immunity score from 0 to 100.
verifiedOnChainTvlUsdYesLive on-chain TVL verified via RPC (0 if unavailable or undeployed).
vulnerabilitySeverityYesOverall exploitability tier.
liveOnChainPoolForensicsNoLive RPC bytecode and proxy storage slot forensics for poolAddress (FULL tier).
capitalSalvageAndSafeHarborNoOptional unsigned EIP-5792/EOA contingency execution bundle (FULL tier).
proportionalRescueCommissionPolicyNoBilling policy confirmation indicating full diagnostic delivery under fixed per-call pricing (FULL tier).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed11 schema fields changed
    • changedInput schema / properties / code / description
      Previous value: -"Optional Solidity (.sol) contract source code to include static exploit, honeypot, and slot0 manipulation analysis."New value: +"Optional Solidity (.sol) contract source code to include 3-layer static exploit, honeypot, and slot0 manipulation analysis."
    • changedInput schema / properties / ownerTreasury / description
      Previous value: -"Optional protocol owner/multisig recipient (0x...) receiving 90%-95% of assets in the generated unsigned Safe-Harbor calldata."New value: +"Optional protocol owner/multisig recipient (0x...) designated in generated unsigned contingency calldata."
    • changedInput schema / properties / tier / description
      Previous value: -"Billing & output depth: FULL ($45.00 USDC) returns flashLoanSimulation, liveOnChainPoolForensics, and unsigned Safe-Harbor rescue bundle; ESSENTIAL ($9.50 USDC) returns vulnerabilitySeverity, exploitImmunityScore, and summary counts only."New value: +"Billing & output depth: FULL ($45.00 USDC fixed) returns complete flashLoanSimulation, liveOnChainPoolForensics, and unsigned contingency calldata; ESSENTIAL ($9.50 USDC fixed) returns vulnerabilitySeverity, exploitImmunityScore, and summary counts only."
    • changedOutput schema / properties / auditDetails / description
      Previous value: -"Detailed static audit findings when code is provided, or RPC summary note (FULL tier only)."New value: +"Detailed static audit findings when code is provided, or RPC summary note (FULL tier)."
    • changedOutput schema / properties / capitalSalvageAndSafeHarbor / description
      Previous value: -"Unsigned EIP-5792/EOA Safe-Harbor execution bundle (FULL tier only)."New value: +"Optional unsigned EIP-5792/EOA contingency execution bundle (FULL tier)."
    • changedOutput schema / properties / flashLoanSimulation / description
      Previous value: -"Spot price oracle manipulation and reentrancy vector assessment (FULL tier only)."New value: +"Spot price oracle manipulation and reentrancy vector assessment (FULL tier)."
    • changedOutput schema / properties / liveOnChainPoolForensics / description
      Previous value: -"Live RPC bytecode and proxy storage slot forensics for poolAddress (FULL tier only)."New value: +"Live RPC bytecode and proxy storage slot forensics for poolAddress (FULL tier)."
    • changedOutput schema / properties / proportionalRescueCommissionPolicy / description
      Previous value: -"Anti-Bypass and Safe-Harbor bounty policy metadata (FULL tier only)."New value: +"Billing policy confirmation indicating full diagnostic delivery under fixed per-call pricing (FULL tier)."
    • changedOutput schema / properties / summary / description
      Previous value: -"Critical/High severity counts, live TVL, and entitled whitehat bounty summary."New value: +"Critical/High severity counts, live TVL, and contingency summary."
    • changedOutput schema / properties / tvlAnalyzedUsd / description
      Previous value: -"Effective TVL used for whitehat bounty calculation."New value: +"Effective TVL used for economic simulation."
    • changedOutput schema / properties / whitehatRescuePlan / description
      Previous value: -"90%-95% owner / 5%-10% whitehat split economics and private relay instructions (FULL tier only)."New value: +"Optional post-incident Safe-Harbor contingency plan and private relay instructions (FULL tier)."
  2. Changed11 schema fields changed
    • addedInput schema / properties / chainId
      Added value: +{
      +  "default": 8453,
      +  "description": "Target EVM chain ID for live RPC bytecode and TVL verification (8453 Base, 42161 Arbitrum, 10 Optimism, 137 Polygon, 1 Ethereum; unknown falls back to 8453).",
      +  "enum": [
      +    8453,
      +    42161,
      +    10,
      +    137,
      +    1
      +  ],
      +  "type": "integer"
      +}
    • changedInput schema / properties / code / description
      Previous value: -"Optional Solidity contract source code"New value: +"Optional Solidity (.sol) contract source code to include static exploit, honeypot, and slot0 manipulation analysis."
    • changedInput schema / properties / ownerTreasury / description
      Previous value: -"Optional protocol owner/multisig recipient (0x...) for 90%-95% rescued assets"New value: +"Optional protocol owner/multisig recipient (0x...) receiving 90%-95% of assets in the generated unsigned Safe-Harbor calldata."
    • addedInput schema / properties / poolAddress / default
      Added value: +"0x420DD381b31aEf6683db6B902084cB0FFECe40Da"
    • changedInput schema / properties / poolAddress / description
      Previous value: -"Target 5-EVM pool or vault address (0x...)"New value: +"Target 42-char EVM pool or vault contract address (0x...) inspected via live RPC on chainId."
    • changedInput schema / properties / protocolName / description
      Previous value: -"Target protocol identifier"New value: +"Target protocol or pool identifier (non-empty string required)."
    • addedInput schema / properties / tier
      Added value: +{
      +  "default": "FULL",
      +  "description": "Billing & output depth: FULL ($45.00 USDC) returns flashLoanSimulation, liveOnChainPoolForensics, and unsigned Safe-Harbor rescue bundle; ESSENTIAL ($9.50 USDC) returns vulnerabilitySeverity, exploitImmunityScore, and summary counts only.",
      +  "enum": [
      +    "FULL",
      +    "ESSENTIAL"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / tvlUsd / default
      Added value: +250000
    • changedInput schema / properties / tvlUsd / description
      Previous value: -"Estimated pool TVL in USD (auto-verified on-chain against 5-EVM RPC)"New value: +"Declared pool TVL in USD; automatically overridden upward if live on-chain RPC TVL exceeds it."
    • addedInput schema / properties / tvlUsd / minimum
      Added value: +0
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "action": {
      +      "description": "Recommended exploit mitigation action.",
      +      "enum": [
      +        "PROCEED",
      +        "CAUTION",
      +        "ABORT"
      +      ],
      +      "type": "string"
      +    },
      +    "auditDetails": {
      +      "description": "Detailed static audit findings when code is provided, or RPC summary note (FULL tier only).",
      +      "type": [
      +        "object",
      +        "string"
      +      ]
      +    },
      +    "capitalSalvageAndSafeHarbor": {
      +      "additionalProperties": true,
      +      "description": "Unsigned EIP-5792/EOA Safe-Harbor execution bundle (FULL tier only).",
      +      "type": "object"
      +    },
      +    "chainId": {
      +      "description": "Resolved EVM chain ID.",
      +      "type": "integer"
      +    },
      +    "exploitImmunityScore": {
      +      "description": "Estimated exploit immunity score from 0 to 100.",
      +      "type": "number"
      +    },
      +    "flashLoanSimulation": {
      +      "additionalProperties": true,
      +      "description": "Spot price oracle manipulation and reentrancy vector assessment (FULL tier only).",
      +      "type": "object"
      +    },
      +    "liveOnChainPoolForensics": {
      +      "additionalProperties": true,
      +      "description": "Live RPC bytecode and proxy storage slot forensics for poolAddress (FULL tier only).",
      +      "type": [
      +        "object",
      +        "null"
      +      ]
      +    },
      +    "poolAddress": {
      +      "description": "Target EVM pool or vault address inspected.",
      +      "type": "string"
      +    },
      +    "proportionalRescueCommissionPolicy": {
      +      "additionalProperties": true,
      +      "description": "Anti-Bypass and Safe-Harbor bounty policy metadata (FULL tier only).",
      +      "type": "object"
      +    },
      +    "protocol": {
      +      "description": "Evaluated protocol identifier.",
      +      "type": "string"
      +    },
      +    "settled": {
      +      "description": "Whether x402 USDC payment settled cleanly.",
      +      "type": "boolean"
      +    },
      +    "signal": {
      +      "description": "Traffic-light severity indicator.",
      +      "enum": [
      +        "GREEN_LIGHT",
      +        "YELLOW_LIGHT",
      +        "RED_LIGHT"
      +      ],
      +      "type": "string"
      +    },
      +    "summary": {
      +      "additionalProperties": true,
      +      "description": "Critical/High severity counts, live TVL, and entitled whitehat bounty summary.",
      +      "properties": {
      +        "CRITICAL": {
      +          "type": "integer"
      +        },
      +        "HIGH": {
      +          "type": "integer"
      +        },
      +        "entitledSafeHarborBountyUsdc": {
      +          "type": "number"
      +        },
      +        "verifiedOnChainTvlUsd": {
      +          "type": "number"
      +        }
      +      },
      +      "required": [
      +        "CRITICAL",
      +        "HIGH",
      +        "verifiedOnChainTvlUsd",
      +        "entitledSafeHarborBountyUsdc"
      +      ],
      +      "type": "object"
      +    },
      +    "tier": {
      +      "description": "Service classification identifier ('institutional_whale_bounty').",
      +      "type": "string"
      +    },
      +    "tvlAnalyzedUsd": {
      +      "description": "Effective TVL used for whitehat bounty calculation.",
      +      "type": "number"
      +    },
      +    "verifiedOnChainTvlUsd": {
      +      "description": "Live on-chain TVL verified via RPC (0 if unavailable or undeployed).",
      +      "type": "number"
      +    },
      +    "vulnerabilitySeverity": {
      +      "description": "Overall exploitability tier.",
      +      "enum": [
      +        "CRITICAL_EXPLOITABLE",
      +        "HIGH_ARBITRAGEABLE",
      +        "LOW_RESILIENT"
      +      ],
      +      "type": "string"
      +    },
      +    "whitehatRescuePlan": {
      +      "additionalProperties": true,
      +      "description": "90%-95% owner / 5%-10% whitehat split economics and private relay instructions (FULL tier only).",
      +      "type": "object"
      +    }
      +  },
      +  "required": [
      +    "settled",
      +    "action",
      +    "signal",
      +    "tier",
      +    "protocol",
      +    "poolAddress",
      +    "chainId",
      +    "verifiedOnChainTvlUsd",
      +    "tvlAnalyzedUsd",
      +    "exploitImmunityScore",
      +    "vulnerabilitySeverity",
      +    "summary"
      +  ],
      +  "type": "object"
      +}
  3. Changed2 schema fields changed
    • changedInput schema / properties / poolAddress / description
      Previous value: -"Target Base Mainnet pool or vault address (0x...)"New value: +"Target 5-EVM pool or vault address (0x...)"
    • changedInput schema / properties / tvlUsd / description
      Previous value: -"Estimated pool TVL in USD (auto-verified on-chain against Base RPC)"New value: +"Estimated pool TVL in USD (auto-verified on-chain against 5-EVM RPC)"
  4. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations (readOnly/idempotent/openWorld/destructive=false), the description discloses the critical operational facts: fixed per-call pricing with two tiers, that unpaid calls return isError:true, that live RPC reads occur on the selected chain, and that generated contingency calldata is unsigned and never moves funds. That is pricing, failure-mode, and side-effect disclosure an agent cannot get from the annotation block.

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?

It is front-loaded with the verb and scope, and every sentence carries functional information (chains, tiers, pricing, output classes, sibling redirect). It is a single dense paragraph with some repetition of the tier/pricing detail already present in the schema, and would read better with breaks around the tier and read-only statements.

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?

Given seven parameters, an output schema, and full annotation coverage, the description supplies everything else an agent needs: cost decision data for the two tiers, default/override behavior, chain fallback, and the read-only/no-fund-transfer guarantee. Return-value detail is correctly left to the output schema.

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 by restating that protocolName is required, that poolAddress falls back to the Base Aerodrome default, and that tvlUsd defaults to 250000 and is auto-raised by live RPC TVL. It largely mirrors the schema rather than adding new semantics, so it sits just above baseline.

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 names a specific verb set (simulates flash-loan drain vectors, oracle slot0/reserve exposure, live TVL) and a precise resource scope (target protocol across five EVM chains), and explicitly separates itself from ingravity_generateMultiContractProtocolDossier. An agent can tell what it does and what it does not do without opening the 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?

It gives explicit usage context ("live pool exploitability and contingency planning") and routes multi-file codebase audits to a named sibling. However, when the optional `code` parameter is supplied the overlap with ingravity_auditSolidityContract is not addressed, and there is no explicit when-not-to-use statement beyond that single redirect.

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.

Resources