Skip to main content
Glama
OSS License Auditor

OSS License Auditor

by vinkius-labs

license_audit

Read-only

Audits package.json dependencies against corporate license policy, flagging viral (GPL/AGPL) and unknown licenses so blocked packages are removed and warnings reviewed.

Instructions

[INSTRUCTIONS] Call this with the dependencies from a package.json to check for license compliance. Pass the dependencies object (and optionally devDependencies) as JSON strings. The tool resolves each package from the npm registry, classifies the license, and applies corporate policy. BLOCKED packages MUST be removed or replaced. WARNING packages need legal review. Use license.check for a single package before adding a new dependency.

Audit all dependencies from a package.json against the corporate license policy — detects viral (GPL, AGPL) and unknown licenses [READ-ONLY]

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": {
      "dependencies": "<dependencies>"
    },
    "name": "license_audit"
  }
}

Input Schema

NameRequiredDescriptionDefault
dependenciesYesJSON string of the dependencies object from package.json (e.g., {"lodash":"^4.17.21","express":"^4.18.0"})
dev_dependenciesNoJSON string of the devDependencies object from package.json
include_transitiveNoAlso audit first-level transitive dependencies (slower but more thorough)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the safety profile is covered elsewhere; the description adds meaningful behavior on top — resolution against the npm registry, license classification, and a BLOCKED/WARNING policy verdict with what each requires. What it omits is failure behavior: it never says what happens to packages that cannot be resolved or have no license metadata, which matters for a network-backed audit. The '[READ-ONLY]' tag merely restates the annotation.

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?

Usage and policy meanings are front-loaded and most sentences earn their place. Minor waste and friction: the '[INSTRUCTIONS]' wrapper and '[READ-ONLY]' tag are noise, and the sibling is referenced as 'license.check' while the actual tool is named license_check, which risks a mis-invocation.

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 important work of explaining what the verdicts mean (BLOCKED vs WARNING) so results can be interpreted. It leaves the return shape itself — counts, per-package listing, or summary — unstated, and does not mention anything about unresolvable packages.

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 all three parameters are already documented, including the JSON-string format the description repeats. The description adds nothing about the include_transitive flag, whose 'slower but more thorough' trade-off is only described in the schema itself. Baseline 3 is appropriate when the schema carries the parameter burden.

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 and resource — audits all dependencies from a package.json against the corporate license policy — and names the license classes it detects (viral GPL/AGPL, unknown). It also distinguishes itself from the single-package sibling by pointing to license_check for one-off checks, so an agent can route without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit when-to-use ('call this with the dependencies from a package.json'), a named alternative with its own trigger ('Use license.check for a single package before adding a new dependency'), and an action obligation from the result (BLOCKED packages MUST be removed or replaced). Exclusions and alternatives are both present rather than inferred.

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