Skip to main content
Glama

Crypto & Web Data API for Agents

npm package risk and metadata

security_npm
Read-only

npm package risk and metadata. Latest version, description, license, maintainers, weekly downloads and install scripts of an npm package. Price $0.020 per call (x402: USDC on Base or Solana).

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

Input Schema

NameRequiredDescriptionDefault
txNoAlternative to the X-Payment-Tx header
nameYesnpm package name

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the description is not the primary source of the safety profile. It does add genuinely useful context beyond the annotations: the per-call price of $0.020 and the x402 payment mechanism (USDC on Base or Solana). It says nothing about behavior on unknown/unpublished package names, scoped packages, or rate limits, which would have raised the score.

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?

Two short sentences, front-loaded with the resource identity and followed by the concrete fields returned, in the same order an agent would scan them. The parenthetical payment note is compact and earns its place, though the field list reads slightly as a dump.

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?

No output schema exists, and the description compensates by enumerating the returned fields, which is exactly what an agent needs to decide relevance. With only two well-documented parameters and clear read-only annotations, little else is required; only failure modes for nonexistent packages are unaddressed.

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 both 'name' and 'tx' are documented in the schema itself; the 3 baseline applies. The pricing/x402 sentence does give indirect meaning to the 'tx' payment-header parameter, but it never references the parameter directly or explains the fallback it enables.

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?

States a specific resource and verb-equivalent ('npm package risk and metadata') and enumerates returned fields: latest version, description, license, maintainers, weekly downloads, install scripts. The 'npm' qualifier implicitly distinguishes it from siblings like security_pypi and security_crate, though it never names an alternative explicitly.

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 when-to-use guidance, no exclusions, and no mention of when another tool (e.g. security_deps, security_osv, security_scorecard) would be preferable. The agent must infer that this is the right tool for vetting a single npm package purely from the field list.

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.

Resources