Skip to main content
Glama

phone_logs

Capture and read a paired phone’s live system log to debug apps: start capture, reproduce the issue, then read filtered lines by process, text, level, and cursor; stop or clear when done.

Instructions

Capture and read the paired phone's live system log for app debugging (phone_crashes for saved crash reports). action: start, then reproduce, then read (default; filters process/contains/level, pass the returned next as since); stop releases the relay, clear drops the buffer. Connection/auth failures are errors, not an empty log. Capture stops itself after 15 min without reads. Lines: #seq time process[pid] level: message. Logs may hold private data: collect only what the task needs.

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_logs"
  }
}

Input Schema

NameRequiredDescriptionDefault
levelNoread: this level or more severe: debug, info, notice, error, fault.
limitNoread: at most this many lines (default 50).
sinceNoread: lines after this cursor — the previous read's `next`.
actionNo`start` capturing the phone's system log, `read` (default) what was captured, `stop`, or `clear` the buffer. Capture stops by itself when nobody reads for a while.
processNoread: only this process (exact name, case-insensitive).
containsNoread: only messages containing this text (case-insensitive).
instanceNodaemon instance name

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.29.2
    • removedInput schema / description
      Removed value: -"Parameters for [`PhoneHandler::phone_logs`]."
  2. Changed14 schema fields changedv0.29.0
    • removedInput schema / additionalProperties
      Removed value: -false
    • removedInput schema / properties / action / default
      Removed value: -null
    • changedInput schema / properties / action / type
      Previous value: -[
      -  "string",
      -  "null"
      -]New value: +"string"
    • removedInput schema / properties / contains / default
      Removed value: -null
    • changedInput schema / properties / contains / 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"
    • removedInput schema / properties / level / default
      Removed value: -null
    • changedInput schema / properties / level / type
      Previous value: -[
      -  "string",
      -  "null"
      -]New value: +"string"
    • removedInput schema / properties / limit / default
      Removed value: -null
    • changedInput schema / properties / limit / type
      Previous value: -[
      -  "integer",
      -  "null"
      -]New value: +"integer"
    • removedInput schema / properties / process / default
      Removed value: -null
    • changedInput schema / properties / process / type
      Previous value: -[
      -  "string",
      -  "null"
      -]New value: +"string"
    • removedInput schema / properties / since / default
      Removed value: -null
    • changedInput schema / properties / since / type
      Previous value: -[
      -  "integer",
      -  "null"
      -]New value: +"integer"
  3. Changed2 schema fields changedv0.27.34
    • addedInput schema / properties / limit / minimum
      Added value: +0
    • addedInput schema / properties / since / 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.8/5.0
Behavior5/5

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

Goes well beyond the annotations (which only say non-read-only, open-world, non-idempotent, non-destructive): discloses the 15-minute idle auto-stop, that connection/auth failures surface as errors rather than an empty log, that stop releases the relay while clear drops the buffer, the exact line layout, and a privacy caution. These are the exact behavioral traits an agent needs before starting a capture.

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?

Front-loaded with purpose and sibling disambiguation, then the action workflow, then behavioral caveats and the privacy note in a sensible escalation. The telegraphic compression (e.g. 'stop releases the relay') is efficient but edges toward cryptic for a first-time reader.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 7-parameter tool with no output schema, the description compensates fully: it defines the return line format, the cursor/pagination loop, idle-timeout behavior, and error-vs-empty-log semantics. Nothing essential to calling or interpreting this tool is left unstated.

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; the description still adds meaning by specifying the read-filter set (process/contains/level) and, crucially, the cursor contract 'pass the returned next as since', which links a return value to an input parameter that the schema does not explain. It does not, however, clarify 'instance' or the limit default beyond what the schema already says.

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+resource combination ('Capture and read the paired phone's live system log') and immediately demarcates scope with 'for app debugging' plus the sibling it is not ('phone_crashes for saved crash reports'). An agent can distinguish this from every listed sibling without opening a schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit ordered workflow ('start, then reproduce, then read') and names the alternative resource for a different need (saved crash reports). It also documents the default action and the stop/clear alternatives with their distinct semantics, so the when-to-use and when-not-to-use decisions are both covered.

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