Skip to main content
Glama
bartest5

JADX-MCP-SERVER

by bartest5

Get Smali Of Class

get_smali_of_class

Retrieve the smali bytecode representation of a specified Android class to analyze low-level behavior and reverse engineer APK logic.

Instructions

Fetch the smali representation of a class.

Input Schema

NameRequiredDescriptionDefault
class_nameYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.7/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden. It implies a read operation but says nothing about behavior when the class is missing, whether the result is cached, or whether the class name must be fully qualified. For a lookup tool in a reverse-engineering context, that is a meaningful gap.

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?

A single front-loaded sentence with no filler. It is efficient, though the brevity borders on under-specification given the tool's role.

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

Completeness2/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, but the description omits the class_name format and the distinction from get_class_source. For a single-parameter lookup tool with no annotations and zero schema coverage, it leaves the agent under-informed.

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

Parameters2/5

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

Schema description coverage is 0% and the description does not explain the class_name format (dot-separated vs slash-separated, inner classes, package prefix). With one undocumented parameter, the description fails to compensate for the schema gap.

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 ('Fetch') and resource ('smali representation of a class'), so the agent knows exactly what it returns. It does not differentiate itself from close siblings like get_class_source, which likely returns Java source, leaving the choice ambiguous.

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

Usage Guidelines2/5

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

There is no guidance on when to use this over get_class_source or get_methods_of_class. The agent must infer that 'smali' means bytecode-level decompilation and pick accordingly, which is not stated.

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