Skip to main content
Glama
zlx-cyber

JADX-MCP-SERVER

by zlx-cyber

get_method_by_name

Fetch a specific method's source code from a class to inspect Android app logic. Kotlin metadata is stripped by default; set slim=False for a raw dump.

Instructions

Fetch the source code of a method from a specific class.

Kotlin compiler metadata is stripped by default; pass slim=False for a raw dump.

Input Schema

NameRequiredDescriptionDefault
slimNo
class_nameYes
method_nameYes
method_signatureNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/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 behavioral burden. It usefully discloses that Kotlin compiler metadata is stripped by default and how to get a raw dump, but does not mention error behavior, overload resolution, or read-only nature beyond the verb 'fetch'.

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 purpose followed by a relevant behavioral note. No wasted words; the structure is efficient and easy to scan.

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 not be explained. However, for a four-parameter tool with zero schema descriptions and no annotations, the description leaves significant gaps around method_signature semantics and error/overload behavior.

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%, so the description must explain all four parameters. It fully explains slim but leaves class_name, method_name, and especially method_signature undocumented, including how to handle overloaded methods.

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 states a specific verb and resource: 'Fetch the source code of a method from a specific class.' This clearly distinguishes it from get_class_source (class-level) and search_method_by_name (search), though it does not explicitly name those siblings.

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?

Usage is implied by the purpose (fetch method source from a known class) and by the slim parameter note, but there is no explicit when-to-use guidance or comparison to alternatives like search_method_by_name or get_methods_of_class.

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