Skip to main content
Glama

scan_contract_address

Read-onlyIdempotent

pactlint: Scan a deployed, verified contract on Ethereum or Base for security bugs, by address. For source you hold use scan_contract_source. Fetches the verified source from Sourcify. Runs solc, Slither and custom DeFi detectors (unchecked ERC-20 returns, zero slippage limits, oracle misuse, ERC-4626 inflation, signature replay, ...). Returns a JSON report (findings with severity, confidence, file:line and a fix) plus Markdown. Price: USD 0.25 up to 3,000 nSLOC, USD 0.75 up to 15,000; refused inputs are never charged. Free: 3 scans or 30 txpeek checks per IP per UTC day. Unverified contracts are refused (not charged): use check_contract_before_interaction. Typically 3-30 s; at most 60 s; a full queue is a 503 with Retry-After (not charged). Automated and heuristic, not an audit: findings can be false positives and an empty report does not prove the code is free of bugs. Docs: https://tanod.dev/learn/smart-contract-scanner-api.html

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": {
      "address": "<address>",
      "chain": "<chain>"
    },
    "name": "scan_contract_address"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainYesChain the contract is deployed on.
addressYesContract address (0x + 40 hex).
include_noisyNoAlso report detectors dropped by default as noisy (high false-positive rate).
include_dependenciesNoAlso report findings in dependencies, tests and mocks (lib/, node_modules/, OpenZeppelin, ...).
include_informationalNoAlso report informational (style and best-practice) findings.

Output Schema

NameRequiredDescriptionDefault
errorNoOnly on an error result: an object {code, message}, or the reason string of an x402 PaymentRequired object.
statsNo
statusNo
scan_idNo
findingsNo
disclaimerNo
schema_versionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed10 schema fields changed
    • removedInput schema / properties / address / title
      Removed value: -"Address"
    • removedInput schema / properties / chain / title
      Removed value: -"Chain"
    • changedInput schema / properties / include_dependencies / description
      Previous value: -"Also report findings in dependencies, tests and mocks (lib/, node_modules/, OpenZeppelin, ...); default false."New value: +"Also report findings in dependencies, tests and mocks (lib/, node_modules/, OpenZeppelin, ...)."
    • removedInput schema / properties / include_dependencies / title
      Removed value: -"Include Dependencies"
    • changedInput schema / properties / include_informational / description
      Previous value: -"Also report informational (style and best-practice) findings; default false."New value: +"Also report informational (style and best-practice) findings."
    • removedInput schema / properties / include_informational / title
      Removed value: -"Include Informational"
    • changedInput schema / properties / include_noisy / description
      Previous value: -"Also report detectors dropped by default as noisy (high false-positive rate); default false."New value: +"Also report detectors dropped by default as noisy (high false-positive rate)."
    • removedInput schema / properties / include_noisy / title
      Removed value: -"Include Noisy"
    • removedInput schema / title
      Removed value: -"scan_contract_addressArguments"
    • removedOutput schema / properties / findings / items
      Removed value: -{
      -  "properties": {
      -    "confidence": {
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    },
      -    "description": {
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    },
      -    "detector": {
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    },
      -    "file_line": {
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    },
      -    "id": {
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    },
      -    "recommendation": {
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    },
      -    "severity": {
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    },
      -    "title": {
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    }
      -  },
      -  "type": [
      -    "object",
      -    "null"
      -  ]
      -}
  2. Changed4 schema fields changed
    • addedInput schema / properties / include_dependencies / description
      Added value: +"Also report findings in dependencies, tests and mocks (lib/, node_modules/, OpenZeppelin, ...); default false."
    • addedInput schema / properties / include_informational / description
      Added value: +"Also report informational (style and best-practice) findings; default false."
    • addedInput schema / properties / include_noisy / description
      Added value: +"Also report detectors dropped by default as noisy (high false-positive rate); default false."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "disclaimer": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "error": {
      +      "description": "Only on an error result: an object {code, message}, or the reason string of an x402 PaymentRequired object."
      +    },
      +    "findings": {
      +      "items": {
      +        "properties": {
      +          "confidence": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "description": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "detector": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "file_line": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "id": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "recommendation": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "severity": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "title": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          }
      +        },
      +        "type": [
      +          "object",
      +          "null"
      +        ]
      +      },
      +      "type": [
      +        "array",
      +        "null"
      +      ]
      +    },
      +    "scan_id": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "schema_version": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "stats": {
      +      "type": [
      +        "object",
      +        "null"
      +      ]
      +    },
      +    "status": {
      +      "enum": [
      +        "ok",
      +        "compile_error",
      +        "timeout",
      +        "resource_limit",
      +        "busy",
      +        "error",
      +        null
      +      ],
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    }
      +  },
      +  "type": "object"
      +}
  3. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources