Skip to main content
Glama

phone_metrics

Read-only

Read task performance aggregates for iPhone automation runs, including HTTP-call counts, batch/flow usage, stale/unknown outcomes, losses, and p50/p95 latency; read-only with recent run limits.

Instructions

Task performance aggregates for this client's X-Phone-Owner on the selected instance: HTTP-call counts, batch/flow usage, stale/unknown outcomes, losses, p50/p95 latency. HTTP calls are not model turns or tokens; model_round_trips stays null without a complete declared trace. Read-only: no connection, runner launch or lease — never reconnect for metrics. Default the latest 5 open and recent runs, max 20 per section, 12 KiB row budget; omitted counts and truncation are explicit.

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

Input Schema

NameRequiredDescriptionDefault
limitNoLatest runs per section (open/recent), default 5, maximum 20. A shared 12 KiB row budget can reduce the number returned further.
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_metrics`]."
  2. Changed4 schema fields changedv0.29.0
    • removedInput schema / additionalProperties
      Removed value: -false
    • 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 / limit / default
      Removed value: -null
    • changedInput schema / properties / limit / type
      Previous value: -[
      -  "integer",
      -  "null"
      -]New value: +"integer"
  3. Addedv0.27.7

TDQS

A4/5.0
Behavior4/5

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

Beyond readOnlyHint/openWorldHint it discloses real behavior: it never opens a connection or launches a runner, model_round_trips stays null without a complete declared trace, results default to 5 and cap at 20 per section, a shared 12 KiB row budget applies, and omissions/truncation are surfaced explicitly. This is substantial context an agent cannot get from the annotations. Missing permission/auth notes and any indication of cost or latency for the call itself.

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?

Dense and front-loaded: the aggregate list comes first, then semantic caveats, then the read-only constraint, then defaults and budgets. Every clause carries information, but the telegraphic phrasing ('HTTP-call counts, batch/flow usage, stale/unknown outcomes, losses') is compressed to the point that some terms are left undefined.

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, the description carries the burden of describing returns and does so by enumerating the metric families and the deliberate nulls (model_round_trips). Defaults, caps and truncation behavior are all covered. Remaining gaps are definitional — what 'stale/unknown' and 'losses' mean numerically — rather than operational.

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 adds meaning the schema leaves ambiguous: it defines what a 'section' is (open and recent runs), confirms the default of 5 and the 20 cap, and explains that the 12 KiB row budget can further shrink results and that truncation is reported. It adds no guidance on valid instance names, but that is a minor gap.

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?

States a specific resource and scope: task performance aggregates (HTTP-call counts, batch/flow usage, stale/unknown outcomes, losses, p50/p95 latency) for the owner on a selected instance. It is clearly not a log/trace dump like the sibling phone_logs or phone_run_trace, and explicitly says HTTP calls are not model turns or tokens. It stops short of naming a sibling to use instead, so it does not reach 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 Guidelines4/5

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

Gives clear operating context and one explicit exclusion: read-only, no connection, runner launch or lease — never reconnect for metrics, which steers an agent away from phone_reconnect/phone_run_start for this purpose. It also implies the default scope (latest 5 open and recent runs). There is no explicit statement of when a different metrics/log tool would be better, so it falls short of full alternative routing.

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