Skip to main content
Glama
zillow
by zillow

openSystemTray

Open the system notification tray by swiping down from the status bar on Android or iOS devices for mobile automation testing.

Instructions

Open the system notification tray by swiping down from the status bar

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
platformYesPlatform of the device

Implementation Reference

  • The handler function that executes the openSystemTray tool. It creates a SwipeOnScreen instance and performs a downward swipe including system insets to open the system tray.
    const openSystemTrayHandler = async (device: BootedDevice, args: OpenSystemTrayArgs, progress?: ProgressCallback) => {
      try {
        const swipeOnScreen = new SwipeOnScreen(device);
    
        const result = await swipeOnScreen.execute(
          "down",
          {
            duration: 100,
            includeSystemInsets: true // to access status bar area
          },
          progress
        );
    
        return createJSONToolResponse({
          message: "Opened system tray by swiping down from the status bar",
          observation: result.observation,
          ...result
        });
      } catch (error) {
        throw new ActionableError(`Failed to open system tray: ${error}`);
      }
    };
  • Zod schema defining the input arguments for the openSystemTray tool, requiring the platform.
    export const openSystemTraySchema = z.object({
      platform: z.enum(["android", "ios"]).describe("Platform of the device")
    });
  • Tool registration call that associates the 'openSystemTray' name, description, schema, and handler with the ToolRegistry.
      "openSystemTray",
      "Open the system notification tray by swiping down from the status bar",
      openSystemTraySchema,
      openSystemTrayHandler,
      true // Supports progress notifications
    );
  • TypeScript interface defining the arguments for the openSystemTray handler.
    export interface OpenSystemTrayArgs {
      platform: Platform;
    }
Behavior2/5

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

With no annotations provided, the description carries full burden for behavioral disclosure. It describes the action but doesn't mention potential side effects (e.g., might trigger notifications), platform-specific variations beyond the parameter, or what happens if the tray is already open. The description is minimal and lacks behavioral context.

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?

The description is a single, efficient sentence that directly states the tool's purpose and method. Every word contributes essential information with zero waste, making it perfectly front-loaded and appropriately sized for this simple tool.

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?

Given the tool's low complexity (single parameter, no output schema, no annotations), the description is minimally adequate. However, it doesn't explain what 'opening' means in behavioral terms (e.g., visual feedback, interaction state) or address potential failure modes, leaving some contextual gaps despite the simple nature.

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%, with the single parameter 'platform' fully documented in the schema. The description doesn't add any parameter-specific information beyond what's in the schema, so it meets the baseline score of 3 for high schema coverage.

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 clearly states the specific action ('open') and target resource ('system notification tray') with precise implementation details ('by swiping down from the status bar'). It distinguishes itself from sibling tools like 'swipe' or 'swipeOnScreen' by specifying the exact gesture and purpose.

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 description implies usage context (opening the notification tray) but doesn't explicitly state when to use this tool versus alternatives like 'swipe' for general swiping or 'recentApps' for app switching. No guidance is provided about prerequisites or when-not-to-use scenarios.

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/zillow/auto-mobile'

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