Skip to main content
Glama

mcp-semclone - Model Context Protocol Server for SEMCL.ONE

Apache-2.0 Python 3.10+ MCP 1.0+

MCP (Model Context Protocol) server that provides LLMs with comprehensive OSS compliance and vulnerability analysis capabilities through the SEMCL.ONE toolchain.

Overview

mcp-semclone integrates the complete SEMCL.ONE toolchain to provide LLMs with powerful software composition analysis capabilities:

  • License Detection & Compliance: Scan codebases for licenses and validate against policies

  • Binary Analysis: Analyze compiled binaries (APK, EXE, DLL, SO, JAR) for OSS components and licenses

  • Vulnerability Assessment: Query multiple vulnerability databases for security issues

  • Package Discovery: Identify packages from source code and generate PURLs

  • SBOM Generation: Create Software Bill of Materials in CycloneDX format

  • Policy Validation: Check license compatibility and organizational compliance

Related MCP server: Security-Use MCP Server

Features

Tools

Analysis & Scanning:

  • scan_directory - Comprehensive directory scanning for packages, licenses, and vulnerabilities

  • scan_binary - Analyze compiled binaries (APK, EXE, DLL, SO, JAR) for OSS components

  • check_package - Check specific packages for licenses and vulnerabilities

  • download_and_scan_package - Download package source from registries and perform deep license/copyright scanning

Legal Notices & Documentation:

  • generate_legal_notices - Generate legal notices by scanning source code directly (fast, recommended)

  • generate_legal_notices_from_purls - Generate legal notices from PURL list (downloads from registries)

  • generate_sbom - Generate Software Bill of Materials in CycloneDX format

License & Policy Validation:

  • validate_policy - Validate licenses against organizational policies

  • validate_license_list - Quick license safety validation for distribution types

  • get_license_obligations - Get detailed compliance requirements for licenses

  • check_license_compatibility - Check if two licenses can be mixed

  • get_license_details - Get comprehensive license information including full text

  • analyze_commercial_risk - Assess commercial distribution risks

Complete Workflows:

  • run_compliance_check - Universal one-shot compliance workflow for any project type

Resources

  • license_database - Access license compatibility information

  • policy_templates - Get pre-configured policy templates

Prompts

  • compliance_check - Guided workflow for license compliance checking

  • vulnerability_assessment - Guided workflow for security assessment

Installation

Single Command Installation

pip install mcp-semclone

This automatically installs all required SEMCL.ONE tools:

  • purl2notices - Comprehensive package detection and license extraction

  • osslili - License detection from archives (used by check_package)

  • binarysniffer - Binary analysis for OSS components

  • ospac - Policy validation engine

  • vulnq - Vulnerability database queries

  • upmex - Package metadata extraction (used by check_package)

pipx installs the package in an isolated environment while making the CLI tools globally available. This is ideal for avoiding dependency conflicts with other Python packages on your system.

# Install pipx if you don't have it
pip install pipx
pipx ensurepath

# Install mcp-semclone
pipx install mcp-semclone

# IMPORTANT: Inject all SEMCL.ONE tool dependencies into the same isolated environment
# This ensures all tools are available both as libraries and CLI commands
# Required by some agents that need direct CLI tool access
# Use --include-apps to make CLI commands globally available
pipx inject mcp-semclone purl2notices purl2src osslili binarysniffer ospac vulnq upmex --include-apps

Benefits of pipx:

  • ✅ Isolated environment prevents dependency conflicts

  • ✅ All tools globally accessible in PATH

  • ✅ Easy to update: pipx upgrade mcp-semclone

  • ✅ Clean uninstall: pipx uninstall mcp-semclone

For detailed setup instructions including:

  • IDE-specific configurations (Cursor, Cline, Kiro, VS Code, JetBrains)

  • Auto-approve settings

  • pip vs pipx configurations

  • Configuration templates

  • Troubleshooting

See the IDE Integration Guide

Environment Variables

Optional environment variables for enhanced functionality:

# API Keys (optional, for higher rate limits)
export GITHUB_TOKEN="your_github_token"
export NVD_API_KEY="your_nvd_api_key"

# Tool paths (optional, only if tools are not in PATH)
# Tools are auto-detected by default using shutil.which()
export PURL2NOTICES_PATH="/custom/path/to/purl2notices"
export OSSLILI_PATH="/custom/path/to/osslili"
export BINARYSNIFFER_PATH="/custom/path/to/binarysniffer"
export VULNQ_PATH="/custom/path/to/vulnq"
export OSPAC_PATH="/custom/path/to/ospac"
export UPMEX_PATH="/custom/path/to/upmex"

Note: Tools are automatically detected in your PATH. Environment variables are only needed for custom installation locations.

Usage Examples

With MCP Clients

Once configured, you can ask your LLM:

  • "Scan /path/to/project for license compliance issues"

  • "Analyze this Android APK file for OSS components and licenses"

  • "Check if this project has any critical vulnerabilities"

  • "Generate an SBOM for my project"

  • "What licenses are in this compiled binary?"

  • "Validate these licenses against our commercial distribution policy"

  • "Find all GPL-licensed dependencies in this codebase"

Workflows

License Compliance Check

  1. Scan the project to identify all packages and licenses

  2. Load or create a policy defining allowed/denied licenses

  3. Validate licenses against the policy

  4. Generate compliance report with violations and recommendations

Vulnerability Assessment

  1. Discover packages in the codebase

  2. Query vulnerability databases for each package

  3. Prioritize by severity (CRITICAL > HIGH > MEDIUM > LOW)

  4. Identify available fixes and upgrade paths

  5. Generate security report with remediation steps

SBOM Generation

  1. Scan project structure to identify components

  2. Extract metadata for each component

  3. Detect licenses and copyright information

  4. Format as SBOM (CycloneDX 1.4 JSON)

  5. Validate completeness of the SBOM

