Skip to main content
Glama
bartest5

JADX-MCP-SERVER

by bartest5

Rename Method

rename_method

Assign a new name to a specific method during Android APK analysis to clarify code structure and improve readability.

Instructions

Renames a specific method.

Input Schema

NameRequiredDescriptionDefault
new_nameYes
method_nameYes
method_signatureNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

D1.9/5.0
Behavior1/5

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

No annotations are provided, so the description carries the full behavioral burden, and it discloses nothing. For a mutation tool it should say whether references/xrefs are updated with the rename, whether the operation is reversible, and how overloaded methods are disambiguated — none of that appears.

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

Conciseness2/5

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

A single short sentence with no waste, but the brevity is under-specification rather than conciseness. There is no front-loaded scope or qualifier to anchor the agent before it picks parameters.

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 described. Everything else is missing, though: for a mutation with no annotations and 0%-covered parameters, the description should at minimum explain how a target method is identified and what the rename affects.

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

Parameters1/5

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

Schema description coverage is 0% across three parameters, so the description must compensate and it does not mention any parameter. The critical ambiguity — what method_name alone means for an overloaded method versus the optional method_signature discriminator (default null) — is left entirely unexplained.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Renames a specific method" gives a verb and a resource, so an agent can tell it apart from the rename_class/rename_field/rename_variable siblings by target type. But it adds nothing beyond the name/title: no scope, no notion of what a "method" means here (name only vs. signature), and "specific" is filler.

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 statement of when to use this tool versus the closely related siblings (rename_class, rename_field, rename_package, rename_variable), nor any prerequisite or constraint. The agent must infer everything from the resource noun alone.

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