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.

Multi-Contract DeFi Protocol Auditor

ingravity_generateMultiContractProtocolDossier
Read-onlyIdempotent

Audits 1-20 interdependent Solidity contracts (contracts array of {name, code}, required; optional protocolName and tvlTargetUsd=1000000) using a 3-layer deterministic pipeline: O(N) lexical sanitization, cross-contract call-graph and 6 ERC-4626/oracle invariant analysis, and 4-gate false-positive filtering. Strictly read-only: pass optional contractAddress, chainId (8453 Base default, 42161, 10, 137, 1), and ownerTreasury to verify live RPC TVL and build optional unsigned remediation steps. Fixed price per call: FULL ($12.00 USDC, default) returns complete call-graph, per-contract findings, and remediation patches; ESSENTIAL ($3.50 USDC) returns score and counts; unpaid returns isError: true and empty contracts throws -32602. Use for multi-file protocols; use ingravity_auditSolidityContract for single files.

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": {
      "contracts": "<contracts>"
    },
    "name": "ingravity_generateMultiContractProtocolDossier"
  }
}

Input Schema

NameRequiredDescriptionDefault
tierNoBilling & output depth: FULL ($12.00 USDC fixed) returns complete callGraphEdges, per-contract findings, invariants, and remediation guidance; ESSENTIAL ($3.50 USDC fixed) returns readiness score, grade, status, and severity counts only.FULL
chainIdNoEVM Chain ID used when optional contractAddress is supplied for live RPC liquidity lookup (8453 Base, 42161 Arbitrum, 10 Optimism, 137 Polygon, 1 Ethereum; unknown falls back to 8453).
contractsYesNon-empty array of Solidity contracts belonging to the protocol (1 to 20 {name, code} objects; additional items beyond 20 are ignored).
protocolNameNoDeFi protocol or project name echoed in executiveSummary.DeFi Protocol
tvlTargetUsdNoTarget or declared TVL in USD used for bug bounty reward schedule calibration.
ownerTreasuryNoOptional protocol multisig/treasury recipient (0x...) designated in unsigned remediation calldata.
contractAddressNoOptional deployed EVM vault/pool address (0x...) on chainId for live RPC TVL verification and optional unsigned remediation bundle generation.

Output Schema