Examples

Basic MCP Client Usage

See examples/basic_usage.py for simple examples of calling MCP tools directly.

Strands Agent with Ollama

A complete autonomous agent example demonstrating OSS compliance analysis using local LLM (Ollama) with MCP integration.

Location: examples/strands-agent-ollama/

Features:

  • Autonomous decision-making (plan → execute → interpret → report)

  • Local LLM inference via Ollama (llama3, gemma3, deepseek-r1)

  • Interactive and batch analysis modes

  • Custom policy enforcement

  • Complete privacy (no external API calls)

Quick Start:

cd examples/strands-agent-ollama
./quickstart.sh
python agent.py interactive

Documentation:

Use Cases:

  • Mobile app compliance (APK/IPA analysis)

  • Embedded/IoT firmware scanning

  • CI/CD integration

  • Interactive compliance queries

See the example directory for full details.

Contributing

We welcome contributions! Please see CONTRIBUTING.md for details.

License

mcp-semclone is released under the Apache License 2.0. See LICENSE for details.

Support


Part of the SEMCL.ONE Software Composition Analysis toolchain

Available Tools

14 tools
analyze_commercial_riskC

Analyze commercial licensing risk for a project.

ParametersJSON Schema
NameRequiredDescriptionDefault
pathYes
include_data_filesNo

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

C2.2/5.0
Behavior2/5

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

With no annotations, the description must fully convey behavioral traits. It only says 'Analyze', implying a read-only operation, but does not state safety info, required permissions, or side effects. This is insufficient for a tool performing analysis.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single concise sentence, but it fails to include essential details (parameters, usage context). It is short but under-informative, so it earns a middle score for efficiency at the cost of completeness.

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

Completeness2/5

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

Despite having an output schema (not shown), the overall description is minimal. Given 13 sibling tools and 2 parameters, the description lacks details on scope, prerequisites, and specific use cases, making it incomplete for safe tool selection.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters1/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, and the description adds no information about parameters 'path' or 'include_data_files'. The agent cannot determine what values are valid or how parameters affect behavior.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

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

The description 'Analyze commercial licensing risk for a project.' clearly states a verb and resource, but it is generic and does not differentiate from sibling tools like 'check_license_compatibility' or 'run_compliance_check'. The term 'commercial risk' is specific, but the description lacks scope or uniqueness.

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

Usage Guidelines2/5

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

The description provides no guidance on when to use this tool versus alternatives. There is no mention of prerequisites, exclusions, or contrast with siblings like 'scan_directory' or 'validate_license_list'.

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

check_license_compatibilityA

Check if two licenses are compatible for use together.

This tool answers: "Can I combine code under these two licenses?"

Args: license1: First SPDX license ID (e.g., "MIT") license2: Second SPDX license ID (e.g., "GPL-3.0") context: Usage context (general, static_linking, dynamic_linking)

Returns: Compatibility assessment including: - compatible: True/False indicating if licenses can be combined - reason: Explanation of why they are/aren't compatible - restrictions: Any special conditions or restrictions - recommendations: Suggested actions if incompatible

Example: Checking MIT vs GPL-3.0 returns: - compatible: False - reason: GPL-3.0 is strongly copyleft and requires derivative works to be GPL-3.0 - recommendations: Use dynamic linking, keep code separate, or relicense

ParametersJSON Schema
NameRequiredDescriptionDefault
contextNogeneral
license1Yes
license2Yes

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

A4.6/5.0
Behavior4/5

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

No annotations are provided, so the description carries the full burden. It thoroughly explains the return structure: compatible, reason, restrictions, recommendations. It also documents the context parameter options. There is no mention of destructive actions or auth requirements, but the tool appears read-only and safe.

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?

The description is well-structured: a one-line summary, a clarifying question, then clear sections for Args, Returns, and Example. Every sentence adds value. The example at the end concretely illustrates the tool's output, enhancing clarity without redundancy.

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

Completeness5/5

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

Given the tool's moderate complexity (3 parameters, output schema exists), the description is complete. It covers purpose, parameters with examples, return structure, and a concrete usage example. There is no need for additional context like rate limits or authorization for this type of tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, meaning the schema provides no descriptions. The description compensates fully by explaining each parameter: license1/2 are SPDX IDs with examples, and context lists its possible values (general, static_linking, dynamic_linking). This adds significant meaning beyond the raw schema.

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?

The description explicitly states the tool's purpose: 'Check if two licenses are compatible for use together.' It includes a clarifying question 'Can I combine code under these two licenses?' and distinguishes from sibling tools like get_license_details or get_license_obligations by focusing specifically on compatibility.

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?

The description clearly implies usage context: when combining code under two licenses. It provides a direct question the tool answers, but does not explicitly state when not to use it or mention alternative tools. The context parameter hints at different use cases (static vs dynamic linking), adding nuance.

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

check_packageA

Check a specific package using intelligent tool selection.

This tool intelligently analyzes package files by:

  1. For archives (.jar, .whl, .rpm, .gem, etc.): Use upmex for metadata extraction

  2. If upmex fails or for non-archives: Fall back to osslili for license detection

  3. For PURLs: Use package registry APIs when available

Args: identifier: Package identifier (PURL like pkg:maven/com.google.gson/gson@2.10.1, file path to archive, or package file) check_vulnerabilities: Whether to check for vulnerabilities (default: False for speed) check_licenses: Whether to extract license information (default: True)

Returns: Dictionary containing package metadata, licenses, and optionally vulnerabilities

ParametersJSON Schema
NameRequiredDescriptionDefault
identifierYes
check_licensesNo
check_vulnerabilitiesNo

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

A3.9/5.0
Behavior3/5

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

The description explains the fallback logic and tool selection process, which adds transparency. However, there is a contradiction: description states check_vulnerabilities defaults to False, but the input schema shows default true. This inconsistency harms reliability.

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?

