Skip to main content
Glama

phone_scroll_find

Locates an exact label, swiping within a set budget when it is off screen; stops on ambiguous, covered, or undrawn labels and returns a target snapshot or candidates.

Instructions

Find one exact label, swiping at most max_swipes (default 1, max 5) when it is off screen. Stops at once — no further swipe — when the label is ambiguous (candidates with index and frame), covered or not drawn. Found: target plus a snapshot for phone_tap_element; not found: on-screen labels containing the text as candidates. Absence after the budget is not proof; look before swiping on. Optional snapshot from a read of the target app refuses on app change. swipes_uncertain: never replay.

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": {
      "label": "<label>"
    },
    "name": "phone_scroll_find"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNoNarrow to one element kind (e.g. `Button`) when a text shares the label.
labelYesExact label to find.
regionNoSwipe inside this normalized `[x, y, w, h]` area (default: whole screen).
instanceNodaemon instance name
snapshotNoA snapshot from an earlier read of the target app: when given, a different foreground app refuses before any swipe. Not filled in for you.
directionNo`down` (default) or `up`: which way to look when the label is absent.
max_swipesNoSwipes allowed when the label is not on screen, 0–5 (default 1).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.29.2
    • removedInput schema / description
      Removed value: -"Parameters for [`PhoneHandler::phone_scroll_find`]."
  2. Changed7 schema fields changedv0.29.0
    • removedInput schema / additionalProperties
      Removed value: -false
    • changedInput schema / properties / direction / type
      Previous value: -[
      -  "string",
      -  "null"
      -]New value: +"string"
    • changedInput schema / properties / instance / description
      Previous value: -"Installed local instance name, such as i13 or default. Omit to use the configured daemon. No fallback on failure."New value: +"daemon instance name"
    • changedInput schema / properties / kind / type
      Previous value: -[
      -  "string",
      -  "null"
      -]New value: +"string"
    • changedInput schema / properties / max_swipes / type
      Previous value: -[
      -  "integer",
      -  "null"
      -]New value: +"integer"
    • changedInput schema / properties / region / type
      Previous value: -[
      -  "array",
      -  "null"
      -]New value: +"array"
    • changedInput schema / properties / snapshot / type
      Previous value: -[
      -  "string",
      -  "null"
      -]New value: +"string"
  3. Changed1 schema field changedv0.27.34
    • addedInput schema / properties / max_swipes / minimum
      Added value: +0
  4. Changed1 schema field changedv0.27.3
    • addedInput schema / properties / instance
      Added value: +{
      +  "description": "Installed local instance name, such as i13 or default. Omit to use the configured daemon. No fallback on failure.",
      +  "type": "string"
      +}
  5. First observedv0.21.0

TDQS

A4/5.0
Behavior4/5

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

Adds substantial behavior beyond the annotations: refusal on app change when a prior snapshot is supplied, a defined stop-on-ambiguity/covered/not-drawn rule, explicit found vs. not-found return shapes, and a warning that uncertainty must never be replayed (consistent with idempotentHint=false). The cryptic fragment 'swipes_uncertain: never replay' and the absence of any note on what swiping can dismiss or alter on screen leave some behavioral risk undisclosed for a non-read-only tool with openWorldHint=true.

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?

Front-loaded and dense with useful facts, but several fragments are telegraphic to the point of ambiguity — 'look before swiping on' and 'swipes_uncertain: never replay' require inference about the exact action expected. Some pruning is needed alongside some expansion for clarity.

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?

Covers the two things an agent most needs with no output schema: the return shape on success and failure, and the refusal/side-effect rules around snapshot and swiping. It is only slightly short given seven parameters and a scroll side effect — region and kind semantics remain unexplained, and there is no note on what else a swipe may change on the screen.

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 the schema already documents kind, label, region, snapshot, direction and max_swipes. The description reinforces the max_swipes budget and snapshot refusal semantics but never explains region, kind, or instance, so it adds only marginal meaning over structured data.

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?

States a specific verb and resource — 'Find one exact label' — and immediately names the mechanism (swiping up to max_swipes when off screen) plus the handoff to phone_tap_element via the returned snapshot. An agent can distinguish this from phone_scroll and phone_tap_element without opening another schema.

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?

Gives clear operating context: swipe budget only applies when the label is off screen, execution halts on ambiguity/occlusion, and 'Absence after the budget is not proof' tells the agent how to interpret a negative result. It stops short of naming explicit alternatives (e.g. phone_scroll or phone_elements) for broader exploration, so no when-not-to-use routing is present.

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