Back to home
Connect a client

Get repository details

Read metadata for an accessible repository, including its available branches. GitHub installation credentials stay on the server.

Arguments

NameTypeRequiredLimits
installationIdstringNoAt least 1 character(s)
branchstringNoSee schema
projectIdstringNoAt least 1 character(s)
repositoryIdstringYesAt 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.