Skip to main content
Glama
Tanod MCP Server

Tanod MCP Server

Official

scan_contract_source

Read-onlyIdempotent

Scans Solidity source code for security bugs before deployment, review, or dependency use, returning severity-ranked findings with file:line locations and fixes.

Instructions

pactlint: Scan Solidity source code for security bugs before you deploy, review or depend on it. For a deployed verified contract use scan_contract_address. 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. Typically 1-5 s, up to about 30 s for a large project; 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

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": "scan_contract_source"
  }
}

Input Schema

NameRequiredDescriptionDefault
sourceNoA single Solidity file (no imports; at most 200 KB). Give either source or standard_json.
filenameNoFile name for `source` (ends in .sol; default Contract.sol); findings cite it in file:line.Contract.sol
include_noisyNoAlso report detectors dropped by default as noisy (high false-positive rate).
standard_jsonNosolc standard-JSON input with inline 'content' for every file (at most 1 MB and 500 files).
compiler_versionNoExact solc version (default: from pragma).
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. First observedv0.3.4

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, so the bar is lower, yet the description adds substantial operational context beyond them: tiered pricing by nSLOC, the free quota, typical and worst-case latency, 503-with-Retry-After queue behavior, no-charge-on-refusal, and an explicit false-positive disclaimer that the result is not an audit. This is exactly the kind of information annotations cannot convey.

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 sibling routing before cost/latency/caveats, and no sentence is filler. It is dense, though — pricing, free tier, timing, error behavior, disclaimer and a docs URL in one block pushes toward the upper bound of what an agent can absorb at once.

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?

For a 7-parameter analysis tool with an output schema, the description covers everything an agent needs: input modality constraints, expected return shape (JSON findings plus Markdown), cost, latency envelope, failure mode, and reliability caveats. Nothing material is left to inference.

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% and every parameter carries a detailed inline description (source vs standard_json, filename pattern, include_noisy, include_dependencies), so the schema does the heavy lifting. The description adds no parameter-level meaning beyond naming the engines; the default-3 baseline applies.

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 opens with a specific verb and resource ('Scan Solidity source code for security bugs') and immediately scopes it against the sibling: 'For a deployed verified contract use scan_contract_address.' It also names the underlying engine (solc, Slither, custom DeFi detectors), so an agent knows exactly what class of analysis this performs.

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?

It states the triggering situations ('before you deploy, review or depend on it') and explicitly routes the alternative case (deployed verified contract) to a named sibling tool. The input-shape rule ('no imports; give either source or standard_json') further constrains when this tool is the right call.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools