Skip to main content
Glama

stb_think

Maps UI elements from a provided UI map to decompiled Android code using a JADX output directory, helping trace app screens to source files.

Instructions

Bridge a UI map to decompiled code. Args: uimap (path or partial filename, e.g. 'newpipe'), decompiled_dir (jadx output). Decompile first with: /opt/jadx/bin/jadx -d --no-res

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": {
      "uimap": "<uimap>",
      "decompiled_dir": "<decompiled_dir>"
    },
    "name": "stb_think"
  }
}

Input Schema

NameRequiredDescriptionDefault
uimapYes
decompiled_dirYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.1

TDQS

B3.4/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, and it does disclose the required prior decompilation step and that uimap paths may be partial filenames. It says nothing about whether the tool is read-only, whether it writes or mutates anything, how expensive it is, or what constitutes a successful bridge, leaving meaningful behavioral gaps.

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?

The description is short and front-loaded: purpose first, then arguments, then the setup command. The 'Args:' list compensates for the bare schema, though the embedded shell command is dense and would read better as a separate prerequisite sentence.

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

Completeness3/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, and both required parameters are addressed at least nominally. Missing are the read-only/side-effect profile and any routing against the several sibling tools in this decompilation workflow, which a two-parameter analysis tool with zero annotation coverage should supply.

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 0%, so the description must do the work. It partially does: uimap is explained as 'path or partial filename' with the concrete example 'newpipe', which is valuable and not in the schema. decompiled_dir is only labeled 'jadx output', which is too terse to resolve whether it is the decompile root, a package directory, or a specific file.

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 opens with a specific action and resource: 'Bridge a UI map to decompiled code,' which tells an agent what the tool consumes and produces at a functional level. It does not, however, distinguish this tool from siblings like stb_jadx or stb_dump_ui that clearly participate in the same decompilation workflow, and the opaque name 'stb_think' gets no help beyond the first sentence.

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?

There is useful preconditions guidance: the description supplies a concrete jadx command to run before calling this tool, which is genuinely actionable. But it never states when to choose this tool over stb_jadx or stb_dump_ui, nor any exclusion conditions, so guidance is implied rather than explicit.

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