Skip to main content
Glama

Robot Actions — Remote Device Control

device_set_device_language

Change the Android device's system language and locale (persistent, affects every app, survives reboot). Uses a bundled locale-change helper with reflection into ActivityManagerNative.updateConfiguration. For per-app testing without changing the whole device, prefer device_launch_app_in_language. Caveats: Samsung One UI / MIUI may re-apply their own locale after a few seconds; Android 14+ requires hidden_api_policy=1 (set automatically); MDM-managed devices may refuse the CHANGE_CONFIGURATION grant.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
udidYesDevice serial number (UDID)
scriptNoOptional ISO 15924 script tag (e.g. "Hans" / "Hant" for Chinese variants)
countryYesISO 3166-1 alpha-2 country code, e.g. "FR", "US", "JP"
languageYesISO 639-1 language code, e.g. "fr", "es", "en", "ja"

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

With no annotations provided, the description carries the full burden. It discloses the persistence and reboot survival, the implementation via reflection into ActivityManagerNative.updateConfiguration, and all known platform-specific failure modes. This is exemplary transparency for a mutation tool.

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?

Three well-organized sentences: purpose first, then alternative, then caveats. No filler, every sentence adds actionable information, and the most critical scope is front-loaded.

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

Completeness5/5

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

For a system-level mutation tool with no annotations or output schema, this description covers all necessary context: persistence, scope, alternatives, and all known caveats. An agent has everything needed to decide when and how to invoke it, and what to expect.

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

Parameters3/5

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

Schema coverage is 100%, so the description need not repeat parameter details. It does not add extra meaning beyond the schema, but the baseline of 3 is appropriate since the schema already fully documents all four parameters. The description does not hurt or enhance 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 explicitly states the verb 'Change', the resource 'Android device's system language and locale', and adds key attributes: persistent, affects every app, survives reboot. It also distinguishes itself from the sibling device_launch_app_in_language, making its scope unambiguous.

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

Usage Guidelines5/5

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

Provides explicit when-to-use guidance: 'For per-app testing without changing the whole device, prefer device_launch_app_in_language'. Also lists caveats (Samsung/MIUI re-applying locale, Android 14 hidden_api_policy, MDM refusal) that inform when this tool may fail, giving an agent decision criteria.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources