Skip to main content
Glama

scan_solidity_preview

Read-onlyIdempotent

FREE Solidity security check (Slither static analysis), no key and no wallet. Detects known vulnerability patterns (reentrancy, unchecked calls, tx.origin authorisation, arbitrary ETH sends, unprotected functions and more) and returns severity counts, High/Medium detector names, a description of each High/Medium issue (issues: what and why, no location) and one lower-severity finding in full as an example (example_finding); exact file/line of every finding is in scan_solidity_findings, fixes in scan_solidity_full. Use after writing or changing a contract and before deployment. Input: {"sources": {"File.sol": ""}} (include imported files; package imports such as @openzeppelin/contracts/... stay as written when the package files are submitted under that path, node_modules/ or lib/openzeppelin-contracts/contracts/). Up to 15 KB / 10 files; rate-limited per client. Zero findings does not mean safe.

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": {
      "sources": "<sources>"
    },
    "name": "scan_solidity_preview"
  }
}

Input Schema

NameRequiredDescriptionDefault
sourcesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/closed-world, and the description adds substantial context beyond them: no key or wallet required, per-client rate limiting, 15 KB / 10 file caps, and the deliberate limitation that only one lower-severity finding is returned in full with no locations. The false-negative caveat is a genuine behavioral disclosure.

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, cost, and return shape, and essentially every clause carries information. It is a dense single paragraph, though, and the input-format and import-path details sit mid-sentence, making it harder to scan than a short bulleted structure would be.

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?

With no output schema and a nested open-object input, the description fully compensates by describing return contents, size/file limits, rate limiting, and the import-path convention. Nothing an agent needs in order to invoke it correctly or interpret the response is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% and the single parameter is an untyped open object, so the description carries the full burden — and it does, giving the literal input shape {"sources": {"File.sol": "<source>"}}. It further explains that imported files must be included and how package-style imports (@openzeppelin/contracts/..., node_modules/, lib/openzeppelin-contracts/contracts/) are resolved, which is meaning the schema cannot convey.

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?

States a specific verb+resource (Solidity security check via Slither static analysis) and immediately scopes what it returns: severity counts, High/Medium detector names, descriptions, and one full example finding. It explicitly distinguishes itself from siblings by saying exact file/line lives in scan_solidity_findings and fixes in scan_solidity_full.

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?

Gives an explicit lifecycle trigger ('after writing or changing a contract and before deployment') and routes the agent to the two sibling tools for locations and remediation. It also warns that zero findings does not mean safe, which prevents misuse of an empty result as a safety verdict.

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