The description is well-structured with numbered steps, clear argument descriptions, and a return statement. It is concise yet informative, with no unnecessary repetition.

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?

The description covers the core logic and input, and an output schema exists. However, it lacks mention of whether the tool is read-only, and the default inconsistency reduces completeness. Overall adequate for a tool with output schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 0% schema description coverage, the description fully explains each parameter: identifier format (PURL, file path), and the purpose and defaults of the two boolean parameters. This adds significant meaning beyond the schema.

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 clearly states the tool checks a package using intelligent selection, and lists specific actions (archive extraction, license detection, PURL registry APIs). This distinguishes it from general scanning tools, but does not explicitly differentiate from all siblings.

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?

The description implies usage for package files or PURLs, but does not explicitly state when to use this tool over alternatives like scan_binary or check_license_compatibility. No when-not-to-use guidance is provided.

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

download_and_scan_packageA

Download package source from registry and perform comprehensive analysis.

⚠️ IMPORTANT: This tool CAN and WILL download source code from package registries!

Workflow (tries methods in order until sufficient data is collected):

  1. Primary: Use purl2notices to download and analyze (fastest, most comprehensive)

  2. Deep scan: If incomplete, use purl2src to get download URL → download artifact → run osslili for deep license scanning + upmex for metadata

    • Maven-specific: If license still missing for Maven packages, uses upmex with --registry --api clearlydefined to resolve parent POM licenses

  3. Online fallback: If still incomplete, use upmex --api clearlydefined/purldb for online metadata

What this tool does:

  • Downloads the actual package source code from npm/PyPI/Maven/etc registries

  • Performs comprehensive license and copyright analysis

  • Extracts package metadata (name, version, homepage, description)

  • Scans ALL source files for embedded licenses (not just package.json/setup.py/pom.xml)

  • Returns copyright statements found in actual source code

  • Maven packages: Automatically resolves parent POM licenses when not declared in package POM

When to use this tool:

  • Package metadata is incomplete or missing (e.g., "UNKNOWN" license in PyPI)

  • Need to verify what's ACTUALLY in the package files (not just metadata)

  • Want to analyze source code directly (not just manifests)

  • Security auditing - see actual package contents before approval

  • License compliance - find licenses embedded in source files

  • Need to extract copyright statements from source code

Real-world example: User asks: "Can you check if duckdb@0.2.3 has license info in the source code?"

  • PyPI metadata shows "UNKNOWN" license

  • This tool downloads the actual .whl/.tar.gz from PyPI

  • Scans ALL files in the package for license information

  • Finds licenses embedded in source code that aren't in metadata

  • Returns: {"method_used": "purl2notices", "declared_license": "UNKNOWN", "detected_licenses": ["CC0-1.0"], ...}

Performance:

  • Primary (purl2notices): 5-15 seconds (fastest)

  • Deep scan (download + osslili + upmex): 10-30 seconds

  • Online fallback (upmex --api): 2-5 seconds (but less complete)

Security note:

  • Downloads are verified against package checksums when available

  • Files are scanned but NOT executed

  • Temporary files are cleaned up unless keep_download=True

Args: purl: Package URL (e.g., "pkg:pypi/duckdb@0.2.3", "pkg:npm/express@4.21.2") keep_download: If True, keeps downloaded files for manual inspection (default: False)

Returns: Dictionary containing: - purl: The package URL analyzed - method_used: Which method succeeded ("purl2notices", "deep_scan", "online_fallback") - download_path: Where package was downloaded (if keep_download=True) - metadata: Package metadata (name, version, homepage, etc.) - declared_license: License from package metadata - detected_licenses: List of licenses found by scanning source files - copyright_statements: Copyright statements extracted from source - files_scanned: Number of files analyzed - scan_summary: Summary of what was found

Examples: # Check if package has license info in source code download_and_scan_package(purl="pkg:pypi/duckdb@0.2.3")

# Download and keep files for manual inspection
result = download_and_scan_package(
    purl="pkg:npm/suspicious-package@1.0.0",
    keep_download=True
)
print(f"Inspect files at: {result['download_path']}")
ParametersJSON Schema
NameRequiredDescriptionDefault
purlYes
keep_downloadNo

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

A4.7/5.0
Behavior5/5

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

With no annotations, the description carries full burden. It is highly transparent: details the workflow (three methods in order), performance expectations, security notes (verified downloads, no execution, cleanup), and explicitly warns that it WILL download source code. This exceeds typical behavior disclosure.

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 description is lengthy but well-organized with headers, bullet points, and sections. Each part adds value, and the structure aids readability. Could be slightly more concise, but the information density is justified given the tool's complexity.

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

Completeness5/5

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

Given the tool's complexity (multi-step workflow, 2 parameters, detailed outputs), the description is complete. It covers all relevant aspects: workflow, use cases, examples, performance, security, and return values. Even with an output schema (context indicates it exists), the description enriches understanding.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate fully. It explains 'purl' with examples and format, and 'keep_download' with its effect and default. Also details the return structure, adding significant meaning beyond the input schema.

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?

The description clearly states the tool's function: 'Download package source from registry and perform comprehensive analysis.' It distinguishes itself from siblings like 'check_package' (which likely checks metadata) and 'scan_directory' (which scans local files) by emphasizing downloading and analyzing actual source files from registries.

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?

Provides explicit 'When to use this tool' section with bullet points and a real-world example. While it doesn't list alternative tools explicitly, the context makes it clear when this tool is appropriate versus others that might check metadata or scan local directories.

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

generate_sbomA

Generate a Software Bill of Materials (SBOM) in CycloneDX format using purl2notices.

This tool creates comprehensive SBOMs in CycloneDX 1.4 JSON format for software inventory, vulnerability tracking, and compliance documentation.

SBOM includes: name, version, PURL, licenses, homepage (external references). Data is sourced from purl2notices scan mode which provides accurate package metadata.

