Skip to main content
Glama
Mobile Device Farm MCP

Mobile Device Farm MCP

test_performance

Run a timed performance test on an app to track CPU and memory usage and identify resource bottlenecks.

Instructions

Run a performance test on an app, measuring CPU and memory over time.

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": {
      "packageName": "<packageName>"
    },
    "name": "test_performance"
  }
}

Input Schema

NameRequiredDescriptionDefault
deviceIdNo
platformNoandroid
durationSecNoTest duration in seconds
packageNameYesApp Bundle ID (e.g. com.example.app)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations at all, the description carries the entire behavioral burden. It says what is measured but not whether the run blocks for durationSec, whether it launches or requires a running app, whether it needs a specific device state, or what the result looks like — and there is no output schema to cover the return value.

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?

A single compact sentence with the verb and measurement scope front-loaded and no filler. It is efficient, though its brevity is part of why behavioral gaps remain.

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

Completeness2/5

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

For a four-parameter tool with no annotations and no output schema, the description should say more: expected result shape, blocking behavior over the test duration, and what deviceId/platform do. The critical gaps are exactly the ones structured fields do not cover here.

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 50%, and only durationSec and packageName are documented in the schema; deviceId and platform are undocumented everywhere. The description's 'over time' loosely gestures at duration but adds no detail on deviceId, platform, or what packageName must refer to beyond the schema's own Bundle ID example.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('run a performance test on an app') and adds the measured dimensions ('CPU and memory over time'), which distinguishes it from passive-inspection siblings. It does not explicitly name a sibling such as get_app_vitals or run_monkey, so the differentiation is implied rather than stated.

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

Usage Guidelines2/5

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

There is no when-to-use guidance, no prerequisites, and no mention of alternatives. The closest sibling, get_app_vitals, likely overlaps in the CPU/memory domain, but the description gives the agent nothing to choose between them.

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