Skip to main content
Glama

ai_test

Installs, launches, and tests an APK on an emulator or device, runs UI scenario steps, captures screenshots, and collects logs.

Instructions

Device testing: devices/install/run/buildAndTest/screenshot/logs.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "ai_test"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileNoAPK path (install/run/buildAndTest)
stepsNoScenario steps (run/buildAndTest)
actionNoWhat to do
deviceNoadb serial, e.g. emulator-5554
launchWaitMsNoWait after launch, default 6000
timeoutSecondsNoCompile timeout for buildAndTest

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.1

TDQS

C2.5/5.0
Behavior2/5

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

No annotations are supplied, so the description must carry the full behavioral burden, and it does not. Installing an APK, launching it, and taking screenshots are state-changing operations against a live device, but reversibility, required adb/emulator setup, concurrency constraints, and whether actions can be chained are all unstated. The action names leak a little behavioral meaning, but nothing beyond that is disclosed.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The definition is a single fragment with no wasted words and the domain is front-loaded, which is good. But the terseness crosses into under-specification: a slash-delimited enum recap communicates marginally more than the schema alone, so the brevity is not fully earning its place.

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?

This is a six-parameter, six-action device automation tool with no annotations and no output schema, so the description needs to explain prerequisites, side effects, and at least roughly what each action yields. Instead it delivers one short phrase, leaving an agent unable to judge setup requirements or the consequences of install and run.

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 parameter (file, steps, action, device, launchWaitMs, timeoutSeconds) is already documented in the schema; the description only mirrors the action values. Applying the documented baseline, a 3 is correct here since the schema does the work and the description adds no syntax or format guidance.

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

Purpose3/5

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

The prefix "Device testing:" establishes the resource domain, and the slash-separated list enumerates the six supported actions, so an agent can infer this tool drives an Android device via adb. However, the list is essentially a restatement of the action enum rather than a description of what each action does, and it never states the object under test (an APK, only implied by the schema). Purpose is recognizable but not sharply 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 guidance on when to pick this tool versus siblings such as ai_build, ai_validate, or ai_screen, nor any exclusions or prerequisites. The only implicit routing signal is that the caller must already know which of the six actions it wants, and nothing explains which action to choose for a given intent.

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