Use this tool when:

  • You need to generate an SBOM for a project or package list

  • Creating inventory documentation for compliance

  • After analyzing packages and need structured output

  • Preparing documentation for security audits

  • Required by procurement or regulatory requirements

Input modes:

  • Provide purls (list of Package URLs) for packages you've already identified

  • Provide path to scan a directory and generate SBOM from discovered packages

  • At least one of purls or path must be provided

Args: purls: Optional list of Package URLs (PURLs) to include in SBOM path: Optional directory path to scan for packages output_file: Optional path to save the SBOM file (CycloneDX JSON format) include_licenses: If True, include license information (default: True)

Returns: Dictionary containing: - sbom: The generated SBOM structure (CycloneDX 1.4 JSON) - packages_count: Number of packages included - output_file: Path to saved file (if output_file was specified)

Examples: # Generate SBOM from PURLs (after batch analysis) generate_sbom( purls=["pkg:npm/express@4.0.0", "pkg:pypi/django@4.2.0"], output_file="/tmp/sbom.json" )

# Generate SBOM by scanning directory
generate_sbom(path="/path/to/project")

# After batch scan workflow
scan_result = check_package("package.jar")
generate_sbom(purls=[scan_result["purl"]], include_licenses=True)
ParametersJSON Schema
NameRequiredDescriptionDefault
pathNo
purlsNo
output_fileNo
include_licensesNo

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

A4.5/5.0
Behavior4/5

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

Describes data sources (purl2notices scan mode), output format, and included fields. Discloses that at least one of purls or path is required. However, does not discuss potential side effects like overwriting an existing output file or behavior when both purls and path are provided.

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?

Well-structured with sections and examples, but somewhat verbose with repetition (e.g., CycloneDX mentioned multiple times). Could be tightened without losing clarity.

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

Completeness5/5

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

Given the existence of an output schema (not shown), the description need not detail return values, yet it still provides a structured dictionary summary. Covers input modes, optional parameters, and examples, making it fully adequate for agent selection and invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Despite 0% schema coverage, the description provides detailed parameter explanations in the 'Args' section and examples. Each parameter's purpose, type, and default are clearly explained, adding significant meaning beyond the raw schema.

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?

Description clearly states it generates an SBOM in CycloneDX format. It distinguishes from sibling tools (e.g., scan_directory, check_package) which focus on scanning or checking packages, not generating structured SBOM output.

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?

Includes a 'Use this tool when:' section listing specific scenarios like compliance documentation and security audits. Lacks explicit exclusions or comparisons to alternative tools, but the scenarios are clear and relevant.

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

get_license_detailsA

Get comprehensive details about a specific license.

This tool provides complete license information including the full license text for generating NOTICE files and understanding license requirements.

Args: license_id: SPDX license ID (e.g., "Apache-2.0", "MIT", "GPL-3.0") include_full_text: Include full license text (can be long, ~5-20KB)

Returns: License information including: - name: Full license name - type: License category (permissive, copyleft_weak, copyleft_strong, etc.) - properties: Characteristics (OSI approved, FSF free, etc.) - permissions: What you CAN do (commercial use, modify, distribute, etc.) - requirements: What you MUST do (include license, preserve copyright, etc.) - limitations: What is NOT provided (liability, warranty, etc.) - obligations: Specific compliance requirements - full_text: Complete license text (if include_full_text=True, fetched from SPDX API)

Example: For Apache-2.0, returns complete license data including: - Full license text for NOTICE files - Patent grant information - Attribution requirements

ParametersJSON Schema
NameRequiredDescriptionDefault
license_idYes
include_full_textNo

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

A4.6/5.0
Behavior4/5

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

With no annotations, the description covers key behavior: it retrieves data from an external API (SPDX), warns about large text size (~5-20KB), and indicates optional full-text inclusion. It doesn't mention auth or rate limits, but the disclosure is strong.

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?

The description is well-structured with sections for Args, Returns, and Example, using clear language. Every sentence adds value without redundancy, and the size is appropriate for the tool's detail level.

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

Completeness5/5

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

Despite having an output schema, the description provides rich context about return fields and usage. It covers all necessary aspects for an agent to use this tool correctly, especially given the sibling tools focusing on analysis rather than raw data.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, but the description provides complete parameter details: license_id with examples (Apache-2.0, MIT, GPL-3.0) and include_full_text with size warning and default. It also exhaustively lists return fields, adding substantial value beyond the bare schema.

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?

The description clearly states it gets comprehensive details about a specific license, including full license text. It distinguishes from sibling tools like check_license_compatibility or get_license_obligations by focusing on raw data retrieval.

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?

The description specifies it's for generating NOTICE files and understanding license requirements, providing clear usage context. It lacks explicit when-not-to-use or alternatives, but the purpose is well-defined.

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

get_license_obligationsA

Get detailed obligations for specified licenses.

This tool answers the critical question: "What must I do to comply with these licenses?"

Args: licenses: List of SPDX license IDs (e.g., ["MIT", "Apache-2.0", "GPL-3.0"]) output_format: Output format (json, text, checklist, markdown)

Returns: Comprehensive obligations including: - Required actions (attribution, notices, disclosure, etc.) - Permissions (commercial use, modification, distribution, etc.) - Limitations (liability, warranty, trademark use, etc.) - Conditions (source disclosure, license preservation, state changes, etc.) - Key requirements for compliance

Example: For MIT license, returns obligations like: - Include original license text in distributions - Preserve copyright notices - No trademark rights granted

ParametersJSON Schema
NameRequiredDescriptionDefault
licensesYes
output_formatNojson

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

A4.3/5.0
Behavior4/5

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

No annotations are present, so the description carries full burden. It clearly describes return categories (obligations, permissions, etc.) implying read-only behavior, but does not explicitly state no side effects or required permissions. Adequate but not exhaustive.

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?

