discover_permission_sets
Discover which ATProtocol permission-set lexicon schemas cover a given set of collections and/or XRPC methods. Returns matching permission sets with their OAuth scope strings (include:<nsid>), useful for determining what OAuth scopes an application needs.
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": {
"collections": "<collections>"
},
"name": "discover_permission_sets"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| methods | No | Optional: List of XRPC method NSIDs your application calls (e.g., ['app.bsky.video.uploadVideo', 'com.atproto.repo.listRecords']) | |
| collections | Yes | List of collection NSIDs your application reads or writes (e.g., ['app.bsky.feed.post', 'app.bsky.actor.profile', 'garden.lexicon.example']) |