Skip to main content
Glama

APKCube

Check whether a build is packed

get_protection
Read-onlyIdempotent

Whether this build is wrapped in a commercial protector — DexProtector, Jiagu, Bangcle, Legu, AppSealing, Google's own PairIP — and what that means for everything else you can find out about it. Defaults to the newest build. A PROTECTOR IS NOT A MALWARE SIGNAL: anti-piracy, anti-tamper and anti-cheat are what these are sold for, and saying an app is 'suspicious' because it is packed is wrong about a large part of the catalogue. What it does mean is that the app's real code is not in classes.dex for anyone to read, so an empty SDK list, a short permission list or any other analysis of the same artifact is a floor and not a census — call this BEFORE you report that a build carries no trackers. analyzed: false means the archive was never opened, which is not the same as an unpacked build. Relay summary whole: it carries the finding and the bound in one sentence.

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": "get_protection"
  }
}

Input Schema

NameRequiredDescriptionDefault
apkIdNoA specific build from list_versions. Omit for the newest one.
packageNameYesAndroid package id.

Output Schema

NameRequiredDescriptionDefault
dexNoHow much code was read, when any was: read of total dex files, bytes, and truncated (one file ran out of budget part-way). NULL when none was read.
apkIdYesThe build this describes — the one asked for, or the newest held.
cappedNoEvidence tiers that hit their size cap while the artifact was being read, so the analysis worked from a subset of what the file carries. The one bound no later corpus can repair — fixing it needs the bytes back.
pairipYesGoogle PairIP licence protection specifically. Beyond packing, it checks the app's licence at run time, so a plain sideload of the file may refuse to run.
summaryYesOne sentence carrying both halves — what was found, and what it bounds. Relay it whole: 'packed with Jiagu' on its own turns a build-tool choice into an accusation, and the second clause is the part a reader can act on.
analyzedYesWas the artifact ever opened? FALSE means every field below is a default and none of them is a finding.
protectedYesAt least one commercial protector was identified. FALSE with analyzed:false above it means nobody looked — not that the build is unpacked.
protectorsYesWhat was identified. NOT a malware signal — anti-piracy and anti-tamper are what these are sold for, Google's own PairIP included. What it does mean is that the app's real code is not in classes.dex for anyone to read.
packageNameYesThe package asked for.
versionCodeYesIts build number.
versionNameYesVersion name of that build.
codeCoverageYesHow far the analysis reached into the app's OWN code: none — only the manifest and bundled libraries were read; partial — the code was read but not through; full — read through. Only 'full' makes an empty result mean anything close to 'none'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations only cover read-only/idempotent/open-world; the description goes well beyond by explaining the interpretive consequence of a positive result (real code is absent from classes.dex, so other analyses are 'a floor and not a census'), and by defining the `analyzed: false` state as 'archive never opened' versus an unpacked build. It also flags the common misreading (packed ≠ malware) and instructs relaying `summary` whole, which is real behavioral guidance.

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

Conciseness4/5

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

Front-loads the core question in the first clause and keeps every subsequent sentence load-bearing (the packed≠malware warning, the downstream-analysis caveat, the `analyzed: false` semantics, the summary instruction). It is dense and long-winded in places — the opening sentence trails a long protector list before the point — but nothing is redundant.

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

Completeness5/5

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

An output schema exists, so return values need no explanation, yet the description still clarifies the two ambiguous return states (`analyzed: false` and the `summary` field's dual finding+bound content). For a single-lookup read tool with rich annotations, nothing an agent needs to call or interpret it is missing.

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%, with both `packageName` and `apkId` documented in the schema itself. The description's only parameter note, 'Defaults to the newest build,' largely restates the schema's 'Omit for the newest one,' so it adds little meaning beyond structured data.

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

Purpose5/5

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

Names a specific verb and resource ('Whether this build is wrapped in a commercial protector') and enumerates the actual protectors detected (DexProtector, Jiagu, Bangcle, Legu, AppSealing, PairIP). That enumeration plus the build-scoping makes it clearly distinguishable from siblings like get_manifest or get_version_security that inspect the same artifact.

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

Usage Guidelines4/5

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

Gives an explicit ordering rule — 'call this BEFORE you report that a build carries no trackers' — which directly tells the agent how to sequence this against the SDK/tracker listing tools. It stops short of naming a specific alternative tool or stating when this call is unnecessary, so it is strong but not fully exhaustive.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources