Skip to main content
Glama

Set status bar

set_status_bar
Idempotent

Pins a clean, fixed Android status bar in SystemUI demo mode for screenshot documentation, setting clock, battery, signal, and notification visibility; disable it to restore the live bar.

Instructions

Pin a clean status bar via SystemUI demo mode (enabled=true) — fixed clock, chosen signal/battery, no notification icons by default — so screenshots for docs don't leak the wall clock or a random signal state. Optionally set clock (HHMM), battery (0-100), network_type (wifi/mobile/none) with mobile_level/data_type/carrier for mobile, and notifications_visible/notification_icon. Call with enabled=false to restore the live bar.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "enabled": "<enabled>"
    },
    "name": "set_status_bar"
  }
}

Input Schema

NameRequiredDescriptionDefault
clockNoFixed clock as 4 digits HHMM, e.g. "1200". Only when enabled=true; omit to leave unchanged.
serialNoTarget device serial (adb -s). Optional when exactly one device is attached.
batteryNoFixed battery level 0-100 (shown unplugged). Only when enabled=true; omit to leave unchanged.
carrierNoCarrier/operator name shown in the status bar. Only used when network_type=mobile.
enabledYestrue = enter demo mode (clean, fixed status bar); false = exit and restore the live status bar.
data_typeNoMobile data-type icon shown next to the signal, e.g. lte, 4g, 5g, 3g, edge, 1x, h, h+, roam. Only used when network_type=mobile.
mobile_levelNoMobile signal bars 0-4. Only used when network_type=mobile. Default 4.
network_typeNoNetwork icon: "wifi" (default, full signal), "mobile", or "none" (hide network icons). Only when enabled=true.
notification_iconNoBest-effort: an AOSP SystemUI icon resource name to show in the first notification slot. Support varies by SystemUI/Android version. Only when enabled=true.
notifications_visibleNoShow notification icons in the status bar. Default false (hidden, for clean screenshots). Only when enabled=true.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare idempotentHint, destructiveHint=false, and openWorldHint=false, so safety is covered; the description goes further by naming the underlying mechanism (SystemUI demo mode), disclosing defaults (notification icons hidden, wifi full signal, mobile_level 4) and the restore semantics. It does not say whether the pinned state survives device reboot/disconnect or requires elevated adb permissions, which would be the remaining behavioral gap.

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 and its rationale are front-loaded in the opening clause, and the final sentence delivers the exit path. It is dense with em-dash subordination and the middle parameter list largely duplicates the schema, costing a bit of economy.

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?

For a ten-parameter mutation-adjacent tool with no output schema, the description covers the mechanism, the defaults, the conditional parameter relationships, and the undo path — enough to call it correctly. Only persistence/permission expectations are unstated.

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 description coverage is 100%, so every one of the ten parameters is already documented, making 3 the baseline. The description restates the key knobs and their conditional grouping (data_type/carrier only for mobile) but adds no format or interaction detail beyond the schema, so it earns no lift.

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 states a specific verb and mechanism ("Pin a clean status bar via SystemUI demo mode") plus the concrete motive ("so screenshots for docs don't leak the wall clock or a random signal state"). That motive cleanly separates it from neighbors like set_battery, screenshot, or cellular, which an agent might otherwise confuse it with.

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

Usage Guidelines4/5

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

Use-when is clear (preparing screenshots for docs), and the reverse path is spelled out explicitly: "Call with enabled=false to restore the live bar." What is missing is any explicit alternative — e.g., whether set_battery/cellular should be preferred for non-screenshot automation — so the agent must infer the boundary with siblings.

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