Skip to main content
Glama

Analyze APK

apk_analyze
Read-onlyIdempotent

Inspect an APK to report size, version, SDK targets, and DEX references, with optional full file listing and manifest details for quick build verification.

Instructions

Analyze an APK file: size, version, SDK targets, DEX references, and optionally full file listing and manifest

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_analyze"
  }
}

Input Schema

NameRequiredDescriptionDefault
detailNoLevel of detail: 'summary' for key metrics, 'full' for complete file listing and manifestsummary
apkPathYesAbsolute path to the APK file

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and closed-world scope, so the safety profile is covered. The description adds value beyond that by stating precisely what gets inspected and that the costly full listing/manifest output is optional and gated by a flag, which is exactly the operational detail an agent needs before calling.

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?

A single front-loaded sentence with zero filler: it leads with the action and the resource, then lists the concrete returns and the optional expansion. Nothing is redundant with the title or padded.

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

Completeness4/5

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

With no output schema, the description carries the burden of telling the agent what comes back, and it does so by naming the exact metrics and the optional manifest/listing. What is missing is minor: no note on output format or size, and no explicit statement that analysis is local/read-only, though annotations cover that.

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%, and the enum for detail is documented in the schema itself, so the description adds little to apkPath semantics. It does reinforce that detail controls output volume, but that is largely a restatement of the schema's own 'summary'/'full' descriptions – baseline 3 applies.

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 names a specific verb ("Analyze") and resource ("APK file") and enumerates the exact outputs (size, version, SDK targets, DEX references) rather than restating the title. It does not explicitly distinguish itself from siblings like apk_permissions or gradle_dependencies, but the resource specificity makes the boundary reasonably obvious.

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

Usage Guidelines3/5

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

Usage is only implied: the phrase "optionally full file listing and manifest" hints that detail='full' is the heavier mode, but there is no explicit when-to-use vs when-not guidance or recommendation of a sibling tool. An agent can infer the condition from the schema enum, but the description does not state it.

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