Well-structured with separate sections for purpose, args, returns, and example. Slightly wordy with bullets, but every sentence adds value. Front-loaded with purpose.

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

Completeness5/5

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

Given the tool's scope (getting license obligations), the description is complete: covers input parameters, return categories with examples, and fits within the sibling context. No missing elements apparent.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 0% schema description coverage, the description fully compensates by explaining each parameter: licenses as list of SPDX IDs with example, and output_format with possible values (json, text, checklist, markdown). Adds significant meaning beyond the schema.

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?

Clearly states verb 'Get' and resource 'obligations for specified licenses', with a specific question 'What must I do to comply?'. Differentiates from sibling tools like get_license_details by focusing on compliance obligations.

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?

While the description implicitly guides by stating the critical question it answers, it lacks explicit when-to-use guidance or mention of alternatives. No exclusions or comparisons with sibling tools are provided.

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

run_compliance_checkA

UNIVERSAL COMPLIANCE WORKFLOW: One-shot compliance check for ANY project type.

This is a convenience tool that runs the complete standard compliance workflow:

  1. Scan for licenses and packages (scan_directory)

  2. Generate legal notices with purl2notices (generate_legal_notices)

  3. Validate against policy using ospac (validate_policy or default policy)

  4. Generate SBOM for documentation (generate_sbom)

  5. Check for vulnerabilities (if enabled)

  6. Return comprehensive summary with APPROVE/REJECT decision

This tool works for ANY distribution type (mobile, desktop, embedded, SaaS, etc.) - no specialized tools needed. Distribution type is used for policy validation context.

WHEN TO USE:

  • You want a complete compliance assessment in one call

  • Starting a new project compliance review

  • Need approve/reject decision with full documentation

  • Don't want to orchestrate multiple tool calls manually

  • Want standardized compliance workflow

WHEN NOT TO USE:

  • You need fine-grained control over each step → call individual tools

  • You only need specific information → use targeted tools (scan_directory, etc.)

  • You want to customize the workflow → use individual tools in your preferred sequence

WORKFLOW EXECUTED:

  1. scan_directory(path, identify_packages=True, check_licenses=True)

  2. generate_legal_notices(purls, output_file=NOTICE.txt)

  3. validate_policy(licenses, policy_file or default_policy)

  4. generate_sbom(purls, output_file=sbom.json)

  5. check vulnerabilities (if check_vulnerabilities=True)

  6. Aggregate results → FINAL DECISION: approved/rejected + risk level

Args: path: Directory or project to analyze distribution_type: Optional - mobile, desktop, saas, embedded, etc. (for policy context) policy_file: Optional - Path to custom ospac policy. Uses default if not specified. check_vulnerabilities: Check for security vulnerabilities (default: True) output_dir: Optional - Directory to save outputs (NOTICE.txt, sbom.json). Uses path if not specified.

Returns: Dictionary containing: - decision: "APPROVED" or "REJECTED" - risk_level: "LOW", "MEDIUM", or "HIGH" - summary: Human-readable summary of findings - licenses: List of detected licenses - packages: List of identified packages (PURLs) - vulnerabilities: List of vulnerabilities (if checked) - policy_violations: List of policy violations (if any) - artifacts_created: List of files generated (NOTICE.txt, sbom.json) - recommendations: Actionable next steps

Example: # Complete compliance check with default settings result = run_compliance_check("/path/to/project")

# Mobile app compliance with custom policy
result = run_compliance_check(
    path="/path/to/mobile/app",
    distribution_type="mobile",
    policy_file="/policies/mobile_policy.json"
)

# Check decision
if result["decision"] == "APPROVED":
    print("✓ Ready to ship!")
else:
    print("✗ Issues found:", result["policy_violations"])
ParametersJSON Schema
NameRequiredDescriptionDefault
pathYes
output_dirNo
policy_fileNo
distribution_typeNo
check_vulnerabilitiesNo

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

A4.9/5.0
Behavior5/5

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

With no annotations, the description fully discloses behavior: it executes a 6-step workflow, returns a comprehensive dictionary with decision, risk level, violations, etc. It also lists what each step does and the return structure, leaving no ambiguity.

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 description is well-structured with clear sections (workflow, args, returns, example) and is front-loaded with purpose. However, it is somewhat verbose with repeated lists and could be slightly trimmed without losing value. Still efficient overall.

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

Completeness5/5

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

Given the tool complexity (5 parameters, no annotations, output schema present but not shown), the description covers all necessary information: workflow, parameter details, return values with field explanations, and an example. It is complete for agent invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Although the input schema has 0% description coverage (only titles and types), the description provides detailed explanations for all 5 parameters, including defaults, optionality, and how they affect the workflow. This fully compensates for the schema's lack of descriptions.

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?

The description explicitly states 'UNIVERSAL COMPLIANCE WORKFLOW: One-shot compliance check for ANY project type' and lists the steps. It clearly distinguishes itself from sibling tools like scan_directory by being a convenience tool that orchestrates multiple steps.

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?

The description includes dedicated 'WHEN TO USE' and 'WHEN NOT TO USE' sections, explicitly naming alternative tools such as scan_directory, validate_policy, etc. It provides clear guidance on when to call this tool vs. individual tools.

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

scan_binaryA

Scan binary files for OSS components and licenses using BinarySniffer.

This tool analyzes compiled binaries, executables, libraries, and archives (APK, EXE, DLL, SO, JAR, etc.) to detect open source components, extract license information, and identify security issues.

Use this tool when:

  • Analyzing mobile apps (APK, IPA)

  • Scanning executables (EXE, ELF binaries)

  • Examining shared libraries (DLL, SO, DYLIB)

  • Analyzing Java archives (JAR, WAR, EAR)

  • Scanning firmware or embedded binaries

  • Generating SBOM for binary distributions

