Skip to main content
Glama
SolidityScan MCP Server

SolidityScan MCP Server

Official
by Credshields

scan_local_directory

Scans a local directory of Solidity files to identify security issues and report vulnerabilities.

Instructions

Scan a local directory containing Solidity files

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": {
      "directoryPath": "<directoryPath>"
    },
    "name": "scan_local_directory"
  }
}

Input Schema

NameRequiredDescriptionDefault
apiTokenNoSolidityScan API token
projectNameNoName for the local project scanLocalScan
directoryPathYesPath to local directory containing Solidity files

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are supplied, so the description must carry behavioral detail. It only says it scans a local directory; it does not disclose whether scanning is recursive, whether it creates a project, API/auth requirements, rate limits, or side effects.

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

Conciseness5/5

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

A single front-loaded sentence with no redundant wording. It is as concise as a one-line purpose statement can be.

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?

With no annotations and no output schema, the description is too thin for a tool that likely interacts with an external scanning service. It does not explain return behavior, project creation, or the role of the API token, leaving key invocation context 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 the input schema already documents directoryPath, apiToken, and projectName. The description adds no parameter-specific meaning beyond that baseline.

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?

States a specific verb ('Scan') and resource ('local directory containing Solidity files'), making the scope narrower than a single file. It does not explicitly name when to choose it over scan_project or scan_file_content, so it stops short of full sibling differentiation.

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?

Usage is implied by 'local directory' – use it when the target is a directory rather than a single file. There is no explicit statement of when to prefer it over scan_project or scan_file_content, and no exclusions or prerequisites.

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