Skip to main content
Glama
MarwanDevSpace

mcp-flutter-apk-injector

patch_manifest_and_config

patch_manifest_and_config

Add Flutter runtime requirements to decoded AndroidManifest.xml: insert INTERNET/WAKE_LOCK permissions, override Application class, add FlutterActivity entry with engine metadata, and validate the patched result.

Instructions

Patch the decoded AndroidManifest.xml with Flutter runtime requirements: INTERNET/WAKE_LOCK permissions, custom Application class override, FlutterActivity entry (activity_overlay), engine-id metadata, and optional usesCleartextTraffic. Returns a validation status for the patched manifest.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
workspaceDirYes
usesCleartextTrafficNo
additionalPermissionsNo
customApplicationClassNo
Behavior3/5

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

No annotations are provided, so the description must disclose behavior. It lists the exact manifest modifications and mentions a validation status return, which is helpful. However, it does not disclose whether the patch is destructive to existing content (e.g., replacing an existing Application class), required ordering with sibling tools, or failure modes.

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 packs a detailed list of changes and a return value into a single sentence with no redundant or vague filler. It is information-dense and front-loaded.

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?

For a tool with no annotations and no output schema, the description covers what the patch does and that it returns a validation status, but it lacks context about prerequisites, side effects, how the parameters interact, or the validation domain. The moderate complexity of affecting the manifest warrants more context.

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 coverage is 0%, so the description must explain the parameters. It illuminates 'usesCleartextTraffic' and 'customApplicationClass' via the enumerated runtime requirements, but it does not explain 'workspaceDir' (the location of the decoded manifest) or 'additionalPermissions' beyond the INTERNET/WAKE_LOCK permissions. This leaves half the parameters underdocumented.

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 uses a specific verb 'Patch' and identifies the resource 'decoded AndroidManifest.xml', then enumerates concrete changes (permissions, Application class, activity_overlay, metadata). This clearly distinguishes it from sibling tools like inject_flutter_runtime_and_smali or recompile_align_and_sign.

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?

The description implies usage after decoding and before recompiling, but it does not explicitly state when to use this tool versus siblings or any prerequisites/exclusions. It defines the tool's role by its object, but not decision guidance.

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/MarwanDevSpace/mcp-flutter-apk-injector'

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