# ClearlyDefined: package licence definitions

ClearlyDefined curated licence data for an open source package version: declared licence, discovered licence expressions, copyright holders found and the licence and description scores.

- No API key needed to call
- Source: [ClearlyDefined](https://clearlydefined.io/)
- Licence and terms: [CC0 1.0](https://raw.githubusercontent.com/clearlydefined/curated-data/master/LICENSE)
- Coverage: open source packages
- Answers are shared and cached for 43200 seconds.

## Questions you can ask

- What licence does lodash 4.17.21 on npm declare? (operation `clearlydefined_definition`)

## Operations

### Licence definition of a package version

Answers: which licence does this exact package version declare, what licences were found in its files, and how complete is the licence data?

- `type`: required, string, npm \| pypi \| maven \| nuget \| gem \| crate, Package type.
- `namespace`: optional, string, default -, npm scope \(for example @types\) or Maven groupId; - when there is none.
- `name`: required, string, Package name \(Maven artifactId\).
- `revision`: required, string, Exact version.

Example: What licence does lodash 4.17.21 on npm declare?

Over MCP:

```
{"tool":"call_connector_operation","arguments":{"connector":"clearlydefined","operation":"clearlydefined_definition","params":{"type":"npm","name":"lodash","revision":"4.17.21"}}}
```

Over HTTP:

```
curl '/v1/connectors/clearlydefined/clearlydefined_definition?type=npm&name=lodash&revision=4.17.21'
```

## Source notice

Source: ClearlyDefined \(Open Source Initiative project\). The curated data licence reads: "Creative Commons CC0 1.0 Universal \(clearlydefined/curated-data LICENSE\)". This is licence information, not legal advice.

## Missing something?

Tell us what data, endpoint or feature you wish we had. It is free and needs no signup: call the MCP tool request_capability, or POST a short description to https://agentnative.dennery.ai/v1/capabilities/request.
