Skip to main content
Glama

Clearlydefined Definition

clearlydefined_definition
Read-onlyIdempotent

Get the curated licence and attribution record for one exact component version from ClearlyDefined: declared SPDX licence, every licence expression discovered in the files, the copyright holders that must be attributed, the upstream source repo + commit the release was built from, release date, file hashes, and 0-100 completeness scores. AUTHORITATIVE for "what licence is @ really under" and "who do I have to attribute" — it reports what scanners found in the shipped files, not just what the manifest claims. Keyless.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesComponent name, e.g. "express", "log4j-core", "requests".
typeYesComponent type: "npm", "maven", "pypi", "gem", "nuget", "crate", "composer", "go", "git", "deb", "pod".
providerYesWhere it was published: "npmjs", "mavencentral", "pypi", "rubygems", "nuget", "cratesio", "packagist", "golang", "github", "debian", "cocoapods".
revisionYesExact version or commit, e.g. "4.18.2", "2.17.1", or a git SHA.
namespaceNoGroup/scope/org, e.g. "org.apache.logging.log4j" for Maven or "@babel" for a scoped npm package. Omit (or pass "-") when the ecosystem has none.
file_limitNoHow many file rows to include when include_files is true. Default 50, max 500.
include_filesNoInclude the per-file licence/attribution rows (can be long). Default false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

The description adds substantial behavioral context beyond the annotations: it is 'Keyless', it reports 'what scanners found in the shipped files' rather than only manifest claims, and it enumerates return contents including source repo, commit, hashes, and completeness scores. There is no contradiction with the readOnly/openWorld/idempotent annotations.

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?

The description is front-loaded with the core action, then packs the return payload into a clear list, and ends with terse operational guidance. Every sentence earns its place, including 'Keyless', which conveys an important auth behavior in a single word.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a read-only lookup tool with no output schema, the description is unusually complete: it names the data fields returned, the authoritative question it answers, the fact that it uses scanner findings, and the auth requirement. The schema covers required parameters, so nothing critical is left unstated.

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?

The input schema already documents all 7 parameters with descriptions and examples, so the schema carries the full burden. The description reinforces the exact-version concept and mentions the 'declared SPDX licence' output, but does not add new parameter-specific semantics beyond what the schema provides.

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?

The description opens with a specific verb and resource: 'Get the curated licence and attribution record for one exact component version from ClearlyDefined.' It also distinguishes itself from sibling tools like clearlydefined_search by emphasizing exact-version, scanner-derived licence facts rather than general lookup.

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?

The description gives clear use cases, such as 'what licence is <package>@<version> really under' and 'who do I have to attribute', which tells an agent when to invoke it. It does not explicitly name alternatives or state when not to use it, but the authoritative-scope framing implies the boundary.

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.