Skip to main content
Glama

Check a package before depending on it

foster_check_package
Read-only

Check whether a package is maintained, has unfixed vulnerabilities, or has a drop-in security patch before adding it as a dependency.

Instructions

Check whether a package (npm, PyPI, Cargo, Go, RubyGems or Packagist) is still maintained, whether it has vulnerabilities with no fix, and whether a published drop-in security patch exists (from Foster or providers like Keep LTS). Call this before adding a new dependency.

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": "foster_check_package"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesPackage name, e.g. 'ip' or '@scope/name'
versionNoExact version to check, e.g. '2.0.1'
ecosystemNonpm

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.9.6

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered. The description adds real behavioral context beyond that: it queries six external registries and returns three distinct assessments, including third-party patch providers like Keep LTS. It does not mention latency, rate limits, or behavior when a package is unknown, but with annotations present the bar is lower.

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, no filler. The capability statement comes first and the actionable trigger follows, which is the right front-loading for an agent deciding whether to call it.

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?

There is no output schema, and the description compensates by naming the three results an agent should expect, which is enough to interpret a response. Minor gaps remain: nothing on missing-package or no-patch outcomes, and no hint about response size for a multi-registry lookup.

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 67%, and the schema already documents name examples and version format. The description's ecosystem list merely restates the enum values rather than explaining defaults or whether omitting version widens the check. Baseline 3 is appropriate given the schema does most of the work.

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 (check) and resource (package), then enumerates the three concrete verdicts it returns: maintenance status, unfixed vulnerabilities, and availability of a drop-in security patch. The ecosystem list in parentheses bounds scope precisely, and the 'before adding a new dependency' framing separates it from sibling tools like foster_scan_project.

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?

Explicitly says when to call it: 'before adding a new dependency.' That is a clear trigger condition. It does not name when-not-to-use cases or point to a specific alternative (e.g. foster_list_patches for browsing patches without a package check), so it stops short of full routing guidance.

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