Skip to main content
Glama

native-profiler-stop

Stops a running native profiling session and saves the trace as a downloadable artifact, exporting iOS CPU, hang, and leak XML or Android Perfetto .pftrace for debugging.

Instructions

End a native profiling session started by native-profiler-start and save the trace as a downloadable artifact. On iOS, export CPU, hangs, and leaks XML from Instruments. Check warning and exportDiagnostics for partial or skipped exports. On Android, save the Perfetto .pftrace.

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": {
      "device_id": "<device_id>"
    },
    "name": "native-profiler-stop"
  }
}

Input Schema

NameRequiredDescriptionDefault
device_idYesTarget device id from `list-devices` (iOS UDID or Android serial).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.22.0
    • addedInput schema / properties / device_id / minLength
      Added value: +1
  2. First observedv0.15.0

TDQS

A4.2/5.0
Behavior4/5

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

No annotations exist, so the description carries the full burden and does a good job: it discloses that the session is ended, that the trace becomes a downloadable artifact, and that iOS export can be partial or skipped and should be verified via warning/exportDiagnostics. It omits whether calling with no active session errors and whether the session state is cleaned up, which are the remaining behavioral gaps.

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?

Three compact sentences with the core action front-loaded, followed by per-platform output detail and a verification note. Every sentence carries distinct information with no repetition of the schema or title.

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 annotations and no output schema, the description must supply the result semantics, and it does by naming the artifact, the iOS XML exports, the Android .pftrace file, and the warning/exportDiagnostics fields to inspect. Missing only error/edge-case behavior for ending a session that was never started.

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?

There is a single parameter with 100% schema description coverage, so the schema already explains that device_id is an iOS UDID or Android serial from list-devices. The description adds platform context (iOS vs Android export behavior) but no new meaning about the parameter itself, so the baseline of 3 applies.

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 (end a native profiling session, save the trace as a downloadable artifact) and ties it explicitly to the sibling that starts it (native-profiler-start), which separates it from react-profiler-stop. Platform-specific outputs are named, so an agent knows exactly what the tool produces.

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?

The description clearly establishes the call context: it terminates a session created by native-profiler-start, which implies use must follow a start. It does not state exclusions (e.g. what happens if no session is active, or how it relates to native-profiler-analyze), so it stops short of full when/when-not guidance.

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