Skip to main content
Glama
OSS License Auditor

OSS License Auditor

by vinkius-labs

license_tree

Read-only

Map direct and first-level transitive dependencies with license annotations to trace which parent package pulls in a problematic license.

Instructions

[INSTRUCTIONS] Call this for a detailed view of direct and their immediate dependencies with licenses. Resolves one level of transitive dependencies — useful for tracing which parent pulls in a problematic license. For a faster summary without transitive deps, use license.audit instead.

Show direct + first-level transitive dependencies with license annotations [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_tree"
  }
}

Input Schema

NameRequiredDescriptionDefault
dependenciesYesJSON string of the dependencies object from package.json
dev_dependenciesNoJSON string of the devDependencies object from package.json

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 safety is covered. The description still adds real behavioral substance by disclosing the depth of resolution (exactly one level of transitive dependencies), which is not encoded in any structured field. It omits return shape, ordering, and how unresolvable or missing licenses are reported, keeping it short of a 5.

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?

Front-loaded and roughly three sentences, all relevant. However the opening '[INSTRUCTIONS]' marker is noise, and the final 'Show direct + first-level transitive dependencies with license annotations [READ-ONLY]' restates the first sentence and repeats the read-only hint already in 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?

For a two-parameter, read-only tool with full schema coverage and no output schema, the description supplies what matters: the resolution depth and the alternative for a shallower view. Only minor gaps remain, such as how the tree is formatted in the response.

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% and both parameters (dependencies, dev_dependencies) are documented as JSON strings from package.json, so the schema carries the load. The description never mentions the parameters, but the baseline of 3 applies when the schema is this complete.

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 (a license tree of direct plus first-level transitive dependencies) and explicitly contrasts its scope with license.audit. An agent can distinguish it from the audit/check/policy siblings without opening any 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 both a when-to-use ('detailed view', 'tracing which parent pulls in a problematic license') and a when-not/alternative ('for a faster summary without transitive deps, use license.audit instead'). The only blemish is the dotted name 'license.audit' versus the actual sibling 'license_audit', which is a trivial mapping.

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