Args: path: Path to binary file or directory to analyze analysis_mode: Analysis depth - "fast" (quick scan), "standard" (balanced), or "deep" (thorough analysis, slower) generate_sbom: If True, generate SBOM in CycloneDX format check_licenses: If True, perform detailed license analysis check_compatibility: If True, check license compatibility and show warnings confidence_threshold: Minimum confidence level (0.0-1.0) for component detection output_format: Output format - "json", "table", "csv" (default: json)

Returns: Dictionary containing: - components: List of detected OSS components with licenses - licenses: Summary of all licenses found - compatibility_warnings: License compatibility issues (if check_compatibility=True) - sbom: CycloneDX SBOM (if generate_sbom=True) - metadata: Scan statistics and file information

Examples: # Scan an Android APK scan_binary("app.apk")

# Deep analysis with SBOM generation
scan_binary("firmware.bin", analysis_mode="deep", generate_sbom=True)

# Check license compatibility
scan_binary("library.so", check_compatibility=True)
ParametersJSON Schema
NameRequiredDescriptionDefault
pathYes
analysis_modeNostandard
generate_sbomNo
output_formatNojson
check_licensesNo
check_compatibilityNo
confidence_thresholdNo

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

A4.5/5.0
Behavior4/5

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

Describes the tool's behavior: analyzes compiled binaries, detects components, extracts licenses, identifies security issues. Notes that deep mode is slower and requires more thorough analysis. No side effects or modifications are implied, but does not explicitly state it is read-only. Sufficient given no annotations.

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?

Well-structured with summary, usage list, Args, Returns, and Examples. Each section adds value, but the 'Use this tool when' list slightly overlaps with the file-type examples. Still efficient and front-loaded with key purpose.

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

Completeness5/5

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

Given 7 parameters, one required, and presence of many sibling tools, the description covers all necessary aspects: tool purpose, target file types, parameter details, return structure, and examples. No output schema provided but return dictionary is described adequately.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, but the description compensates fully with a detailed 'Args' section explaining all 7 parameters, including defaults, possible values (fast/standard/deep), numeric range for confidence_threshold, and boolean toggles. Examples illustrate usage.

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?

Clearly states 'Scan binary files for OSS components and licenses using BinarySniffer', with specific verb and resource. Lists many file types and distinguishes from siblings like scan_directory or check_package which handle non-binary or package-level analysis.

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?

Provides explicit 'Use this tool when' list covering multiple scenarios (mobile apps, executables, libraries, firmware, SBOM generation). However, it does not mention when to avoid using it or suggest alternative sibling tools for specific subtasks (e.g., using generate_sbom alone).

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

scan_directoryA

FIRST STEP: Scan a directory for compliance issues using purl2notices.

This is typically the FIRST tool you should use when analyzing a project. Use this to discover what's in your project before validation or documentation generation.

PURPOSE:

  • Scan project source code for licenses (using purl2notices)

  • Detect ALL packages including transitive dependencies (scans node_modules/, site-packages/, vendor/)

  • Extract copyright statements from source code

  • Check for vulnerabilities (using vulnq)

  • Validate against policy (using ospac)

WHAT purl2notices DETECTS:

  • Project source licenses (from your own code)

  • Dependency packages (ALL packages in node_modules/, not just package.json)

  • Package licenses (from dependency source code)

  • Copyright holders (extracted from actual source files)

IMPORTANT: This tool scans the ENTIRE dependency tree:

  • For npm projects: All 50+ packages in node_modules/ (not just the 1-2 in package.json)

  • For Python projects: All packages in site-packages/ or virtualenv

  • Includes transitive dependencies automatically

WHEN TO USE:

  • Starting compliance analysis for a new project (FIRST STEP)

  • Need to discover all licenses in source code

  • Want to identify all package dependencies (including transitive)

  • Beginning vulnerability assessment

  • Need comprehensive project analysis with copyright attribution

WHEN NOT TO USE:

  • Already have PURLs and just need legal notices → use generate_legal_notices directly

  • Analyzing compiled binaries → use scan_binary instead

  • Just validating known licenses → use validate_license_list

  • Checking single package → use check_package

WORKFLOW POSITION: FIRST STEP in most compliance workflows. Use this to discover what's in your project before validation/generation.

TYPICAL NEXT STEPS:

  1. For mobile apps: scan_directory(check_vulnerabilities=True) → validate_license_list(distribution="mobile") → generate_legal_notices(purls=scan_result["packages"])

  2. For vulnerability assessment: scan_directory(check_vulnerabilities=True) → analyze_commercial_risk(path=".") → check specific packages with check_package for details

  3. For documentation: scan_directory() → generate_legal_notices(purls=scan_result["packages"]) → generate_sbom(path=".")

IMPORTANT NOTES:

  • identify_packages parameter is deprecated (purl2notices always detects packages)

  • check_vulnerabilities=True: Checks all detected packages for CVEs

  • check_licenses parameter is deprecated (purl2notices always scans licenses)

  • Scans recursively by default (max depth 3 into node_modules/)

Args: path: Directory or file path to scan recursive: Enable recursive scanning (default: True, max depth 3) check_vulnerabilities: Check for vulnerabilities in detected packages check_licenses: (Deprecated - always True) Scan for licenses identify_packages: (Deprecated - always True) Detect packages policy_file: Optional policy file for license compliance validation

Returns: Dictionary containing: - licenses: List of detected licenses from project and dependencies - packages: List of ALL detected packages with PURLs (includes transitive deps) - vulnerabilities: List of vulnerabilities (if check_vulnerabilities=True) - policy_violations: Policy violations (if policy_file provided) - metadata: Summary information including copyright holders and counts

ParametersJSON Schema
NameRequiredDescriptionDefault
pathYes
recursiveNo
policy_fileNo
check_licensesNo
identify_packagesNo
check_vulnerabilitiesNo

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

A4.9/5.0
Behavior5/5

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

