Skip to main content
Glama

run_malware_scan

Run a ClamAV malware scan on a site's container.

Scans the web root (or specified path) for malware, viruses, and trojans. ClamAV is installed automatically if not present. Excludes node_modules, vendor, .git, and cache directories.

May take up to 5 minutes for large sites.

Requires: API key with write scope.

Args: slug: Site identifier path: Directory to scan (default: /var/www/html)

Returns: {"infected_files": [{"path": "/var/www/html/shell.php", "threat": "Php.Malware.Agent"}], "scanned_count": 1234, "infected_count": 1, "scan_time_s": 45.2}

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": {
      "slug": "<slug>"
    },
    "name": "run_malware_scan"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNo
slugYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

With no annotations, the description takes full responsibility for behavioral disclosure. It details auto-installation of ClamAV, excluded directories, timeouts for large sites, and the authentication requirement. It also shows the exact return format. This is rich behavioral information that goes well beyond the minimal.

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?

The description is well-structured and efficient. It starts with a one-sentence purpose, then adds necessary context (exclusions, auto-install, time), prerequisites, argument definitions, and a sample return object. Every sentence serves a purpose, with no fluff.

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?

Given the schema is minimal, there are no annotations, and no output schema, the description provides all needed context: purpose, arguments, behavior, return values, and anticipated delays. It lacks error-handling details, but for a scanning tool this is not a critical gap. The description is sufficiently complete for an agent to invoke the tool correctly.

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?

The input schema provides only parameter names and types with zero description coverage. The description compensates fully with an 'Args' section defining 'slug' as the site identifier and 'path' as the directory to scan, including the actual default value (/var/www/html) which differs from the schema's empty-string default. This grants the agent complete understanding of parameter semantics.

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: 'Run a ClamAV malware scan on a site's container.' It further clarifies the scope ('web root or specified path') and the types of threats detected. No sibling tool performs malware scanning, so it is clearly distinguished.

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

Usage Guidelines4/5

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

The description provides clear context on when to use the tool: to scan a site's container for malware, viruses, or trojans. It mentions prerequisites (API key with write scope), potential duration (up to 5 minutes), and exclusions (node_modules, vendor, etc.). However, it does not explicitly discuss alternatives or when not to use it, though no direct alternatives exist among siblings.

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.