Skip to main content
Glama

iph_syslog

Capture an iPhone's system log in the background while automating app actions, then read new entries incrementally to verify what an app logged after a tap.

Instructions

Capture the phone's log in the background while other calls run, to check what an app logged after a tap. "start" (one capture at a time; stop an ended one before starting again) keeps the entries in a buffer in memory, newest last, each with a seq; "read" returns the entries newer than after (the cursor of the previous read) without stopping the capture, so the loop is start, tap, read, tap, read, stop; "stop" ends it (with grep or max it returns the latest matching entries); "status". Filter with app (bundle id or name, as iph_launch takes it; matched by where the app is installed, so it survives restarts and includes its extensions), process (executable names such as Preferences; survives app restarts) or pid; an entry is kept if it is from any listed app or process; unfiltered over Wi-Fi it is thousands of entries a second, and the buffer keeps the last 100,000 entries by default. A read says how many entries were dropped before it could get them.

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": {
      "action": "<action>"
    },
    "name": "iph_syslog"
  }
}

Input Schema

NameRequiredDescriptionDefault
appNostart: keep only these apps' entries, each a bundle id or an app name; an unknown app fails before anything starts.
maxNoread: most entries returned, the oldest first. stop: most entries returned, the latest. Default 50, at most 1000.
pidNostart: keep only this pid (filtered on the phone).
grepNoread, stop: regular expression matched against each message.
afterNoread: only entries after this seq; pass the previous read's cursor. Omit for the oldest the buffer holds.
levelNostart: lowest level kept.
actionYes
max_mbNostart, with output: move the file to <file>.1 at this size in MiB, 1 to 4096 (default 64).
outputNostart: absolute path of a JSON Lines file that also gets every kept entry (whole messages). Without it nothing is written to disk.
processNostart: keep only these executables. With app, an entry is kept if it matches either.
buffer_mbNostart: most memory the buffer takes in MiB, 1 to 1024 (default 64).
buffer_entriesNostart: most entries the buffer holds, 1 to 1000000 (default 100000); the oldest are dropped.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.1.9

TDQS

A4.9/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so: background capture, in-memory buffer with newest-last ordering and seq numbers, one-capture-at-a-time exclusivity, keep-last-100,000 default with oldest dropped, the volume warning ('thousands of entries a second' unfiltered over Wi-Fi), on-disk JSON Lines with rotation to <file>.1, and dropped-count reporting on reads. This is deep behavioral context beyond anything structured.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Every clause carries load — purpose is front-loaded, then the action lifecycle, then filters, then volume/buffer caveats — and no sentence merely repeats the schema. The semicolon chains are dense but read as deliberate compression, not padding.

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 12-parameter, no-annotation, no-output-schema tool, the definition covers the modalities an agent actually needs: how to start, how to page, how to terminate, how filtering works, and what the read response conveys (seq, cursor, dropped). Nothing essential to correct invocation is missing.

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 92%, so baseline is 3, but the prose adds real meaning: filters are matched by installation identity so they survive app restarts and include extensions, app and process combine as OR, and `after` is the cursor from the prior read. It stops short of clarifying pairs like buffer_mb vs buffer_entries interaction or when output should be preferred over in-memory reads.

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 ('capture the phone's log in the background') and immediately frames scope versus sibling capabilities ('while other calls run', filter semantics 'as iph_launch takes it'). The four action values are enumerated with their individual meanings, so the agent knows exactly what the tool does without opening the 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 operating loop ('start, tap, read, tap, read, stop') plus the key constraint 'one capture at a time; stop an ended one before starting again'. It also states when 'stop' is the right read path ('with grep or max it returns the latest matching entries'), so action selection is unambiguous.

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