List what a build asks the device for
list_permissionsEvery Android permission this build declares, sensitive ones first, each with a readable label, its capability family and a sentence saying what the app can actually do with it. Defaults to the newest build. This is the same labelling compare_versions diffs, so the two cannot name the same permission differently. THE NULL IS THE PART TO READ: permissions: null means the manifest was never read and is NOT a claim that the app asks for nothing — an empty array is that claim. sensitive is the count worth quoting; a long list of ordinary permissions is what almost every app looks like. defines is separate and often misread: those are permissions this app declares for OTHER apps to hold, not things it is asking for.
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": {
"packageName": "<packageName>"
},
"name": "list_permissions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| apkId | No | A specific build from list_versions. Omit for the newest one. | |
| packageName | Yes | Android package id. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| apkId | Yes | The build this describes — the one asked for, or the newest held. | |
| defines | Yes | Permissions this app DEFINES for other apps to hold — a different thing from the ones it requests. Empty when it defines none, and also empty when no manifest was read: permissions:null is how to tell. | |
| summary | No | '24 declared · 5 sensitive'. Null whenever permissions is. | |
| declared | No | How many. Null when permissions is. | |
| sensitive | No | Of those, how many are Android-dangerous or special-access. This is the number worth reading. | |
| byCategory | Yes | Counts by capability family, most-declared first, each with how many of its names are sensitive — a family of eleven with none sensitive is a different shape of app from two that are both dangerous. | |
| packageName | Yes | The package asked for. | |
| permissions | Yes | Sensitive first, then by label. NULL means the manifest was never read — NOT that the app declares none. An empty array is the genuine 'declares none', and the two are opposite answers to the only question this call gets asked. | |
| versionCode | Yes | Its build number. | |
| versionName | Yes | Version name of that build. |