Skip to main content
Glama

set_font_scale

Adjust Android device font scaling for accessibility testing. Set values from 0.85 (small) to 1.3 (largest) to verify UI responsiveness across different text sizes.

Instructions

Set system font scale (0.85 = small, 1.0 = normal, 1.15 = large, 1.3 = largest). Useful for testing font scaling accessibility.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
scaleNo
device_serialNo

Implementation Reference

  • The handler function for the 'set_font_scale' tool. It is registered via the @mcp.tool() decorator and sets the system font scale using ADB by running the settings command.
    @mcp.tool() def set_font_scale(scale: float = 1.0, device_serial: str | None = None) -> str: """ Set system font scale (0.85 = small, 1.0 = normal, 1.15 = large, 1.3 = largest). Useful for testing font scaling accessibility. """ return run_adb([ "shell", "settings", "put", "system", "font_scale", str(scale) ], device_serial)

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/rahulkr/r_adb_mcp_server'

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