Skip to main content
Glama

Check a use against a license

check_license
Read-onlyIdempotent

Call before using any image, text, dataset, code, font or model you did not create. Checks one license (any SPDX id; curated readings for common ones, needs_review for the rest) or the license a GitHub, Hugging Face, npm, PyPI, Wikimedia, Unsplash or Pexels page declares (a URL or pkg:npm/lodash), for your intended use. Returns permitted, prohibited, needs_review or not_documented, with duties and an uncertainty block (what is left open; whether a human must review). Free, no key. Call with {"license": "CC-BY-4.0", "intended_use": {"commercial_use": true, "attribution_planned": true}}.

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": {
      "intended_use": "<intended_use>"
    },
    "name": "check_license"
  }
}

Input Schema

NameRequiredDescriptionDefault
licenseNoSPDX id, e.g. CC-BY-NC-4.0 (uncurated ids answer needs_review)
source_urlNoInstead of license: a source page URL or package id (e.g. pkg:npm/lodash); its declared license is used
intended_useYesUses to check: each true flag must be documented; omitted = false; unknown fields refused. For instance {"commercial_use":true}

Output Schema

NameRequiredDescriptionDefault
dutiesNo
licenseNo
verdictYes
findingsYes
uncertaintyNo
uses_evaluatedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / source_url / description
      Previous value: -"Instead of license: a page on GitHub, Hugging Face, npm, PyPI, Wikimedia Commons, Unsplash or Pexels; the license it declares is checked"New value: +"Instead of license: a source page URL or package id (e.g. pkg:npm/lodash); its declared license is used"
  2. Changed1 schema field changed
    • changedInput schema / properties / intended_use / description
      Previous value: -"Intended use: every true flag is a right the check must find documented; omitted flags are false; unknown fields are refused. For instance {\"commercial_use\":true,\"deployment\":true,\"attribution_planned\":true,\"duration_days\":365}"New value: +"Uses to check: each true flag must be documented; omitted = false; unknown fields refused. For instance {\"commercial_use\":true}"
  3. Changed3 schema fields changed
    • changedInput schema / properties / intended_use / description
      Previous value: -"Intended use. Every true flag is a right the assessment must find documented; omitted flags are false. Unknown fields are refused (invalid_intended_use). For instance {\"commercial_use\":true,\"deployment\":true,\"attribution_planned\":true,\"duration_days\":365}"New value: +"Intended use: every true flag is a right the check must find documented; omitted flags are false; unknown fields are refused. For instance {\"commercial_use\":true,\"deployment\":true,\"attribution_planned\":true,\"duration_days\":365}"
    • changedInput schema / properties / license / description
      Previous value: -"SPDX id, e.g. CC-BY-NC-4.0 or Apache-2.0 (any SPDX License List id; uncurated ones answer needs_review)"New value: +"SPDX id, e.g. CC-BY-NC-4.0 (uncurated ids answer needs_review)"
    • addedOutput schema / properties / uncertainty
      Added value: +{
      +  "type": "object"
      +}
  4. Changed2 schema fields changed
    • addedOutput schema / properties
      Added value: +{
      +  "duties": {
      +    "items": {
      +      "type": "string"
      +    },
      +    "type": "array"
      +  },
      +  "findings": {
      +    "type": "array"
      +  },
      +  "license": {
      +    "properties": {
      +      "id": {
      +        "type": "string"
      +      },
      +      "reference_hash": {
      +        "type": "string"
      +      }
      +    },
      +    "type": [
      +      "object",
      +      "null"
      +    ]
      +  },
      +  "uses_evaluated": {
      +    "items": {
      +      "type": "string"
      +    },
      +    "type": "array"
      +  },
      +  "verdict": {
      +    "enum": [
      +      "permitted",
      +      "prohibited",
      +      "needs_review",
      +      "not_documented"
      +    ]
      +  }
      +}
    • addedOutput schema / required
      Added value: +[
      +  "verdict",
      +  "findings"
      +]
  5. Changed3 schema fields changed
    • changedInput schema / properties / license / description
      Previous value: -"SPDX id, e.g. CC-BY-NC-4.0 or Apache-2.0"New value: +"SPDX id, e.g. CC-BY-NC-4.0 or Apache-2.0 (any SPDX License List id; uncurated ones answer needs_review)"
    • addedInput schema / properties / source_url
      Added value: +{
      +  "description": "Instead of license: a page on GitHub, Hugging Face, npm, PyPI, Wikimedia Commons, Unsplash or Pexels; the license it declares is checked",
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "license",
      -  "intended_use"
      -]New value: +[
      +  "intended_use"
      +]
  6. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "type": "object"
      +}
  7. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Annotations already cover readOnly/openWorld/idempotent/non-destructive, and the description adds materially more: cost and auth ('Free, no key'), the four-valued outcome vocabulary, that common licenses get curated readings while uncurated ids return needs_review, and that responses include duties plus an uncertainty block flagging whether human review is required.

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?

Front-loads the most important instruction ('Call before using...') and packs inputs, outcomes and cost into one dense paragraph. It is somewhat overstuffed with parentheticals and a full example call that duplicates the schema, but no sentence is irrelevant.

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 an output schema present, return values needn't be spelled out, yet the description still names the outcome states and uncertainty block. The remaining gap is routing: with siblings like license_compatibility and assess_resource_for_use in the catalog, the definition never says which check to reach for when.

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%, including the license/source_url split and the intended_use flag semantics ('each true flag must be documented; omitted = false'), so the schema already carries the parameter meaning. The description's example object largely restates that, adding little beyond a worked usage shape.

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?

States a specific verb and resource — 'Checks one license ... for your intended use' — and enumerates accepted inputs (SPDX ids, GitHub/HF/npm/PyPI/Wikimedia/Unsplash/Pexels URLs, pkg: ids). The word 'one' implicitly scopes it as a single-item check, but no sibling is named, so the boundary against license_compatibility or assess_resource_for_use is left to inference.

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?

'Call before using any image, text, dataset, code, font or model you did not create' is an explicit, actionable trigger condition with concrete content types. It stops short of stating when NOT to use it or pointing to the sibling to use for compatibility or batch checks.

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