Skip to main content
Glama
Serhatcck

mobile-security-mcp

by Serhatcck

android_secrets_scanner

Scans Android APKs to detect hardcoded secrets and API keys. Supports both direct APK analysis and deeper scanning with decompiled smali output.

Instructions

Scans an APK for hardcoded secrets and API keys. Without smali_folder: runs strings on classes*.dex and resources.arsc, plus scans text assets inside the APK. With smali_folder (apktool output): scans res/values/strings.xml and assets as plain text files.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
apk_pathYesAbsolute path to the APK file
smali_folderNoAbsolute path to apktool decompiled output folder (optional)
min_lengthNoMinimum string length for strings command (default 8)
Behavior3/5

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

No annotations are provided, so the description bears full burden. It discloses that the tool runs strings or scans text files, implying a read-only operation. However, it does not describe the output format, potential performance implications, or confirm that the tool does not modify the APK, leaving some 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.

Conciseness5/5

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

The description is extremely concise, consisting of two sentences that front-load the purpose and efficiently explain both usage modes. Every sentence adds necessary information without redundancy.

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?

With 3 parameters, no output schema, and no nested objects, the description covers scanning behavior but omits what the tool returns (e.g., list of found secrets, file paths). A more complete description would include output format to help agents process results.

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 description coverage is 100%, so baseline is 3. The description adds value beyond the schema by explaining the behavioral difference between providing and omitting smali_folder, and implicitly ties min_length to the strings command. This extra context merits a 4.

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

Purpose5/5

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

The description clearly states 'Scans an APK for hardcoded secrets and API keys.' This specifies a unique verb-resource combination that distinguishes it from sibling tools like android_api_extractor or apk_permissions_checker, which focus on API extraction or permission analysis respectively.

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

Usage Guidelines4/5

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

The description explains when to use the smali_folder parameter: without it, the tool runs strings on binary files; with it, it scans specific XML and asset files. This provides clear context for optional usage, though it does not explicitly exclude alternatives like ios_secrets_scanner for iOS APKs.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Serhatcck/mobile-security-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server