Skip to main content
Glama

What an open-source licence allows

get_licence
Read-onlyIdempotent

What a licence or SPDX expression means for a project: its family (permissive, weak/strong/network copyleft, source-available), what it allows and requires, and what that means when you ship, host (SaaS) or use the code internally. Accepts SPDX ids, common names ("Apache 2.0") and expressions ("MIT OR GPL-3.0-only"). Works without an API token. Not legal advice.

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": {
      "licence": "<licence>"
    },
    "name": "get_licence"
  }
}

Input Schema

NameRequiredDescriptionDefault
licenceYesSPDX id, licence name or SPDX expression

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, and closed-world, so the safety profile needs no restating. The description adds genuinely new behavior context: accepted input forms (SPDX ids, common names, expressions), no token requirement, and a 'not legal advice' disclaimer that sets expectations about output authority. Return format and any length limits are not covered.

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 scope statement is front-loaded in one dense sentence, followed by accepted input formats, an auth note, and a disclaimer. Every sentence carries information, though the parenthetical family list is slightly heavy and the input-form sentence partially duplicates the schema.

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 single-parameter read-only lookup with no output schema, the description conveys what the answer will contain conceptually (family, permissions, obligations, shipping/hosting implications), which is what an agent needs to decide to call it. It does not describe the response's structure or depth, but the conceptual coverage is sufficient to act on.

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 the single parameter's schema description already says 'SPDX id, licence name or SPDX expression.' The description largely repeats that but does add a concrete expression example ('MIT OR GPL-3.0-only') that clarifies the syntax an agent may pass. With the schema doing the heavy lifting, baseline 3 is appropriate.

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 names a specific resource (a licence or SPDX expression) and enumerates the exact content returned: family classification, what it allows and requires, and implications for shipping, SaaS hosting, or internal use. It is not a tautology of the title. It stops short of explicitly differentiating itself from the sibling check_licences, leaving the agent to infer that one audits a project while this one explains a licence.

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?

Usage context is stated concretely: use it when you need to know what obligations apply to shipping, hosting as SaaS, or internal use. It also clarifies an operational precondition with 'Works without an API token.' It does not name an alternative tool or state when not to use this one, so it falls short of full routing guidance.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources