Skip to main content
Glama

Check the licences of a project's dependencies

check_licences

Looks up the licence of every package version in a project's lockfiles (deps.dev, else the lockfile itself) and says which ones to look at first for this kind of project: copyleft in software you ship, AGPL in a hosted service, packages with no licence, licences that changed between versions. Works without an API token. Not legal advice. Package names and versions are sent to deps.dev; the files themselves are not stored.

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": {
      "files": "<files>",
      "project_kind": "<project_kind>"
    },
    "name": "check_licences"
  }
}

Input Schema

NameRequiredDescriptionDefault
filesYes
project_kindYesproprietary_app: A closed-source app shipped to customers (desktop, mobile, on-premises, firmware); saas: A hosted service or website (SaaS, web app, API); library_permissive: An open-source library under a permissive licence; library_copyleft: An open-source project under a copyleft licence; internal_only: An internal tool, never distributed outside the organisation; unsure: Not sure

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Beyond the annotations, the description discloses substantive behavior: a deps.dev lookup with fallback to the lockfile itself, no API token required, outbound transmission of package names/versions, no file storage, and a 'not legal advice' caveat. The privacy and fallback details are exactly the kind of context annotations cannot convey, though it does not clarify why readOnlyHint is false for what reads as a pure lookup.

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?

The core action is front-loaded in the first clause, and the supporting facts (priority categories, no token, privacy, disclaimer) follow in compact form. The middle list of risk categories is a long run-on that could be trimmed, but nothing is redundant.

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

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, yet the description only says it 'says which ones to look at first' without describing the shape of the response (per-package licence results? a shortlist?). For a tool that must rank findings across up to ten lockfiles, that leaves the agent guessing what comes back, though inputs and side effects are adequately covered.

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?

With 50% schema coverage, the description adds real meaning: 'files' are lockfiles whose contents are sent to deps.dev but not stored, and 'project_kind' drives which findings get flagged first. It still does not explain the files array shape, the 10-file cap, or how mixed lockfiles in one request are handled, so it only partly compensates for the schema gap.

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 gives a specific verb and scope: it 'looks up the licence of every package version in a project's lockfiles' and ranks findings by project kind. That is clearly a project-level licence audit rather than a single-package lookup, but it never explicitly distinguishes itself from the close sibling 'check_lockfiles' or from 'get_licence', so an agent must infer the boundary.

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 context is implied rather than stated: the mention of copyleft-in-shipped-software and AGPL-in-hosted-service tells the agent when the ranking logic matters, and 'works without an API token' removes a prerequisite. However, there is no explicit when-to-use versus check_lockfiles/get_licence guidance and no stated exclusions or preconditions for the files input.

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