Skip to main content
Glama

WritersLogic crypto agents

contract-auditor

Smart Contract Auditor — Source-level security review of Solidity: pass/warn/fail verdict, 0-100 risk score, severity-ranked findings with exact file:line, exploit scenario and a fix, plus a SARIF 2.1.0 log. Accepts raw code, a list of files, or an on-chain address (verified source is read from Sourcify). A deterministic detector pass (reentrancy ordering, tx.origin, delegatecall, unchecked calls, weak randomness, pre-0.8

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "contract-auditor"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeNoRaw Solidity source (one or more files concatenated). Provide exactly one of code, files or address.
filesNoAlternative to code: Solidity files with repository-relative paths. Findings report the file and line, and the SARIF log points at them.
addressNoAlternative to code: an on-chain contract address. Its verified source is read from Sourcify (no API key); unverified contracts return 404.
chainIdNoEVM chain id for address; default 1 (Ethereum mainnet).
contractNameNoContract to focus on when several are present.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources