Skip to main content
Glama

Inspect Android Package

inspect_android_package
Idempotent

Inspect a local APK's package, SDK, permissions, decoded manifest, and component/resource counts to support reverse engineering and porting without executing the app.

Instructions

Inspect a local APK's package, SDK and permission declarations, decoded manifest and class/resource counts, with a bounded static component projection. Omitted or complete detail preserves the complete result. Select detail: "summary" for all declarations, engine identity and counts without decoded manifest text or duplicate raw calls; retains the complete source and returns a distinct linked inspect_analysis_view summary. With summary detail, optionally select view kind android: facet components supports offset/limit, fields and exact kinds/names/actions/exported filters; source_index preserves the retained parent array ordinal and declaration_coverage preserves historical unknowns. Facet component-summary counts selected kinds and exported declarations separately from defaults. Facet manifest pages exact UTF-16 text. Reuse the same views with inspect_analysis_view and normalized_result.parent_evidence_id; complete detail rejects view selection. Does not execute the APK or verify signatures. Requires a caller-supplied JADX MCP JAR and JDK; uses one worker in an isolated temporary workspace.

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": {
      "path": "<path>"
    },
    "name": "inspect_android_package"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes
viewNo
detailNo

Output Schema

NameRequiredDescriptionDefault
subjectYes
providerYes
authorityYes
locationsYes
operationYes
confidenceYes
parametersYes
raw_resultYes
environmentYes
evidence_idYes
limitationsYes
evidence_linksYes
predicate_typeYes
analysis_profileYes
caller_input_pathNo
normalized_resultYes
caller_input_pathsNo
relationship_coverageYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.25.0

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, idempotent=true, destructive=false and openWorldHint=true, so the mutation/safety profile is partly covered. The description nevertheless adds real behavioral context: it does not execute the APK or verify signatures, it requires a caller-supplied JADX MCP JAR and JDK, and it runs a single worker in an isolated temporary workspace, which explains why the tool is not read-only. The gap is that it never explains what state is written or cleaned up in that workspace, so the non-read-only hint remains only partially accounted for.

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

Conciseness3/5

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

Purpose is front-loaded, but the body is a run-on chain of dense clauses separated by semicolons and reads like specification notes rather than guidance. There is redundancy, e.g. 'Omitted or complete detail preserves the complete result' and repeated preservation wording, and the facet rules are hard to parse on first read.

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?

An output schema exists, so return values need not be described, and the definition covers prerequisites, exclusions (no execution, no signature verification), and the detail/view interaction constraints. For a tool with a nested oneOf view schema, this is close to complete; only the required path parameter's format is left implicit.

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

Parameters4/5

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

With 0% schema description coverage, the description carries the full burden and does most of it: it defines detail=summary vs complete, enumerates the three view facets (manifest, components, component-summary) and their filters (offset/limit, fields, kinds, names, actions, exported), and explains source_index and declaration_coverage semantics. The one undocumented parameter is path, whose meaning is only implied by 'local APK' rather than stated as a required filesystem path.

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 opening sentence names a specific verb and resource stack: inspect a local APK's package, SDK and permission declarations, decoded manifest, class/resource counts, and a bounded static component projection. It is clearly distinct from siblings like analyze_function or binary_overview, and it names inspect_analysis_view as the view-reuse path. It stops short of explicitly contrasting itself with inspect_artifact/inspect_managed_artifact, which an agent could confuse with an APK inspection call.

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?

It gives a concrete selection rule for the detail parameter: omitted/complete preserves the full result, while 'summary' drops decoded manifest text and duplicate raw calls and returns a linked inspect_analysis_view summary. It also states a hard constraint (complete detail rejects view selection) and points to reuse via inspect_analysis_view and normalized_result.parent_evidence_id. What is missing is guidance on when a caller should prefer this tool over the other inspect_* siblings.

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