Skip to main content
Glama

Check one dependency for license obligations

check_dependency_license
Read-onlyIdempotent

Determine whether adding or keeping a single open source dependency creates a legal obligation, given how this project ships. Call this BEFORE adding a new dependency to a project, and when auditing an existing one. A permissive result means no source-disclosure duty; a blocked result means the license obligates you and the dependency should be replaced or the shipping model reconsidered.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesPackage name as written in the manifest, e.g. "express", "requests", "github.com/gin-gonic/gin", or "serde".
scopeNoWhere the dependency sits. Use "dev", "build", or "test" for anything that does not end up in the shipped artifact — those carry no distribution obligation. Defaults to "runtime".
versionNoExact version if known. Omit to use the latest published version, which may differ from what is installed.
ecosystemYesPackage registry the dependency comes from.
distribution_modelYesHow the software incorporating this dependency reaches its users. This determines the answer: "saas" = users reach it over a network; "distributed-binary" = shipped as an app or binary; "on-prem-delivery" = installed in a customer environment; "internal-only" = never leaves your organization; "library-published" = released for others to depend on.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
licenseYes
verdictYes
rationaleYes
referenceNo
assumptionNo
obligationsYes

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Changed1 schema field changed
    • changedInput schema / properties / ecosystem / enum
      Previous value: -[
      -  "npm",
      -  "pypi",
      -  "go",
      -  "cargo"
      -]New value: +[
      +  "npm",
      +  "pypi",
      +  "go",
      +  "cargo",
      +  "rubygems",
      +  "nuget"
      +]
  2. Changed1 schema field changed
    • addedOutput schema / properties / assumption
      Added value: +{
      +  "properties": {
      +    "assumed": {
      +      "type": "string"
      +    },
      +    "declared": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "declared",
      +    "assumed"
      +  ],
      +  "type": "object"
      +}
  3. Changed2 schema fields changed
    • changedInput schema / properties / ecosystem / enum
      Previous value: -[
      -  "npm",
      -  "pypi",
      -  "go"
      -]New value: +[
      +  "npm",
      +  "pypi",
      +  "go",
      +  "cargo"
      +]
    • changedInput schema / properties / name / description
      Previous value: -"Package name as written in the manifest, e.g. \"express\", \"requests\", or \"github.com/gin-gonic/gin\"."New value: +"Package name as written in the manifest, e.g. \"express\", \"requests\", \"github.com/gin-gonic/gin\", or \"serde\"."
  4. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already carry the safety profile (readOnlyHint=true, openWorldHint=true, idempotentHint=true, destructiveHint=false). The description adds value beyond those by explaining result semantics — 'A permissive result means no source-disclosure duty; a blocked result means the license obligates you and the dependency should be replaced or the shipping model reconsidered' — which tells the agent what the outcome signifies and how to act on it.

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?

Three sentences, each earning its place: sentence one states purpose, sentence two gives usage timing, sentence three explains result interpretation. Purpose is front-loaded and there is no filler or redundancy.

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?

Moderately complex tool (5 params, 3 enums) but it benefits from a rich output schema and full annotation coverage. The description covers the purpose, when to invoke it, and what the two outcome classes mean. Nothing an agent needs to decide whether to call it and act on the result is missing.

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 all five parameters (including the three enums) are fully documented in the schema itself. The description references the shipping model in passing ('given how this project ships') but adds no parameter-level detail beyond what the schema already provides, so the baseline-3 applies.

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-resource pair ('Determine whether adding or keeping a single open source dependency creates a legal obligation') and the central contextual variable ('given how this project ships'). The word 'single' cleanly separates it from the sibling check_manifest_licenses (which covers a manifest of dependencies), so an agent can tell them apart from the description alone.

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?

Gives explicit timing guidance: 'Call this BEFORE adding a new dependency to a project, and when auditing an existing one.' This tells the agent when the tool is appropriate, but it does not explicitly name the sibling alternatives (check_manifest_licenses, explain_license) or state when those should be chosen instead, leaving some exclusion guidance to inference.

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.