Skip to main content
Glama
SolidityScan MCP Server

SolidityScan MCP Server

Official
by Credshields

scan_contract

Scans a deployed smart contract by address and chain to detect security vulnerabilities, helping you assess risk before interacting with it.

Instructions

Scan a deployed smart contract by address for security vulnerabilities

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": {
      "contractAddress": "<contractAddress>",
      "chain": "<chain>"
    },
    "name": "scan_contract"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainYesChain name supported for the selected platform (from get_supported_platforms_chains).
apiTokenNoSolidityScan API token (optional if set in headers or environment)
platformNoExplorer/platform name (from get_supported_platforms_chains).
contractAddressYesThe deployed contract address to scan

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden. It does not disclose authentication requirements, whether the scan is synchronous or asynchronous, expected duration, rate limits, or what kind of result is returned, which are important for a security scanning operation.

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?

The description is a single clear sentence with no wasted wording. It is front-loaded and easy to parse, though its brevity contributes to other gaps rather than being a conciseness flaw.

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

Completeness2/5

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

The tool has four parameters, no annotations, and no output schema, so the description should do more to explain behavior and return expectations. It does not clarify whether results are returned directly, whether a report must be generated separately, or how authentication works despite apiToken being optional.

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 the description mentions scanning 'by address', which corresponds to contractAddress. The chain, platform, and apiToken parameters are fully described in the schema, including references to get_supported_platforms_chains, so the description adds little beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/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: scan a deployed smart contract by address for security vulnerabilities. It clearly identifies the operation and target, but does not explicitly distinguish it from siblings such as scan_and_get_report_pdf or scan_project.

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 phrase 'deployed smart contract by address' implies this tool is for on-chain contracts rather than local files, directories, or projects, giving some usage context. However, it does not explicitly name alternatives or state when not to use this tool.

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