Skip to main content
Glama
second-desk-trust

second-desk-trust

Official

package_audit

Scan a local folder before installing or running its contents; report executables, install scripts, network calls, and secret-shaped strings without executing files or exposing secret values.

Instructions

Scan a local folder before you install or run what is in it. Give the folder path. The report lists executable files, install and setup scripts (including npm install hooks), code that opens network connections with the file and line for each hit, and secret shaped strings with the kind of secret and where it sits. The values of secrets are never read out. Nothing in the folder is executed.

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": "package_audit"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does meaningful work: it guarantees nothing in the folder is executed and that secret values are never read out, which are exactly the safety properties an agent needs before invoking a local scanner. It does not cover practical traits such as runtime cost, handling of a nonexistent or huge path, or whether scanning is recursive, so it is strong but not exhaustive.

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?

Front-loaded with the action and the trigger, then the return contents, then two safety guarantees. Every clause carries information an agent would otherwise have to guess, and there is no restatement of the tool name or filler.

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 one-parameter tool with no output schema and no annotations, the description effectively stands in for an output schema by listing report sections, and it discloses the key behavioral guarantees. What is missing is edge-case behavior (invalid path, permission errors) and whether scanning recurses into subdirectories, which would matter when picking a path to pass.

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 0% and the single parameter is only titled "Path", so the description must compensate. "Give the folder path" adds the useful constraint that this is a directory (not a file) and, combined with "local folder," that it is a filesystem location rather than a package name or URL. It still says nothing about absolute vs. relative paths, symlinks, or the root scanned, which leaves real ambiguity for a 0%-coverage param.

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?

"Scan a local folder before you install or run what is in it" gives a specific verb (scan) and resource (local folder), then enumerates exactly what the report returns: executables, install/setup scripts incl. npm hooks, network-calling code with file/line, and secret-shaped strings. It is clearly a pre-install static audit, but it never explicitly contrasts itself with siblings like mcp_config_audit or capsule_inspect, which is what separates a 4 from a 5.

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 trigger condition is stated plainly: run it before installing or running anything from the folder. That is a real, actionable when-to-use rule rather than an implied one. It does not say when not to use it or name an alternative tool for adjacent jobs (e.g. auditing configs vs. auditing a package), so it stops short of a 5.

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