Skip to main content
Glama

mcp-npm-audit

Fix npm package vulnerabilities by running npm audit fix in a specified directory to address security issues in dependencies.

Instructions

Execute mcp-npm-audit: npm audit fix

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
directoryNoDirectory to run the command in (optional, defaults to current directory)
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It states the tool executes 'npm audit fix', which implies a mutation operation (fixing vulnerabilities), but doesn't describe side effects (e.g., modifies package-lock.json), permissions needed, error handling, or output format. This is a significant gap for a mutation tool with zero annotation coverage.

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?

The description is a single, efficient sentence with no wasted words. It's front-loaded with the core action, though it could be more informative. The structure is clear but minimalistic.

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

Completeness2/5

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

Given the tool's complexity (executing a security fix command), lack of annotations, and no output schema, the description is incomplete. It doesn't explain what 'npm audit fix' does, potential impacts, or what to expect upon execution. For a mutation tool with no structured safety information, this leaves critical gaps for an AI agent.

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%, with the single parameter 'directory' well-documented in the schema. The description adds no parameter information beyond what the schema provides, so it doesn't enhance understanding of parameter usage or constraints. Baseline 3 is appropriate when the schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description 'Execute mcp-npm-audit: npm audit fix' states the action (execute npm audit fix) but is vague about the specific purpose. It doesn't clearly distinguish this tool from sibling tools like 'mcp-npm-outdated' or explain what 'npm audit fix' actually does (e.g., security vulnerability fixes). The description partially restates the tool name without adding meaningful differentiation.

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

Usage Guidelines2/5

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

No guidance is provided on when to use this tool versus alternatives. The description doesn't mention sibling tools like 'mcp-npm-outdated' for checking outdated packages or other security tools, nor does it specify prerequisites (e.g., requires npm project) or appropriate contexts. Usage is implied but not explicitly defined.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/caroline-davis/mcp-basics'

If you have feedback or need assistance with the MCP directory API, please join our Discord server