Skip to main content
Glama

List devices

list_devices

Lists Playwright's built-in device profiles for phones and tablets, including screen size, pixel density, and touch, so you can pass device names to page exploration and locator checks.

Instructions

Device profiles for mobile web testing (Playwright's built-in list): phones and tablets with their screen size, pixel density and touch. Pass a name as device to explore_page, check_locator, capture_baseline and heal_locator.

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": "list_devices"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.3.0

TDQS

A3.8/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full behavioral burden. It conveys that this is a static, built-in, read-only catalog and names the fields each entry carries (screen size, pixel density, touch), which is useful. It does not give the shape of the result (list of objects? name-keyed map?), any example device name, or confirm no side effects, leaving meaningful gaps for a tool with no output schema.

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?

Two sentences, front-loaded with what the tool returns and followed by how the output is used. Every clause earns its place except the slightly crowded enumeration of four sibling tool names in one sentence, which could be trimmed.

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 zero-parameter, non-destructive catalog tool with no output schema, the description covers what is returned, its origin (Playwright built-in), and its downstream use. The only real omission is the concrete result shape and an example device identifier, which would fully close the loop given the absence of an output schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The tool takes zero parameters, so the baseline is 4. The description does add extra value by explaining what the output is consumed for — the `device` argument of four sibling tools — which is semantics about usage rather than a restatement of an empty schema.

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?

The description states a specific resource and scope: device profiles for mobile web testing, drawn from Playwright's built-in list, covering phones and tablets with screen size, pixel density and touch. An agent can tell this is a discovery/catalog tool rather than an action tool. It does not use an explicit verb like 'list', but the content and field enumeration make the purpose unambiguous and it is clearly differentiated from the action siblings it names.

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?

The second sentence gives actionable context: pass a returned name as the `device` argument to explore_page, check_locator, capture_baseline and heal_locator. That effectively tells the agent this tool is the source of valid device values for those four tools. It stops short of explicit exclusions (e.g., 'you can skip this if you already know a valid device name' or 'only needed for mobile testing'), so a 4 rather than a 5.

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