Skip to main content
Glama

set_dark_mode

Enable or disable the Android system dark theme to test light and dark UI appearances using adb.

Instructions

Turn the system dark theme on or off (cmd uimode night) — to test light/dark appearances.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
serialNoTarget device serial (adb -s). Optional when exactly one device is attached.
enabledYestrue = dark theme on, false = off.
Behavior3/5

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

No annotations are provided, so the description carries the full burden of disclosing behavior. It clearly states the tool turns dark theme on/off ('true = dark theme on, false = off'), which implies a low-risk UI toggle. However, it does not mention whether a device reset or app restart is needed for the change to take effect, or if there are side effects. With no annotations, a 3 is appropriate as the basic behavior is clear but lacks depth.

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?

Single, front-loaded sentence that immediately states the action and purpose. The parenthetical includes a helpful internal command reference without bloating. Every word serves a purpose; no redundancy given the simple tool.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The tool is a simple toggle with 2 params and no output schema or nested objects. The description fully covers the action and context (testing appearances). Minor gap: absent mention of return value or confirmation, but for a boolean toggle tool, this is acceptable. Sibling tools like set_battery have similar simplicity and would benefit from a similar level of detail.

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%, meaning both parameters (serial, enabled) are already documented in the schema. The description adds value by clarifying the overarching purpose (testing appearances) and referencing the underlying command, but does not add new meaning for individual parameters beyond the schema. Baseline 3 is appropriate; plus 1 for the useful context (cmd uimode night) that aids parameter understanding.

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?

Description uses specific verb 'Turn' and resource 'system dark theme', immediately clarifying the on/off function. It distinguishes from sibling tools like set_battery, set_sensor, set_status_bar which set other system properties, and references the internal command 'cmd uimode night' for full precision.

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?

Description states the tool is for toggling dark theme on/off and mentions testing light/dark appearances, which implies a development/testing use case. However, it provides no explicit guidance on when not to use it, no alternatives, and no prerequisites (e.g., device must support dark theme).

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/iksnerd/adb-mcp'

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