Skip to main content
Glama

screen_package_risk

Read-only

Deterministic npm package.json and PyPI requirements.txt supply-chain auditor flagging malicious lifecycle scripts, mutable URL or git sources, typosquatting, and hidden Unicode. Returns signed Ed25519 audit receipt. Requires $0.005 (5000 atomic) Base USDC.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "screen_package_risk"
  }
}

Input Schema

NameRequiredDescriptionDefault
scriptsNoOptional npm lifecycle scripts map checked for install hooks.
manifestNoSupplied package.json object or raw requirements.txt text.
ecosystemNoTarget package ecosystem: npm or pypi.
dependenciesNoOptional npm dependencies map when passing raw package.json fields.
devDependenciesNoOptional npm devDependencies map.

Output Schema

NameRequiredDescriptionDefault
okNoWhether the screening check completed.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • addedInput schema / properties / dependencies / description
      Added value: +"Optional npm dependencies map when passing raw package.json fields."
    • addedInput schema / properties / devDependencies / description
      Added value: +"Optional npm devDependencies map."
    • addedInput schema / properties / ecosystem / description
      Added value: +"Target package ecosystem: npm or pypi."
    • addedInput schema / properties / manifest / description
      Added value: +"Supplied package.json object or raw requirements.txt text."
    • addedInput schema / properties / scripts / description
      Added value: +"Optional npm lifecycle scripts map checked for install hooks."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "ok": {
      +      "description": "Whether the screening check completed.",
      +      "type": "boolean"
      +    }
      +  },
      +  "type": "object"
      +}
  2. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly/openWorld/non-destructive, so the bar is lower, and the description still adds real value: it discloses that the audit is deterministic, that it returns a signed Ed25519 receipt, and that each call costs $0.005 in Base USDC. The payment requirement is exactly the kind of operational context annotations cannot express. It does not explain what happens on a failed payment or an unparsable manifest, which keeps it from a 5.

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: capability and checks first, then the output artifact, then the cost constraint. Nothing is repeated from the title or schema, and every clause carries information an agent needs before invoking.

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 paid, non-idempotent auditing tool with a full output schema, the definition covers the essential unknowns: determinism, receipt signing, and price. What is missing is failure-mode behavior (invalid manifest, insufficient payment) and any note about the size limit enforced by the schema's 24576-character cap.

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 100%, so the baseline is 3. The description does add some meaning by naming the manifest types accepted (package.json object, raw requirements.txt text) and by describing the checks that map to the scripts/dependencies fields, but it does not clarify the ecosystem enum's role or how the optional npm sub-maps combine with a raw manifest string.

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?

The description names a concrete verb and resource ('supply-chain auditor' for 'npm package.json and PyPI requirements.txt') and enumerates the specific checks performed (lifecycle scripts, mutable URL/git sources, typosquatting, hidden Unicode). It is clearly distinguishable from generic screening tools, though it never names the closest sibling, preview_package_risk, so the paid-vs-preview relationship is only implied by the price line.

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?

Usage is implied: you call it with a manifest to get a signed audit verdict, and the price line signals this is the paid counterpart to a preview. However, there is no explicit 'use this when you need a verifiable receipt, use preview_package_risk when you just want a free check' guidance, and no stated exclusions or prerequisites beyond the cost.

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