Skip to main content
Glama

Get package health

get_package_health
Read-onlyIdempotent

Returns health facts for one open-source package version: resolved version and publish date, deprecation status, licenses, known advisory count and IDs, days since latest release, releases in the last 12 months, source repo with OpenSSF Scorecard score and top failing checks, dependent count, and plain health flags, plus source and as_of. Ecosystems: npm, pypi, crates, go, maven (groupId:artifactId), nuget. Read-only, free, no grade or recommendation. Limits: data is from deps.dev and may lag registries by hours; Scorecard exists only for scanned public repos.

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

Input Schema

NameRequiredDescriptionDefault
nameYesExact package name, e.g. lodash, requests, serde, github.com/gin-gonic/gin, org.apache.commons:commons-lang3
versionNoVersion to check. Defaults to the latest release.
ecosystemYesPackage ecosystem: npm, pypi, crates, go, maven or nuget

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

The annotations already declare readOnly, idempotent, non-destructive and open-world, so the safety profile is covered. The description adds genuinely non-obvious behavior: data provenance is deps.dev, results may lag registries by hours, and Scorecard data only exists for scanned public repos — caveats an agent needs to avoid over-claiming freshness or completeness. It stops short of describing response shape or failure behavior (e.g., unknown package), keeping it at 4.

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?

Purpose and scope are front-loaded in the first sentence, and the trailing Limits sentence carries distinct caveat value. The middle section is a long comma-chained enumeration of return fields, which is dense but earns its place given there is no output schema; a bulleted or shorter form would read better.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/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 carries the burden of describing the return payload, and it does so thoroughly, including metadata like `source` and `as_of`. Ecosystem coverage, data-source staleness, and Scorecard limitations are all disclosed, leaving nothing an agent needs before calling it.

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 `name`, `version` (defaults to latest) and the `ecosystem` enum are already fully documented. The description restates the ecosystem list and the maven groupId:artifactId convention, which duplicates the schema's own example rather than adding new meaning. Baseline 3 is appropriate.

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?

The opening clause names a specific verb and resource — 'Returns health facts for one open-source package version' — and then enumerates the exact facts returned (resolved version, deprecation, licenses, advisory count/IDs, days since release, release cadence, repo + OpenSSF Scorecard, dependent count, health flags, source/as_of). There is no ambiguity about what the tool produces, and it explicitly distinguishes itself from a grading tool by stating 'no grade or recommendation'.

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?

It gives clear context for use — per-version open-source package health, the six supported ecosystems, and the explicit note that it returns facts without a grade or recommendation, which implicitly routes scoring/judgment requests elsewhere. What it lacks is an explicit 'use this instead of X when Y' routing statement, though no sibling tools exist to route against.

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