Skip to main content
Glama

check_license_compatibility

Check license compatibility for combining code. Assess if two SPDX licenses can be used together, with context-specific reasons and recommendations.

Instructions

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

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
contextNogeneral
license1Yes
license2Yes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
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.

Install Server

Other Tools

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