Skip to main content
Glama

identify_packer

Read-only

Scan an APK to fingerprint its compiler, packer, obfuscator, and anti-debug/anti-VM techniques using APKiD YARA rules—a first look before reverse-engineering.

Instructions

Fingerprint the compiler, packer, obfuscator, and anti-debug/anti-VM techniques an APK uses, via APKiD's YARA rules - a good first look before deciding how to approach an APK. Only reads the file. Returns APKiD's own JSON report (for each scanned file, its matches grouped by category - compiler, obfuscator, packer, anti_vm and so on); if APKiD's output isn't valid JSON it returns { raw } instead. Requires apkid on PATH (pip install apkid).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
apkPathYesAbsolute path to the .apk (or .dex) file to scan. Must exist.
workspaceNoWorkspace name (not id). Created if it doesn't exist, and this call is recorded as a job in its history. Defaults to "default".
timeoutSecondsNoPer-file YARA scan timeout in seconds. Default 30.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv1.3.7
    • changedInput schema / properties / apkPath / description
      Previous value: -"Absolute path to the .apk (or .dex) file"New value: +"Absolute path to the .apk (or .dex) file to scan. Must exist."
    • addedInput schema / properties / timeoutSeconds / default
      Added value: +30
    • changedInput schema / properties / timeoutSeconds / description
      Previous value: -"Per-file YARA scan timeout, default 30"New value: +"Per-file YARA scan timeout in seconds. Default 30."
    • addedInput schema / properties / timeoutSeconds / minimum
      Added value: +1
    • changedInput schema / properties / workspace / description
      Previous value: -"Workspace name (not id) - created automatically if it doesn't exist yet. Defaults to \"default\"."New value: +"Workspace name (not id). Created if it doesn't exist, and this call is recorded as a job in its history. Defaults to \"default\"."
  2. First observedv1.3.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations cover the safety profile (readOnlyHint=true, openWorldHint=false), so the description's 'Only reads the file' is redundant. It adds real value beyond the annotations: the external dependency (apkid on PATH, pip install), the per-file scan scope, and the graceful { raw } fallback when APKiD output is not valid JSON.

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-loaded with the core action and resource, then the positioning and return/dependency details. Dense but each clause carries information; only the 'Only reads the file' clause partially duplicates the annotations.

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?

With no output schema, the description compensates by describing the return shape (APKiD JSON grouped by category, with { raw } fallback) and the runtime prerequisite (apkid on PATH). For a three-parameter read-only tool this is complete.

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 schema already documents apkPath, workspace, and timeoutSeconds fully. The description adds only an implicit note that multiple files may be scanned ('for each scanned file'), which is marginal beyond the schema. Baseline 3 is appropriate.

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?

States a specific verb (Fingerprint) and a precise resource (compiler, packer, obfuscator, anti-debug/anti-VM techniques of an APK), names the mechanism (APKiD's YARA rules), and positions it as a first-pass triage step, distinguishing it from siblings like decompile_apk and scan_secrets.

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?

Explicitly frames when to use it: 'a good first look before deciding how to approach an APK.' It gives clear context for use but does not name specific alternatives or when-not-to-use conditions.

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