Skip to main content
Glama

Malware scan for a file before installing, building, or running it (paid, $0.05)

malware_scan
Read-only

PAID over x402 inside this tool call ($0.05 USDC on Base or Arc): static PolinRider / Contagious Interview malware scan for a file's text before installing, building, or running it. Returns verdict clean/suspicious/dangerous, a 0-100 score, action allow/review/block, summary, top findings and facts. Static only — the file is never executed, scanned in memory, never stored. Call once without payment to get the x402 PaymentRequired, then call again with the signed payment in _meta["x402/payment"].

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": {
      "filename": "<filename>",
      "content": "<content>"
    },
    "name": "malware_scan"
  }
}

Input Schema

NameRequiredDescriptionDefault
contentYesFull file text to scan, max 2 MB.
filenameYesFile name, e.g. 'postcss.config.mjs'.

Output Schema

NameRequiredDescriptionDefault
fileNoFile scanned
_paidNox402 receipt
factsNoFacts: traits found, trait count, highest weight
scoreNoRisk score 0-100
actionNoallow | review | block
malwareNoAttribution: family, confidence, campaign, basis
summaryNoOne-sentence summary
verdictNoclean | suspicious | dangerous
categoriesNoCategory scores: loader, marker, obfuscation, execution, exfiltration, extension
confidenceNohigh | medium | low
topFindingsNoTop findings, at most 5

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, but the description adds substantive behavior: static-only analysis, the file is never executed, scanned in memory, never stored, and the tool is paid at $0.05 USDC on Base or Arc. The two-step payment retry protocol is disclosed, which an agent could not derive from annotations or schema.

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?

Pricing and purpose are front-loaded and the sentences carry real information with little padding. There is mild redundancy in restating the price in the opening clause and again in the payment-flow sentence, and the enumerated return fields overlap with the output schema.

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

Completeness4/5

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

For a paid, stateless single-file scanner this covers the essentials: purpose, safety profile, cost, and the retry-with-payment protocol. Return values are enumerated even though an output schema exists, so the description is complete, if slightly repetitive.

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 coverage is 100%, with both filename and content already documented including size limits, so the baseline is 3. The description adds only the notion of a signed payment passed in _meta, which is a transport concern rather than clarification of the two named parameters.

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 gives a concrete verb and resource: a static malware scan of a file's text, plus what it returns (verdict, 0-100 score, action). The phrase 'a file's text' implicitly separates it from sibling malware_scan_batch and malware_scan_repo, though neither is named, so an agent must infer the boundary rather than being told.

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?

It states the triggering context clearly ('before installing, building, or running it') and gives explicit call guidance for the payment handshake: call once to receive the x402 PaymentRequired, then retry with the signed payment. It stops short of naming when to prefer the batch or repo scan siblings instead.

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.