Connect a client
Get repository details
Read metadata for an accessible repository, including its available branches. GitHub installation credentials stay on the server.
Arguments
| Name | Type | Required | Limits |
|---|---|---|---|
installationId | string | No | At least 1 character(s) |
branch | string | No | See schema |
projectId | string | No | At least 1 character(s) |
repositoryId | string | Yes | At least 1 character(s) |
Full input schema
{
"type": "object",
"properties": {
"installationId": {
"type": "string",
"minLength": 1
},
"branch": {
"type": "string"
},
"projectId": {
"type": "string",
"minLength": 1
},
"repositoryId": {
"type": "string",
"minLength": 1
}
},
"required": [
"repositoryId"
],
"additionalProperties": false
}Example call
The params of a tools/call request. Replace the placeholder values with your own IDs.
{
"name": "getRepositoryMetadata",
"arguments": {
"repositoryId": "REPLACE_WITH_REPOSITORY_ID"
}
} Result
The same data as the API operation, wrapped as {"untrusted_data": true, "source": "getRepositoryMetadata", "note": "...", "data": ...} so the model treats project content as data, not instructions.