Skip to main content
Glama

preview_package_risk

Read-onlyIdempotent

FREE ($0.00, no wallet): Quickcheck an npm or PyPI package spec for direct URLs and typosquats. Returns verdict, riskScore, top_finding, and upgrade_hint to screen_package_risk ($0.005 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": "preview_package_risk"
  }
}

Input Schema

NameRequiredDescriptionDefault
pkgNoPackage name to check for typosquats.
specNoOptional version or URL specifier.
ecosystemNoPackage ecosystem: npm or pypi.

Output Schema

NameRequiredDescriptionDefault
okNoWhether the screening check completed.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / ecosystem / description
      Added value: +"Package ecosystem: npm or pypi."
    • addedInput schema / properties / pkg / description
      Added value: +"Package name to check for typosquats."
    • addedInput schema / properties / spec / description
      Added value: +"Optional version or URL specifier."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "ok": {
      +      "description": "Whether the screening check completed.",
      +      "type": "boolean"
      +    }
      +  },
      +  "type": "object"
      +}
  2. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and a closed-world scope, so the safety profile is covered. The description adds genuinely useful context the annotations cannot: it costs $0.00, requires no wallet, and is a shallow screen whose upgrade_hint points to a paid deeper tool at $0.005 Base USDC. What remains undisclosed is the depth of the check itself (what makes a 'verdict').

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?

Two sentences, front-loaded with the free/no-wallet qualifier, then the check and the escalation path. Every clause carries information; no 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?

With an output schema present, return values need no explanation. The description covers cost, scope, wallet requirements, and the escalation route, which is enough for a 3-parameter screening tool. It stops short of explaining how the verdict thresholds work or any input constraints, leaving a minor gap.

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 pkg, spec and ecosystem are already documented, including npm/pypi. The description only echoes the ecosystem options and the notion of a 'spec' without adding syntax, format, or interaction rules, so the baseline of 3 applies.

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?

States a specific verb ('Quickcheck') applied to a specific resource (npm or PyPI package spec) with the exact checks performed (direct URLs and typosquats). It is clearly distinguishable from the sibling screen_package_risk, which it names as the deeper paid alternative.

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?

Gives clear context for when this tool is the right choice: it is free, needs no wallet, and is positioned as the screening step before paying for screen_package_risk. It does not state an explicit when-not-to-use condition or other limits (rate limits, depth of check), which keeps it 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.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources