Skip to main content
Glama

APK Permissions

apk_permissions
Read-onlyIdempotent

Lists all permissions declared in an APK file so you can inspect required access before installation or security analysis.

Instructions

List all permissions declared in an APK file

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": {
      "apkPath": "<apkPath>"
    },
    "name": "apk_permissions"
  }
}

Input Schema

NameRequiredDescriptionDefault
apkPathYesAbsolute path to the APK file

Output Schema

NameRequiredDescriptionDefault
permissionsYesPermissions declared in the APK manifest

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

B3.3/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false, so the safety profile is covered. The description adds the nuance that it lists permissions 'declared in an APK file' (static analysis) rather than runtime permissions, which is useful behavioral context. However, it does not mention any prerequisites, error conditions, or performance traits.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, front-loaded sentence with no unnecessary words. It efficiently conveys the essential action and scope.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's simplicity (one required parameter) and the presence of an output schema, the description is adequate for invocation. However, it lacks usage guidance relative to siblings, which would help an agent decide when to choose this tool over alternatives.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the single parameter 'apkPath' is fully documented in the schema as 'Absolute path to the APK file'. The description adds no further meaning beyond what the schema provides, which is acceptable given the high coverage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb ('List') and resource ('all permissions declared in an APK file'), making the tool's purpose clear. It does not explicitly differentiate from the sibling 'app_permissions_list', which likely handles installed apps, but the phrase 'in an APK file' implies static analysis of an APK artifact.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives like 'app_permissions_list' or 'app_permission'. It only states what the tool does, leaving the agent to infer the appropriate context.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.