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.

24-Vector Solidity Contract Auditor

ingravity_auditSolidityContract
Read-onlyIdempotent

Audits a single Solidity file (code, required; optional contractName) across 24 SWC/DeFi rules using a 3-layer deterministic pipeline: O(N) lexical sanitization, structural AST/pattern and CEI state-flow analysis, and a 4-gate filter that excludes dust rounding and authorized admin paths. Read-only and never broadcasts transactions: optionally supply deployed contractAddress, chainId (default 8453), and ownerTreasury to verify live RPC TVL and generate optional unsigned remediation calldata. Fixed price per call: FULL ($0.85 USDC, default) returns complete line-level findings and remediation patches; ESSENTIAL ($0.35 USDC) returns score, grade, status, and severity counts; unpaid calls return isError: true. Use for single contracts; use ingravity_generateMultiContractProtocolDossier for multi-file protocols.

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": {
      "code": "<code>"
    },
    "name": "ingravity_auditSolidityContract"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYesRaw Solidity (.sol) smart contract source code to audit across 24 SWC/DeFi rules (non-empty string required).
tierNoBilling & output depth: FULL ($0.85 USDC fixed) returns complete line-level findings, severity breakdown, and remediation patches; ESSENTIAL ($0.35 USDC fixed) returns score, grade, status, and severity counts only.FULL
chainIdNoEVM Chain ID used only when contractAddress is supplied for live TVL verification (8453 Base, 42161 Arbitrum, 10 Optimism, 137 Polygon, 1 Ethereum; unknown falls back to 8453).
contractNameNoOptional contract identifier or filename echoed in the report.Contract.sol
ownerTreasuryNoOptional protocol owner/multisig recipient (0x...) designated in generated unsigned remediation calldata.
contractAddressNoOptional deployed EVM contract address (0x...) on chainId to verify live TVL via RPC and generate optional unsigned Safe-Harbor remediation calldata.

Output Schema

