Skip to main content
Glama

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

A3.6/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden. It usefully discloses output artifacts and that on-chain source is read from Sourcify, but it does not state read-only status, auth/rate-limit behavior, or malformed-input handling, and the detector list is truncated mid-sentence.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description front-loads purpose and outputs in dense but useful prose. However, the final sentence is truncated at 'pre-0.8', leaving an incomplete thought and weakening the structure. Otherwise there is little filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a complex audit tool with no output schema, the description explains the return artifacts and input modes, which is the main missing piece. It still omits operational details such as read-only behavior and error handling, and the detector list is incomplete, but it is mostly complete for 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 schema already documents all five parameters, including the exactly-one-of constraint and the Sourcify 404 behavior. The description restates the three input modes but adds no syntax or selection guidance beyond the schema. Baseline 3 is appropriate.

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 states a specific verb and resource: 'Source-level security review of Solidity.' It also names the concrete outputs (verdict, risk score, findings, SARIF), so an agent can tell this is a contract source auditor rather than a token or dispute tool.

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

Usage Guidelines3/5

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

The description identifies three input modes (raw code, file list, on-chain address), which implies usage. However, it gives no explicit when-to-use guidance, no exclusions, and no comparison to sibling tools. The agent must infer the selection conditions from the input modes alone.

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