NameRequiredDescriptionDefault
gradeYesLetter grade derived from protocolSecurityScore.
actionYesProtocol deployment gate directive.
signalYesTraffic-light risk indicator.
chainIdYesResolved EVM chain ID.
settledYesWhether x402 USDC payment settled cleanly.
summaryYesAggregated finding severity totals and failed invariant count.
protocolNameYesEvaluated protocol name.
contractAuditsNoComplete per-contract security audits and line-level findings (FULL tier).
executiveSummaryNoConsolidated protocol score, LOC, centralizationRiskIndex, and readiness breakdown (FULL tier).
deploymentReadinessYesLaunch readiness classification.
bugBountyCalibrationNoRecommended bounty reward schedule by severity calibrated to TVL (FULL tier).
crossContractAnalysisNoCross-contract call graph, read-only reentrancy findings, admin privilege map, and invariant checks (FULL tier).
protocolSecurityScoreYesWeighted multi-contract security score from 0 to 100.
verifiedOnChainTvlUsdYesLive on-chain TVL verified via RPC when contractAddress is supplied (0 otherwise).
capitalSalvageAndSafeHarborNoOptional unsigned remediation bundle or pre-deploy circuit breaker (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. Changed10 schema fields changed
    • changedInput schema / properties / contractAddress / description
      Previous value: -"Optional deployed EVM vault/pool address (0x...) on chainId for live RPC TVL verification and unsigned Safe-Harbor rescue bundle generation."New value: +"Optional deployed EVM vault/pool address (0x...) on chainId for live RPC TVL verification and optional unsigned remediation bundle generation."
    • changedInput schema / properties / ownerTreasury / description
      Previous value: -"Optional protocol multisig/treasury recipient (0x...) designated to receive 90%-95% of rescued funds in unsigned Safe-Harbor calldata."New value: +"Optional protocol multisig/treasury recipient (0x...) designated in unsigned remediation calldata."
    • changedInput schema / properties / tier / description
      Previous value: -"Billing & output depth: FULL ($12.00 USDC) returns callGraphEdges, per-contract findings, invariants, and Safe-Harbor rescue calldata (subject to Anti-Bypass sealing on CRITICAL/HIGH until proportional settlement); ESSENTIAL ($3.50 USDC) returns readiness score, grade, status, and severity counts only."New value: +"Billing & output depth: FULL ($12.00 USDC fixed) returns complete callGraphEdges, per-contract findings, invariants, and remediation guidance; ESSENTIAL ($3.50 USDC fixed) returns readiness score, grade, status, and severity counts only."
    • changedInput schema / properties / tvlTargetUsd / description
      Previous value: -"Target or declared TVL in USD used for bug bounty reward calibration when live RPC TVL is absent or lower."New value: +"Target or declared TVL in USD used for bug bounty reward schedule calibration."
    • changedOutput schema / properties / bugBountyCalibration / description
      Previous value: -"Recommended bounty reward schedule by severity calibrated to TVL (FULL tier only)."New value: +"Recommended bounty reward schedule by severity calibrated to TVL (FULL tier)."
    • changedOutput schema / properties / capitalSalvageAndSafeHarbor / description
      Previous value: -"Unsigned Safe-Harbor rescue bundle or optional pre-deploy circuit breaker (FULL tier only)."New value: +"Optional unsigned remediation bundle or pre-deploy circuit breaker (FULL tier)."
    • changedOutput schema / properties / contractAudits / description
      Previous value: -"Per-contract security audits and findings (FULL tier only)."New value: +"Complete per-contract security audits and line-level findings (FULL tier)."
    • changedOutput schema / properties / crossContractAnalysis / description
      Previous value: -"Cross-contract call graph, read-only reentrancy findings, admin privilege map, and invariant checks (FULL tier only)."New value: +"Cross-contract call graph, read-only reentrancy findings, admin privilege map, and invariant checks (FULL tier)."
    • changedOutput schema / properties / executiveSummary / description
      Previous value: -"Consolidated protocol score, LOC, centralizationRiskIndex, and readiness breakdown (FULL tier only)."New value: +"Consolidated protocol score, LOC, centralizationRiskIndex, and readiness breakdown (FULL tier)."
    • changedOutput schema / properties / proportionalRescueCommissionPolicy / description
      Previous value: -"0.15% Pre-Flight SLA and 5%-10% Safe-Harbor settlement metadata (FULL tier only)."New value: +"Billing policy confirmation indicating full diagnostic delivery under fixed per-call pricing (FULL tier)."
  2. Changed15 schema fields changed
    • addedInput schema / properties / chainId
      Added value: +{
      +  "default": 8453,
      +  "description": "EVM Chain ID used when optional contractAddress is supplied for live RPC liquidity lookup (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 / contractAddress / description
      Previous value: -"Optional deployed 5-EVM vault/pool address (0x...) for live on-chain TVL verification & Safe-Harbor rescue bundle"New value: +"Optional deployed EVM vault/pool address (0x...) on chainId for live RPC TVL verification and unsigned Safe-Harbor rescue bundle generation."
    • changedInput schema / properties / contracts / description
      Previous value: -"Array of Solidity contracts belonging to the protocol (1 to 20 files)"New value: +"Non-empty array of Solidity contracts belonging to the protocol (1 to 20 {name, code} objects; additional items beyond 20 are ignored)."
    • changedInput schema / properties / contracts / items / properties / code / description
      Previous value: -"Solidity source code"New value: +"Non-empty Solidity (.sol) source code for this contract."
    • changedInput schema / properties / contracts / items / properties / name / description
      Previous value: -"Contract filename (e.g. AegisVault.sol)"New value: +"Contract filename or identifier (e.g., AegisVault.sol)."
    • addedInput schema / properties / contracts / maxItems
      Added value: +20
    • addedInput schema / properties / contracts / minItems
      Added value: +1
    • changedInput schema / properties / ownerTreasury / description
      Previous value: -"Optional protocol multisig/treasury address (0x...) for 90%-95% rescued funds"New value: +"Optional protocol multisig/treasury recipient (0x...) designated to receive 90%-95% of rescued funds in unsigned Safe-Harbor calldata."
    • addedInput schema / properties / protocolName / default
      Added value: +"DeFi Protocol"
    • changedInput schema / properties / protocolName / description
      Previous value: -"DeFi protocol or project name"New value: +"DeFi protocol or project name echoed in executiveSummary."
    • addedInput schema / properties / tier
      Added value: +{
      +  "default": "FULL",
      +  "description": "Billing & output depth: FULL ($12.00 USDC) returns callGraphEdges, per-contract findings, invariants, and Safe-Harbor rescue calldata (subject to Anti-Bypass sealing on CRITICAL/HIGH until proportional settlement); ESSENTIAL ($3.50 USDC) returns readiness score, grade, status, and severity counts only.",
      +  "enum": [
      +    "FULL",
      +    "ESSENTIAL"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / tvlTargetUsd / default
      Added value: +1000000
    • changedInput schema / properties / tvlTargetUsd / description
      Previous value: -"Target or current TVL in USD for bounty calibration"New value: +"Target or declared TVL in USD used for bug bounty reward calibration when live RPC TVL is absent or lower."
    • addedInput schema / properties / tvlTargetUsd / minimum
      Added value: +0
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "action": {
      +      "description": "Protocol deployment gate directive.",
      +      "enum": [
      +        "PROCEED",
      +        "CAUTION",
      +        "ABORT"
      +      ],
      +      "type": "string"
      +    },
      +    "bugBountyCalibration": {
      +      "additionalProperties": true,
      +      "description": "Recommended bounty reward schedule by severity calibrated to TVL (FULL tier only).",
      +      "type": "object"
      +    },
      +    "capitalSalvageAndSafeHarbor": {
      +      "additionalProperties": true,
      +      "description": "Unsigned Safe-Harbor rescue bundle or optional pre-deploy circuit breaker (FULL tier only).",
      +      "type": "object"
      +    },
      +    "chainId": {
      +      "description": "Resolved EVM chain ID.",
      +      "type": "integer"
      +    },
      +    "contractAudits": {
      +      "description": "Per-contract security audits and findings (FULL tier only).",
      +      "items": {
      +        "additionalProperties": true,
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "crossContractAnalysis": {
      +      "additionalProperties": true,
      +      "description": "Cross-contract call graph, read-only reentrancy findings, admin privilege map, and invariant checks (FULL tier only).",
      +      "type": "object"
      +    },
      +    "deploymentReadiness": {
      +      "description": "Launch readiness classification.",
      +      "enum": [
      +        "READY_FOR_CONTEST",
      +        "REMEDIATION_REQUIRED",
      +        "BLOCK_LAUNCH"
      +      ],
      +      "type": "string"
      +    },
      +    "executiveSummary": {
      +      "additionalProperties": true,
      +      "description": "Consolidated protocol score, LOC, centralizationRiskIndex, and readiness breakdown (FULL tier only).",
      +      "type": "object"
      +    },
      +    "grade": {
      +      "description": "Letter grade derived from protocolSecurityScore.",
      +      "enum": [
      +        "A",
      +        "B",
      +        "C",
      +        "D",
      +        "F"
      +      ],
      +      "type": "string"
      +    },
      +    "proportionalRescueCommissionPolicy": {
      +      "additionalProperties": true,
      +      "description": "0.15% Pre-Flight SLA and 5%-10% Safe-Harbor settlement metadata (FULL tier only).",
      +      "type": "object"
      +    },
      +    "protocolName": {
      +      "description": "Evaluated protocol name.",
      +      "type": "string"
      +    },
      +    "protocolSecurityScore": {
      +      "description": "Weighted multi-contract security score from 0 to 100.",
      +      "type": "number"
      +    },
      +    "settled": {
      +      "description": "Whether x402 USDC payment settled cleanly.",
      +      "type": "boolean"
      +    },
      +    "signal": {
      +      "description": "Traffic-light risk indicator.",
      +      "enum": [
      +        "GREEN_LIGHT",
      +        "YELLOW_LIGHT",
      +        "RED_LIGHT"
      +      ],
      +      "type": "string"
      +    },
      +    "summary": {
      +      "additionalProperties": true,
      +      "description": "Aggregated finding severity totals and failed invariant count.",
      +      "properties": {
      +        "CRITICAL": {
      +          "type": "integer"
      +        },
      +        "GAS": {
      +          "type": "integer"
      +        },
      +        "HIGH": {
      +          "type": "integer"
      +        },
      +        "LOW": {
      +          "type": "integer"
      +        },
      +        "MEDIUM": {
      +          "type": "integer"
      +        },
      +        "failedInvariantsCount": {
      +          "type": "integer"
      +        }
      +      },
      +      "required": [
      +        "CRITICAL",
      +        "HIGH",
      +        "MEDIUM",
      +        "LOW",
      +        "GAS",
      +        "failedInvariantsCount"
      +      ],
      +      "type": "object"
      +    },
      +    "verifiedOnChainTvlUsd": {
      +      "description": "Live on-chain TVL verified via RPC when contractAddress is supplied (0 otherwise).",
      +      "type": "number"
      +    }
      +  },
      +  "required": [
      +    "settled",
      +    "action",
      +    "signal",
      +    "protocolName",
      +    "chainId",
      +    "protocolSecurityScore",
      +    "grade",
      +    "deploymentReadiness",
      +    "verifiedOnChainTvlUsd",
      +    "summary"
      +  ],
      +  "type": "object"
      +}
  3. Changed1 schema field changed
    • changedInput schema / properties / contractAddress / description
      Previous value: -"Optional deployed Base Mainnet vault/pool address (0x...) for live on-chain TVL verification & Safe-Harbor rescue bundle"New value: +"Optional deployed 5-EVM vault/pool address (0x...) for live on-chain TVL verification & Safe-Harbor rescue bundle"
  4. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already establish read-only/idempotent/open-world, but the description adds real behavioral depth: a described 3-layer deterministic pipeline, fixed per-call pricing ($12.00 FULL / $3.50 ESSENTIAL), explicit error behavior for unpaid calls and empty input, and the distinction that remediation steps are unsigned. This is the kind of context annotations cannot carry.

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 and pipeline, then pricing, then usage routing—logical ordering with little waste. It is dense and parenthetical-heavy, making it slower to parse than an ideal, but no sentence is filler.

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 a 7-parameter, billing-tiered tool with an output schema, the definition covers everything an agent needs: input shape, tier output differences, chain defaults, read-only nature, error semantics, and sibling routing. Return-format details are 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 baseline is 3, but the description adds meaning beyond it: tier controls output depth, contractAddress/chainId gate a live RPC TVL path, and ownerTreasury only affects unsigned remediation calldata. Minor deduction because the parenthetical parameter recap largely restates schema fields rather than deepening them.

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: 'Audits 1-20 interdependent Solidity contracts (contracts array of {name, code})'. It explicitly names the dividing line against the sibling, telling the agent to use ingravity_auditSolidityContract for single files and this tool for multi-file protocols.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit when-to-use routing ('use for multi-file protocols; use ingravity_auditSolidityContract for single files'), plus tier selection guidance (FULL vs ESSENTIAL) and failure conditions (unpaid returns isError: true, empty contracts throws -32602). The agent has enough to decide both whether and how to call.

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