No annotations are provided, so the description carries full burden. It comprehensively discloses behavior: scans entire dependency trees (including transitive), recursive scanning with max depth 3, deprecation of parameters, and what is detected (licenses, packages, vulnerabilities, policy). No contradictions.

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 description is long but well-structured with clear sections. It is slightly verbose due to repetition (e.g., 'FIRST STEP' appears multiple times), but the structure (uppercase headers, bullet points, examples) makes it easy to scan. Every sentence adds value.

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

Completeness5/5

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

Given the tool's complexity (6 parameters, no schema descriptions, 13 sibling tools), the description is remarkably complete. It covers purpose, scope, usage guidelines, parameter details, return values, deprecation notes, and workflow examples. No gaps remain for an AI to misuse the tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, but the description explains each parameter in detail: path (required), recursive (default true, max depth 3), check_vulnerabilities (default false, checks CVEs), check_licenses (deprecated, always true), identify_packages (deprecated, always false), policy_file (optional). It also describes the return dictionary structure, adding significant value beyond the schema.

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?

The description clearly states the tool's purpose: scanning a directory for compliance issues using purl2notices. It distinguishes itself from siblings by explicitly marking itself as the FIRST STEP and providing alternative tools for specific scenarios (e.g., generate_legal_notices, scan_binary).

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?

The description includes explicit 'WHEN TO USE' and 'WHEN NOT TO USE' sections, clearly listing conditions and alternative tools. It also provides workflow examples showing typical next steps, making it easy for the AI to decide when to invoke this tool.

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

validate_license_listA

QUICK answer to: "Can I ship this with these licenses?"

This tool analyzes a list of licenses without requiring a filesystem path, making it ideal for quick validation checks.

WHEN TO USE:

  • You have a list of licenses (from scan results)

  • Need to validate for specific distribution type (mobile, desktop, saas, embedded)

  • Want app store compatibility check (iOS/Android)

  • Fast compliance validation without deep analysis

  • Quick go/no-go decision for shipping

WHEN NOT TO USE:

  • Need to scan codebase first → use scan_directory

  • Need detailed policy evaluation → use validate_policy

  • Need complete legal documentation → use generate_legal_notices after validation

  • Don't have license list yet → use scan_directory first

WORKFLOW POSITION: Use AFTER scan_directory/check_package to validate licenses, BEFORE generate_legal_notices to confirm compliance.

COMMON WORKFLOW: scan_directory(identify_packages=True) → validate_license_list(distribution="mobile") [VALIDATION STEP] → generate_legal_notices(purls=[...]) [IF APPROVED]

RETURNS CLEAR DECISION:

  • safe_for_distribution: true/false

  • app_store_compatible: true/false (if check_app_store_compatibility=True)

  • recommendations: What to do next

  • violations: What's wrong (if any)

Args: licenses: List of SPDX license identifiers (e.g., ["MIT", "Apache-2.0"]) distribution: Target distribution type - "mobile", "desktop", "saas", "embedded", "general" check_app_store_compatibility: Check specific App Store (iOS/Android) compatibility

Returns: Dictionary with: - safe_for_distribution: bool - Overall safety assessment - copyleft_risk: str - "none", "weak", or "strong" - risk_level: str - "LOW", "MEDIUM", or "HIGH" - violations: List of identified issues - recommendations: List of actionable recommendations - app_store_compatible: bool - iOS/Android app store compatibility - license_details: Summary of each license

ParametersJSON Schema
NameRequiredDescriptionDefault
licensesYes
distributionNogeneral
check_app_store_compatibilityNo

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

A4.8/5.0
Behavior4/5

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

No annotations are provided, so the description fully carries the behavioral disclosure burden. It explains that the tool is a quick validation without deep analysis, and it details the return fields (safe_for_distribution, app_store_compatible, etc.). While it doesn't mention authentication or rate limits, it is transparent about its read-only nature and what the output contains.

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?

The description is well-structured with clear sections (intro, WHEN TO USE, WHEN NOT TO USE, WORKFLOW, RETURNS, Args, Returns). It is front-loaded with the core question and every sentence adds value without being verbose.

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

Completeness5/5

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

Given the tool's three parameters and output schema (described in Returns section), the description is complete. It covers the input parameters, return fields, workflow integration with siblings, and provides a common workflow example. No gaps are evident.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, but the description compensates by explaining each parameter: licenses (list of SPDX identifiers with example), distribution (target with enumerated options), and check_app_store_compatibility (boolean with effect). It adds meaning beyond the bare schema by providing context and examples.

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?

The description clearly states the tool's purpose as providing a quick answer to 'Can I ship this with these licenses?' and specifies it analyzes a list of licenses without requiring a filesystem path. It distinguishes itself from sibling tools by explicitly listing when to use and when not to use them.

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?

The description includes explicit 'WHEN TO USE' and 'WHEN NOT TO USE' sections, naming alternative tools like scan_directory, validate_policy, and generate_legal_notices. It also provides the workflow position and a common workflow example, making it clear when to select this tool over others.

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

validate_policyA

Validate if licenses are approved or rejected for a specific project/distribution type.

This tool evaluates licenses against organizational policies and returns clear APPROVE or DENY decisions based on the distribution type. This is the primary tool for answering: "Can I use these licenses for my [mobile/commercial/saas/etc] project?"

Key Use Cases:

  • Check if licenses are approved for mobile app distribution

  • Validate licenses for commercial products

  • Ensure SaaS deployment compliance

  • Verify licenses for embedded systems

  • Check licenses for any distribution type

Returns clear approve/deny decisions:

  • action: "approve" (licenses are allowed), "deny" (licenses blocked), or "review" (manual review needed)

  • severity: "info" (approved), "warning" (review), "error" (denied)

  • message: Explanation of the decision

  • requirements: What must be done to comply (if approved)

  • remediation: How to fix the issue (if denied)

