Skip to main content
Glama
SPDX OSS Licenses Compliance MCP

SPDX OSS Licenses Compliance MCP

Compare two SPDX licenses

compare_license_permissions
Read-onlyIdempotent

Compare two SPDX license IDs side by side to check permissive/copyleft category, OSI/FSF flags, patent/notice clauses, and compatibility notes.

Instructions

Compare two SPDX license IDs side by side across permissive/copyleft category, OSI/FSF flags, patent/notice clauses, and compatibility notes.

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": {
      "license_a": "<license_a>",
      "license_b": "<license_b>"
    },
    "name": "compare_license_permissions"
  }
}

Input Schema

NameRequiredDescriptionDefault
license_aYesFirst SPDX license ID (e.g. "MIT").
license_bYesSecond SPDX license ID (e.g. "Apache-2.0" or "GPL-3.0-only").

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=true, so the safety profile is covered. The description adds value by naming the output facets (categories, flags, clauses, compatibility), which partly substitutes for the absent output schema, but says nothing about handling of invalid or deprecated SPDX IDs, which matters for an open-world tool.

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?

A single front-loaded sentence with no filler; the facet list is dense but each item carries information. Slightly list-heavy in a way that reads as a spec dump rather than prioritized guidance, keeping it below top marks.

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 simple two-parameter read-only tool with no output schema, naming the comparison dimensions effectively communicates what comes back. Missing only edge-case behavior and whether the result includes a compatibility verdict versus raw notes.

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 coverage is 100% and both parameters carry their own descriptions and examples, so the schema does the heavy lifting. The description adds only the constraint that inputs are SPDX license IDs (already in the schema) and gives no ordering or normalization semantics for the pair.

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: "Compare two SPDX license IDs side by side", then enumerates the comparison axes (permissive/copyleft category, OSI/FSF flags, patent/notice clauses, compatibility notes). This clearly distinguishes it from single-license siblings like get_spdx_license_details or check_osi_fsf_approval.

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 is implied by "compare ... side by side" and the two-license framing, telling the agent this is the comparative tool rather than a lookup. However, it never states when not to use it (e.g. for a single license use details) or what happens with unknown/duplicate IDs, leaving selection guidance to inference.

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