Skip to main content
Glama
renef-mcp
by Ahmeth4n

adb_device_status

Inspect Android root and SELinux status, including su/Magisk checks, and optionally toggle SELinux enforcing/permissive mode.

Instructions

Check Android device root & SELinux status, and optionally toggle SELinux mode.

Args: selinux_action: Optional - "disable" (Permissive / setenforce 0) or "enable" (Enforcing / setenforce 1). Leave empty to inspect only.

Returns: JSON report with root status, su/Magisk checks, and SELinux state

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "adb_device_status"
  }
}

Input Schema

NameRequiredDescriptionDefault
selinux_actionNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations supplied, the description carries full behavioral burden. It does disclose that the tool runs setenforce 0/1 and that the default is a non-mutating inspection, plus the shape of the returned report (root, su/Magisk, SELinux state). It omits critical operational context such as whether root is required for the toggle, whether the change persists across reboot, or what failure looks like when su is missing.

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?

The purpose statement is front-loaded in the first sentence, and the Args/Returns blocks are compact and scannable. The Returns block partly restates what the output schema already provides, which is minor redundancy rather than harmful bloat.

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?

This is a tool that can mutate device security state, and with zero annotation coverage the description should say more about prerequisites and side effects. The inspection path and return contents are well covered, but the privileged nature of the toggle is left unaddressed. Adequate overall, incomplete for the mutating case.

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 0%, and the schema only declares a free-form string with an empty default, so the description must compensate. It enumerates the two meaningful values 'disable' (Permissive / setenforce 0) and 'enable' (Enforcing / setenforce 1) and explains the empty-default inspect behavior, which is substantially more than the schema offers. It does not say what happens for an unrecognized value, keeping it below 5.

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: checking Android root and SELinux status, with an optional toggle. It clearly separates the inspect-only default from the mutating path. It does not explicitly differentiate itself from neighbors like adb_devices or renef_detect_framework, so it falls short of a 5.

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 only usage guidance is 'Leave empty to inspect only', which tells an agent how to invoke the read path versus the write path. There is no statement of when this tool is preferred over siblings or what preconditions must hold. Usage is implied rather than declared.

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