Skip to main content
Glama
SPDX OSS Licenses Compliance MCP

SPDX OSS Licenses Compliance MCP

Get SPDX license details

get_spdx_license_details
Read-onlyIdempotent

Look up a single SPDX license by ID to retrieve official metadata, OSI/FSF approval flags, deprecation status, clause signals, and an optional license text excerpt for compliance checks.

Instructions

Fetch official SPDX license metadata, OSI/FSF approval flags, deprecation status, clause signals, and license text excerpt.

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_id": "<license_id>"
    },
    "name": "get_spdx_license_details"
  }
}

Input Schema

NameRequiredDescriptionDefault
license_idYesSPDX license identifier (e.g. "MIT", "Apache-2.0", "GPL-3.0-only").
include_textNoReturn up to 4000 characters of official license text when true (default false).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, open-world behavior, so safety is covered. The description still earns credit by disclosing what the payload contains (metadata, OSI/FSF flags, deprecation status, clause signals) and that text is returned only as an excerpt — important since there is no output schema. It omits what happens for an unknown or deprecated ID.

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?

A single front-loaded sentence with no filler; every clause names a distinct data category the caller receives.

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?

With no output schema, the enumeration of returned fields does the work of describing the response, and both parameters are fully specified in the schema. Gaps remain around error behavior for invalid IDs and the currency of the SPDX dataset, but nothing essential to invocation 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 both parameters are fully documented in the schema itself, setting the baseline at 3. The phrase 'license text excerpt' loosely echoes include_text, but adds no format, length, or default detail 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?

Names a specific verb (fetch) and resource (SPDX license metadata) and enumerates the returned fields — approval flags, deprecation status, clause signals, text excerpt. It never names a sibling such as search_spdx_licenses, so the boundary between this lookup and a search is left implicit.

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 required 'license_id' parameter implies this is a lookup-by-known-identifier tool rather than a discovery tool, which is usable guidance. However, there is no explicit statement of when to prefer it over search_spdx_licenses or compare_license_permissions, and no exclusion conditions.

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