Skip to main content
Glama

phone_collect_list

Reads a scrolling list across multiple pages in one call by capturing rows and swiping until the end label appears, a page repeats, or the page limit is reached.

Instructions

Read a scrolling list across pages in ONE call: reads rows of one kind (default Cell), swipes a page, repeats until the page repeats (duplicate_page), end_label shows, or max_pages (default 6, max 10). Rows dedupe on (kind, identifier, label, value): look-alike rows without identifiers may collapse, so reconcile counts the user cares about. complete=true ONLY when end_label was seen; duplicate_page is not proof of the end. Leaves the screen on the last page. swipes_uncertain: never replay.

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

Input Schema

NameRequiredDescriptionDefault
regionNoOnly rows whose centre lies in this normalized `[x, y, w, h]` area, and swipes inside it (default: the whole screen).
instanceNodaemon instance name
row_kindNoElement kind of one list row (default `Cell`; e.g. `StaticText`, `Button`, `Link`). A row without a label is named by its texts.
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) reveals rows below, `up` rows above.
end_labelNoExact label that marks the end of the list ("没有更多了", "No more results"). Only this makes the result `complete:true`.
max_pagesNoPages to read, 1–10 (default 6). One swipe between pages.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.29.2
    • removedInput schema / description
      Removed value: -"Parameters for [`PhoneHandler::phone_collect_list`]."
  2. Changed8 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 / end_label / 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 / max_pages / type
      Previous value: -[
      -  "integer",
      -  "null"
      -]New value: +"integer"
    • changedInput schema / properties / region / type
      Previous value: -[
      -  "array",
      -  "null"
      -]New value: +"array"
    • changedInput schema / properties / row_kind / type
      Previous value: -[
      -  "string",
      -  "null"
      -]New value: +"string"
    • changedInput schema / properties / snapshot / type
      Previous value: -[
      -  "string",
      -  "null"
      -]New value: +"string"
  3. Changed1 schema field changedv0.27.34
    • addedInput schema / properties / max_pages / 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
Behavior5/5

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

Annotations only say readOnly=false, openWorld=true, idempotent=false, destructive=false; the description adds far more: it leaves the screen on the last page (state side effect), dedupes rows on (kind, identifier, label, value) so look-alike unlabeled rows may collapse, complete=true only when end_label is seen, duplicate_page is not proof of the end, and swipes_uncertain results must never be replayed. These are exactly the non-obvious behavioral traits an agent cannot get from the annotations.

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?

It is front-loaded with the core action and termination logic, and nearly every clause carries operational meaning. It is a dense single block with compressed notation ('swipes_uncertain: never replay', 'duplicate_page') that is terse but slightly opaque on first read.

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?

With no output schema and seven parameters, the description does the heavy lifting on results semantics (complete, duplicate_page, swipes_uncertain) and side effects, which are the risky parts. It stops short of describing the returned row structure (fields per row, ordering), leaving that to be discovered at call time.

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?

Schema coverage is 100%, so the baseline is 3, but the description still adds meaning: the dedupe key combining kind/identifier/label/value, the warning that rows without identifiers may collapse (affecting how the agent should reconcile counts), and how end_label gates the complete flag. It does not further explain snapshot or instance beyond what the schema already says.

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 opens with a specific verb+resource+scope: 'Read a scrolling list across pages in ONE call', and clarifies row granularity (one kind, default Cell) plus the termination conditions. It doesn't name a sibling such as phone_screen or phone_elements as the alternative, so differentiation is implicit ('ONE call' versus piecemeal reads) rather than explicit.

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?

Usage context is implied: this is the tool for paging through a long list, and 'swipes_uncertain: never replay' is a concrete do-not-do constraint. However, it never states when to prefer this over a single-screen read, nor any prerequisites (e.g. that the list must already be foregrounded), so the agent must infer the selection rules.

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