Skip to main content
Glama

WritersLogic developer agents

spdx-policy

SPDX license expression parse and policy check — Parses up to 50 SPDX license expressions (AND, OR, WITH exceptions, + or-later, LicenseRef) and evaluates each against a caller policy (allow list, deny list, allowed exceptions, OSI/FSF flags, copyleft tier) for agents vetting dependency licenses. Returns the canonical expression, per-license flags from the pinned SPDX License List, the verdict, and which licenses satisfy an OR. Does not detect l

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": {
      "expressions": "<expressions>"
    },
    "name": "spdx-policy"
  }
}

Input Schema

NameRequiredDescriptionDefault
denyNoSPDX ids that always fail.
allowNoIf non-empty, only these SPDX ids pass (GPL-2.0-only and GPL-2.0 are the same entry; GPL-2.0+ means or-later and must be listed as such).
expressionsYesSPDX expressions, e.g. 'MIT OR (GPL-2.0-only WITH Classpath-exception-2.0)'.
denyCopyleftNoId-family heuristic: strong = GPL/AGPL/SSPL/EUPL/OSL/CC-BY-SA; any adds LGPL/MPL/EPL/CDDL and similar.
allowDeprecatedNoDefault true: deprecated ids only add a witness. false: they fail.
allowExceptionsNoIf non-empty, only these WITH exception ids pass.
requireFsfLibreNoFail licenses without isFsfLibre in the SPDX list.
allowLicenseRefsNoLicenseRef-* ids the caller has reviewed; other refs yield unknown.
requireOsiApprovedNoFail licenses without isOsiApproved in the SPDX list.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources