Skip to main content
Glama

user_state.set

Emulate an idle user or locked screen so apps that change behavior when nobody is present act as if the user is away or the device is locked.

Instructions

Emulate an idle user or a locked screen, for apps that change behaviour when nobody is there.

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": "user_state.set"
  }
}

Input Schema

NameRequiredDescriptionDefault
resetNo
target_idNoTarget handle (tgt_*). Omit for the active page.
browser_idNoBrowser handle (br_*). Omit to use the only running browser, or auto-launch one.
user_activeNo
screen_unlockedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=false and openWorldHint=true, so the mutation and open-world nature are known. The description adds only the idea that the effect is observable via app behaviour; it says nothing about how long the emulated state persists, whether it survives navigation, or how to undo it, which is the critical behavior for a state-mutation tool.

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 front-loaded sentence with no redundant wording. It is lean to the point of under-specification, but nothing in it is wasted.

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?

For a five-parameter, zero-required mutation tool with 40% schema coverage and no output schema, the description does not carry enough weight. The idempotency/reset story and the target/browser scoping behaviour (including auto-launch from the schema) are left for the agent to infer.

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

Parameters2/5

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

Schema coverage is only 40%: user_active, screen_unlocked and reset have no schema descriptions. The description implies what the two state flags do ('idle user', 'locked screen'), but gives no meaning at all for reset, the one parameter an agent needs in order to restore normal state — a serious gap at this coverage level.

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 pairs a specific verb ('Emulate') with a concrete resource state ('an idle user or a locked screen'), so an agent can tell this tool manipulates simulated presence rather than, say, error state (app.error_state) or sensors. It does not compare itself against any sibling, so it stops short of a 5.

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?

'for apps that change behaviour when nobody is there' gives an implicit usage context, indicating this is for testing presence-sensitive UI. There is no explicit when-not guidance, no mention of how to return to normal (the reset parameter), and no comparison to alternatives like app.error_state.

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

Deploy Server

Other Tools