github_licenses_get_for_repo
Retrieve license details for a GitHub repository by providing the owner and repository name. Optionally specify a Git reference to get the license for a specific branch or pull request.
Instructions
Get the license for a repository
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": {
"owner": "<owner>",
"repo": "<repo>"
},
"name": "github_licenses_get_for_repo"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | The Git reference for the results you want to list. The `ref` for a branch can be formatted either as `refs/heads/<branch name>` or simply `<branch name>`. To reference a pull request use `refs/pull/<number>/merge`. | |
| repo | Yes | repo | |
| owner | Yes | owner |