Args: licenses: List of SPDX license IDs to validate (e.g., ["MIT", "Apache-2.0", "GPL-3.0"]) policy_file: Optional custom policy directory (uses enterprise defaults if not provided) distribution: Distribution type - determines policy rules: - "mobile": iOS/Android apps (blocks GPL, allows permissive) - "commercial": Commercial products (blocks strong copyleft) - "saas": Software as a Service (blocks AGPL, allows GPL) - "embedded": Embedded systems (blocks copyleft) - "desktop": Desktop applications - "web": Web applications - "open_source": Open source projects (allows most licenses) - "internal": Internal use only (allows all) context: Optional usage context (e.g., "static_linking", "dynamic_linking")

Returns: Dictionary with: - licenses: List of licenses evaluated - distribution: Distribution type used - context: Context evaluated - result.action: "approve", "deny", or "review" - result.severity: "info" (approved), "warning" (review), or "error" (denied) - result.message: Human-readable decision explanation - result.requirements: List of compliance requirements (if approved) - result.remediation: Suggested fix (if denied, e.g., "Replace with MIT alternative") - using_default_policy: Whether default enterprise policy was used

Examples: # Check if licenses are approved for mobile app validate_policy(["MIT", "Apache-2.0"], distribution="mobile") → action: "approve" ✓

# Check GPL for mobile (will be denied)
validate_policy(["GPL-3.0"], distribution="mobile")
→ action: "deny", remediation: "Replace with permissive alternative"

# Check licenses for commercial distribution
validate_policy(["MIT", "LGPL-2.1", "Apache-2.0"], distribution="commercial")
→ action: "approve" or "review" depending on policy

# Check AGPL for SaaS (will be denied)
validate_policy(["AGPL-3.0"], distribution="saas")
→ action: "deny", reason: "Network copyleft requires source disclosure"

Workflow Integration: 1. After scanning: scan_directory() → extract licenses → validate_policy() 2. Quick check: validate_policy(["GPL-3.0"], distribution="mobile") → see if approved 3. Policy enforcement: validate_policy() → if action=="deny" → block deployment

ParametersJSON Schema
NameRequiredDescriptionDefault
contextNo
licensesYes
policy_fileNo
distributionNobinary

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations provided, the description carries the full burden. It thoroughly explains the tool's behavior: returns approve/deny/review decisions, describes output fields, and lists distribution-specific rules. However, it does not explicitly state that the tool has no side effects or is read-only, though the validation nature implies this.

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 description is well-structured with clear sections for purpose, use cases, return values, args, examples, and workflow. It is slightly verbose but every section adds value. The front-loading of purpose and key use cases is effective.

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

Completeness5/5

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

Given the tool's complexity (4 parameters, output schema), the description is fully complete. It covers all input parameters, output fields, behavior per distribution type, and provides multiple examples. It integrates with workflow and addresses typical use cases.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema has 0% description coverage, so the description must compensate. It does so excellently: explains each parameter in detail (licenses as SPDX IDs, policy_file optional, distribution types with policies, context examples), provides allowed values, and includes examples showing parameter usage.

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?

The description clearly states the tool's purpose: validate licenses against organizational policies for a specific distribution type. It uses specific verbs and resources, and distinguishes itself from sibling tools by positioning itself as the primary tool for answering 'Can I use these licenses for my project?'.

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?

The description provides extensive usage context, including key use cases (mobile, commercial, SaaS, etc.) and workflow integration (post-scan, quick check, enforcement). It does not explicitly mention when not to use this tool or direct to alternatives, but given the clear use cases, it is well-guided.

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

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. 14 tool updatesv1.6.2
    • First observedanalyze_commercial_risk
    • First observedcheck_license_compatibility
    • First observedcheck_package
    • First observeddownload_and_scan_package
    • First observedgenerate_legal_notices
    • First observedgenerate_legal_notices_from_purls
    • First observedgenerate_sbom
    • First observedget_license_details
    • First observedget_license_obligations
    • First observedrun_compliance_check
    • First observedscan_binary
    • First observedscan_directory
    • First observedvalidate_license_list
    • First observedvalidate_policy

TDQS

A3.9/5.0
Disambiguation5/5

Every tool has a clearly distinct purpose. While generate_legal_notices and generate_legal_notices_from_purls are similar, their descriptions explicitly differentiate them by input method and use case, preventing confusion. All other tools target unique aspects of compliance analysis.

Naming Consistency4/5

Tool names predominantly follow a verb_noun pattern (e.g., scan_directory, validate_policy), but there is minor inconsistency: some use hyphens (check_license_compatibility) while others use underscores consistently, and verbs vary (analyze, check, generate, scan, validate). Overall, the pattern is predictable and readable.

Tool Count5/5

With 14 tools, the server covers a comprehensive compliance workflow—from scanning and package analysis to license validation, legal notice generation, and SBOM creation. Each tool serves a clear role without redundancy, and the count is well-scoped for the domain.

Completeness5/5

The tool surface covers the entire lifecycle: scanning (source, binary), package analysis (simple and deep), license checks (details, obligations, compatibility), risk assessment, policy validation, legal notices (source and PURL-based), SBOM generation, and an end-to-end compliance workflow. No significant gaps are apparent.

Maintenance

ActivitySlowing
ResponsivenessSyncing

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • A
    license
    B
    quality
    D
    maintenance
    Allows developers to query security findings (SAST issues, secrets, patches) using natural language within AI-assisted tools like Claude Desktop, Cursor, and other MCP-compatible environments.
    17
    9
    MIT
  • A
    license
    A
    quality
    D
    maintenance
    Enables AI assistants to perform vulnerability scanning on Docker/OCI images, check CVE details, analyze licenses, and compare scan results via ScanRook.
    8
    15
    MIT

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/SemClone/mcp-semclone'

If you have feedback or need assistance with the MCP directory API, please join our Discord server