NameRequiredDescriptionDefault
locYesSource lines of code analyzed.
gradeYesLetter grade derived from securityScore.
actionYesDeployment gate directive.
signalYesTraffic-light severity indicator.
statusYesOverall readiness verdict.
chainIdYesResolved EVM chain ID.
settledYesWhether x402 USDC payment settled cleanly.
summaryYesFinding counts grouped by severity.
findingsNoComplete per-finding details with exact line coordinates, code snippets, and remediation patches (FULL tier).
contractNameYesAudited contract label.
securityScoreYesDeterministic security score from 0 to 100.
verifiedOnChainTvlUsdYesLive on-chain TVL verified via RPC when contractAddress is supplied (0 otherwise).
savedCapitalEstimateUsdYesEstimated capital at risk or prevented exploit range.
capitalSalvageAndSafeHarborNoOptional unsigned remediation plan or pre-deploy circuit-breaker snippet (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. Changed6 schema fields changed
    • changedInput schema / properties / contractAddress / description
      Previous value: -"Optional deployed EVM contract address (0x...) on chainId to verify live TVL via RPC and generate unsigned Safe-Harbor rescue calldata."New value: +"Optional deployed EVM contract address (0x...) on chainId to verify live TVL via RPC and generate optional unsigned Safe-Harbor remediation calldata."
    • changedInput schema / properties / ownerTreasury / description
      Previous value: -"Optional protocol owner/multisig recipient (0x...) designated to receive 90%-95% of rescued capital in generated unsigned calldata."New value: +"Optional protocol owner/multisig recipient (0x...) designated in generated unsigned remediation calldata."
    • changedInput schema / properties / tier / description
      Previous value: -"Billing & output depth: FULL ($0.85 USDC) includes findings and Safe-Harbor calldata (subject to Anti-Bypass sealing on CRITICAL/HIGH until proportional settlement); ESSENTIAL ($0.35 USDC) returns score, grade, status, and severity counts only."New value: +"Billing & output depth: FULL ($0.85 USDC fixed) returns complete line-level findings, severity breakdown, and remediation patches; ESSENTIAL ($0.35 USDC fixed) returns score, grade, status, and severity counts only."
    • changedOutput schema / properties / capitalSalvageAndSafeHarbor / description
      Previous value: -"Unsigned Safe-Harbor rescue plan or optional pre-deploy circuit-breaker snippet (FULL tier only)."New value: +"Optional unsigned remediation plan or pre-deploy circuit-breaker snippet (FULL tier)."
    • changedOutput schema / properties / findings / description
      Previous value: -"Per-finding details with line coordinates and fix guidance (FULL tier only; CRITICAL/HIGH coordinates sealed until proportional settlement when applicable)."New value: +"Complete per-finding details with exact line coordinates, code snippets, and remediation patches (FULL tier)."
    • changedOutput schema / properties / proportionalRescueCommissionPolicy / description
      Previous value: -"0.15% Pre-Flight SLA and 5%-10% Safe-Harbor policy metadata (FULL tier only)."New value: +"Billing policy confirmation indicating full diagnostic delivery under fixed per-call pricing (FULL tier)."
  2. Changed10 schema fields changed
    • addedInput schema / properties / chainId / default
      Added value: +8453
    • changedInput schema / properties / chainId / description
      Previous value: -"EVM Chain ID (8453 Base, 42161 Arbitrum, 10 Optimism, 137 Polygon, 1 Ethereum)"New value: +"EVM Chain ID used only when contractAddress is supplied for live TVL verification (8453 Base, 42161 Arbitrum, 10 Optimism, 137 Polygon, 1 Ethereum; unknown falls back to 8453)."
    • addedInput schema / properties / chainId / enum
      Added value: +[
      +  8453,
      +  42161,
      +  10,
      +  137,
      +  1
      +]
    • changedInput schema / properties / code / description
      Previous value: -"Raw Solidity (.sol) smart contract source code to audit"New value: +"Raw Solidity (.sol) smart contract source code to audit across 24 SWC/DeFi rules (non-empty string required)."
    • changedInput schema / properties / contractAddress / description
      Previous value: -"Optional deployed EVM contract address (0x...) for live RPC liquidity verification & Safe-Harbor rescue calldata"New value: +"Optional deployed EVM contract address (0x...) on chainId to verify live TVL via RPC and generate unsigned Safe-Harbor rescue calldata."
    • addedInput schema / properties / contractName / default
      Added value: +"Contract.sol"
    • changedInput schema / properties / contractName / description
      Previous value: -"Optional contract identifier"New value: +"Optional contract identifier or filename echoed in the report."
    • changedInput schema / properties / ownerTreasury / description
      Previous value: -"Optional protocol owner/multisig recipient (0x...) for 90%-95% rescued capital"New value: +"Optional protocol owner/multisig recipient (0x...) designated to receive 90%-95% of rescued capital in generated unsigned calldata."
    • addedInput schema / properties / tier
      Added value: +{
      +  "default": "FULL",
      +  "description": "Billing & output depth: FULL ($0.85 USDC) includes findings and Safe-Harbor calldata (subject to Anti-Bypass sealing on CRITICAL/HIGH until proportional settlement); ESSENTIAL ($0.35 USDC) returns score, grade, status, and severity counts only.",
      +  "enum": [
      +    "FULL",
      +    "ESSENTIAL"
      +  ],
      +  "type": "string"
      +}
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "action": {
      +      "description": "Deployment gate directive.",
      +      "enum": [
      +        "PROCEED",
      +        "CAUTION",
      +        "ABORT"
      +      ],
      +      "type": "string"
      +    },
      +    "capitalSalvageAndSafeHarbor": {
      +      "additionalProperties": true,
      +      "description": "Unsigned Safe-Harbor rescue plan or optional pre-deploy circuit-breaker snippet (FULL tier only).",
      +      "type": "object"
      +    },
      +    "chainId": {
      +      "description": "Resolved EVM chain ID.",
      +      "type": "integer"
      +    },
      +    "contractName": {
      +      "description": "Audited contract label.",
      +      "type": "string"
      +    },
      +    "findings": {
      +      "description": "Per-finding details with line coordinates and fix guidance (FULL tier only; CRITICAL/HIGH coordinates sealed until proportional settlement when applicable).",
      +      "items": {
      +        "additionalProperties": true,
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "grade": {
      +      "description": "Letter grade derived from securityScore.",
      +      "enum": [
      +        "A",
      +        "B",
      +        "C",
      +        "D",
      +        "F"
      +      ],
      +      "type": "string"
      +    },
      +    "loc": {
      +      "description": "Source lines of code analyzed.",
      +      "type": "integer"
      +    },
      +    "proportionalRescueCommissionPolicy": {
      +      "additionalProperties": true,
      +      "description": "0.15% Pre-Flight SLA and 5%-10% Safe-Harbor policy metadata (FULL tier only).",
      +      "type": "object"
      +    },
      +    "savedCapitalEstimateUsd": {
      +      "description": "Estimated capital at risk or prevented exploit range.",
      +      "type": "string"
      +    },
      +    "securityScore": {
      +      "description": "Deterministic security score from 0 to 100.",
      +      "type": "number"
      +    },
      +    "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"
      +    },
      +    "status": {
      +      "description": "Overall readiness verdict.",
      +      "enum": [
      +        "PRODUCTION_READY",
      +        "ACCEPTABLE_WITH_WARNINGS",
      +        "REMEDIATION_REQUIRED",
      +        "CRITICAL_DO_NOT_DEPLOY"
      +      ],
      +      "type": "string"
      +    },
      +    "summary": {
      +      "additionalProperties": true,
      +      "description": "Finding counts grouped by severity.",
      +      "properties": {
      +        "CRITICAL": {
      +          "type": "integer"
      +        },
      +        "GAS": {
      +          "type": "integer"
      +        },
      +        "HIGH": {
      +          "type": "integer"
      +        },
      +        "LOW": {
      +          "type": "integer"
      +        },
      +        "MEDIUM": {
      +          "type": "integer"
      +        },
      +        "total": {
      +          "type": "integer"
      +        }
      +      },
      +      "required": [
      +        "CRITICAL",
      +        "HIGH",
      +        "MEDIUM",
      +        "LOW",
      +        "GAS",
      +        "total"
      +      ],
      +      "type": "object"
      +    },
      +    "verifiedOnChainTvlUsd": {
      +      "description": "Live on-chain TVL verified via RPC when contractAddress is supplied (0 otherwise).",
      +      "type": "number"
      +    }
      +  },
      +  "required": [
      +    "settled",
      +    "action",
      +    "signal",
      +    "contractName",
      +    "chainId",
      +    "loc",
      +    "securityScore",
      +    "grade",
      +    "status",
      +    "verifiedOnChainTvlUsd",
      +    "savedCapitalEstimateUsd",
      +    "summary"
      +  ],
      +  "type": "object"
      +}
  3. Changed2 schema fields changed
    • addedInput schema / properties / chainId
      Added value: +{
      +  "description": "EVM Chain ID (8453 Base, 42161 Arbitrum, 10 Optimism, 137 Polygon, 1 Ethereum)",
      +  "type": "integer"
      +}
    • changedInput schema / properties / contractAddress / description
      Previous value: -"Optional deployed Base Mainnet contract address (0x...) for live RPC liquidity verification & Safe-Harbor rescue calldata"New value: +"Optional deployed EVM contract address (0x...) for live RPC liquidity verification & Safe-Harbor rescue calldata"
  4. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the annotations: declares it never broadcasts transactions, describes the 3-layer pipeline and 4-gate filter that excludes dust rounding and authorized admin paths, and discloses the billing contract (fixed USDC price per tier, unpaid calls return isError: true). The pricing/payment failure mode is behavior an agent cannot infer from readOnlyHint/idempotentHint alone.

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, scope, and the sibling exclusion, then moves to behavior and billing. It is a single dense paragraph packing several distinct concerns (pipeline, payment, live RPC, tier output depth) into long sentences, which costs some scannability, but little of the content 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?

An output schema exists, so return-value detail is unnecessary, and annotations already cover the safety profile. The description fills the remaining gaps an agent needs — pricing and failure on unpaid calls, single-vs-multi-contract routing, and the optional live-RPC path — leaving nothing material missing for correct invocation.

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 description coverage is 100%, so the baseline is 3. The description restates tier pricing, the chainId default of 8453, and the roles of contractAddress and ownerTreasury — nearly all of which the schema already documents — adding only mild framing (that chainId matters only when contractAddress is supplied).

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 a single Solidity file") plus the rule set (24 SWC/DeFi rules) and the method (3-layer deterministic pipeline). It explicitly contrasts single-contract scope with ingravity_generateMultiContractProtocolDossier for multi-file protocols, so an agent can disambiguate without opening either schema.

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?

Gives an explicit routing rule: "Use for single contracts; use ingravity_generateMultiContractProtocolDossier for multi-file protocols." It also explains the optional live-verification path (supply contractAddress + chainId + ownerTreasury to verify TVL and generate calldata) versus the pure static-audit path, which is real when-to-use guidance rather than a restatement.

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