Skip to main content
Glama
SolidityScan MCP Server

SolidityScan MCP Server

Official
by Credshields

scan_file_content

Scans raw Solidity source code content directly to detect security vulnerabilities in inline contracts, helping identify risks before deployment.

Instructions

Scan Solidity source code content directly

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": {
      "fileContent": "<fileContent>"
    },
    "name": "scan_file_content"
  }
}

Input Schema

NameRequiredDescriptionDefault
apiTokenNoSolidityScan API token
fileNameNoName for the contract fileContract.sol
fileContentYesRaw Solidity contract source code to scan
projectNameNoName for the scan projectInlineScan

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full burden but discloses almost nothing: it does not say the code is submitted to an external SolidityScan service, whether an apiToken is required versus optional, whether the call is synchronous, or what happens on failure. A one-line restatement of the action leaves an agent unable to predict cost, latency, 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.

Conciseness4/5

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

A single front-loaded sentence with no filler or redundancy. It is efficient, though its brevity is a symptom of omission rather than disciplined editing.

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?

For a four-parameter tool that sends source code to a third-party scanning service with no annotations and no output schema, the description never explains what comes back (scan results, job identifier, or report link) or how the optional apiToken and projectName affect behavior. It is far too thin for the tool's complexity.

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 all four parameters (apiToken, fileName, fileContent, projectName) are already documented in the schema. The description adds no format, size-limit, or defaulting guidance beyond that, so the baseline 3 applies.

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 pairs a specific verb and resource ('Scan Solidity source code content') and the word 'directly' hints that raw inline content is scanned rather than a path or project, which loosely separates it from scan_local_directory and scan_project. It stops short of naming those siblings, so the distinction must be inferred.

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

Usage Guidelines2/5

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

There is no statement of when to choose this over scan_contract, scan_local_directory, or scan_project, and no mention of prerequisites such as needing an API token. The only usage signal is the adverb 'directly', which an agent must interpret on its own.

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