Skip to main content
Glama

Scan a public GitHub repository

scan_public_repo
Read-onlyIdempotent

Scans the package files of a public GitHub repository (up to 40, shallowest first) for vulnerable and outdated dependencies across npm, PyPI, Composer, RubyGems, Go, Maven and NuGet. Returns the same health score and fixes as npmscan.io/scan. A repository scanned in the last 30 minutes comes from cache. Private repositories need an npmscan account.

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": {
      "repo": "<repo>"
    },
    "name": "scan_public_repo"
  }
}

Input Schema

NameRequiredDescriptionDefault
repoYesA public GitHub repository: https://github.com/owner/repo or owner/repo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/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 openWorldHint, so the safety profile is covered. The description adds genuinely non-obvious behavior beyond that: a 40-file cap, shallowest-first selection order, a 30-minute cache window, and the account requirement for private repos. What's missing is failure behavior (no package files found, invalid repo, rate limits).

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 sentences, front-loaded with the action and scope, then limits, then the cache/auth caveats. Every clause carries information an agent could act on; nothing is repeated from the schema or annotations.

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 does the right thing by stating the return value ('health score and fixes') and the parity with npmscan.io/scan. For a single-parameter read tool this is close to complete; only error/empty-result behavior is left unaddressed.

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?

There is one parameter with 100% schema description coverage, which already documents both accepted formats (URL or owner/repo) and the 3-200 length bounds. The description reinforces the 'public' constraint that the schema does not state, but adds no format or parsing detail beyond that, so 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.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb and resource ('Scans the package files of a public GitHub repository') and enumerates the ecosystems covered, so an agent knows exactly what class of input it accepts. It does not name a sibling such as check_package or check_dependencies, so the boundary with those tools is only implied by the 'GitHub repository' scope rather than stated.

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 rather than prescribed: 'public GitHub repository' and 'Private repositories need an npmscan account' tell the agent this tool is not for private repos, but there is no explicit when-to-use versus check_package or get_advisory. No guidance on what to do when a repo has no supported package files.

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