Skip to main content
Glama

stb_jadx

Decompile Android APK files with jadx to inspect source code, and optionally decode resource XML to map layout IDs to their inflation sites.

Instructions

Decompile an APK with jadx. Args: apk_path, out_dir (optional, default ~/stb/decompiled/), with_resources (true to also decode layout/menu XML — enables the layout-XML bridge chain res-id -> layout -> R.layout inflate site).

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": {
      "apk_path": "<apk_path>"
    },
    "name": "stb_jadx"
  }
}

Input Schema

NameRequiredDescriptionDefault
out_dirNo
apk_pathYes
with_resourcesNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.1

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It discloses the output location default (~/stb/decompiled/<name>) and the concrete side effect of with_resources, which is real value. It does not say whether an existing out_dir is overwritten, how long decompilation takes, or that jadx must be available — gaps for a disk-writing tool.

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?

Two sentences, front-loaded with the action, then parameters. The trailing parenthetical about the layout-XML bridge chain is dense jargon but is genuinely useful context rather than filler; the overall length is well matched to a 3-parameter tool.

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 explained. For a simple three-parameter decompile operation the description covers the action, the engine, the default destination, and the optional flag's effect; the main omission is overwrite/cleanup behavior of out_dir.

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?

Schema coverage is 0%, so the description must compensate, and it largely does: it names all three parameters, gives the default output path including the <name> substitution pattern, and explains the semantic effect of with_resources rather than just naming it. Only apk_path is left as pure restatement with no constraints (e.g., must be a file path on disk).

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?

States a specific verb and resource — 'Decompile an APK with jadx' — so the agent knows exactly what operation is performed and with what engine. No sibling differentiation is offered, but among the listed siblings (build, canvas, dump_ui, screencap, see, status, think, validate) none is a decompiler, so ambiguity risk is low.

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?

Implicit guidance only: the with_resources flag explains the condition under which layout/menu XML is decoded and what that unlocks (the res-id -> layout -> R.layout bridge chain). There is no explicit statement of when to call this versus doing nothing, nor any prerequisite/alternative guidance.

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