Skip to main content
Glama

vetcode_scan

Read-onlyIdempotent

Scan a local project folder for malware, supply-chain risks, leaked secrets, and web or server vulnerabilities without running its code. Returns findings to confirm by reading the source.

Instructions

Scan a local folder for malware, supply-chain risks, AI-agent attacks, leaked secrets and web/server vulnerabilities. Read-only: never installs or runs anything from the folder. Returns candidates that must be confirmed by reading the code (see vetcode_guide).

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": {
      "path": "<path>"
    },
    "name": "vetcode_scan"
  }
}

Input Schema

NameRequiredDescriptionDefault
depsNoAlso read installed node_modules (install scripts and their code).
diffNoOnly files changed against this git base (empty string: uncommitted changes).
pathYesAbsolute path of the project folder to scan.
onlineNoAlso look up dependencies on OSV.dev (sends package names and versions only).
historyNoAlso search git history for secrets that were committed and removed.
no_ignoreNoIgnore the folder's .vetcodeignore and inline suppressions. Use for code you did not write.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.8.7

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and destructiveHint=false, but the description adds meaningful context: it explicitly will not install or execute anything from the scanned folder, which matters for untrusted code. It also discloses that results are unconfirmed candidates requiring human/agent verification, a trait not encoded in any annotation 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.

Conciseness5/5

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

Three tight sentences with zero filler: capability first, safety guarantee second, result semantics and next step third. Front-loaded and easy to parse.

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 six-parameter scanning tool with no output schema, the description covers purpose, safety posture, and the nature of the returned data (candidates needing confirmation), which is enough to invoke correctly. The only gap is that the network-touching 'online' mode is left entirely to the schema plus openWorldHint rather than being reinforced in prose.

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 six parameters (deps, diff, path, online, history, no_ignore) are already documented in the schema. The description adds no parameter-level detail such as diff syntax examples or what the online lookup transmits, so the baseline of 3 applies.

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 and resource ('Scan a local folder') and enumerates the threat classes it covers: malware, supply-chain risks, AI-agent attacks, leaked secrets, and web/server vulnerabilities. An agent can immediately tell this is the broad filesystem audit tool rather than the guide/guard/reference siblings.

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?

Implies usage (scan a project folder) and routes the agent forward with 'must be confirmed by reading the code (see vetcode_guide)', which is useful workflow guidance. However, it never states when this tool is the wrong choice versus vetcode_guard or vetcode_reference, and gives no prerequisites such as needing an absolute path to an existing directory.

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