Skip to main content
Glama

react-profiler-start

Initiates CPU profiling and React commit capture on a Hermes runtime. Manages session ownership conflicts, returning status or allowing forced takeover.

Instructions

Start CPU profiling + React commit capture on the connected Hermes runtime. Delegates React commit capture to the in-app React DevTools backend (ri.startProfiling). If another tool-server already owns the session, returns { already_running: true, owner, stale, how_to_reclaim } without clobbering their data. Pass { force: true } to reclaim a fresh owner's session, but BEFORE OVERTAKING - ask the user for approval first, see relevant skill for guidance. Before calling this, ask the user if they also want native profiling (native-profiler-start) — recommend running both in parallel for a complete picture. After starting, ask the user to perform the interaction to profile, then call react-profiler-stop. Returns { started_at, startedAtEpochMs, hermes_version, detected_architecture } on success, or the already_running payload described above. Fails if the Hermes runtime is not reachable or the Metro CDP connection cannot be established.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
portNoMetro server port
forceNoTake over an active profiling session even when it is owned by another tool-server and still fresh. Set to true only when you know the prior owner is gone.
device_idYesDevice logicalDeviceId from debugger-connect (iOS simulator UDID or Android logicalDeviceId).
sample_interval_usNoCPU sampling interval in microseconds (default 100)
Behavior4/5

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

No annotations provided, so description carries full burden. Discloses already_running behavior, failure conditions (Hermes unreachable, Metro CDP connection fails), and that force reclaims session. Slightly lacking on potential side effects like resource consumption, but sufficient.

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?

Description is thorough and front-loaded with main action. Slightly verbose but each sentence adds value. Could be tightened, but no redundant information.

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?

No output schema, but description explains return values (success payload, already_running payload, failure conditions). Covers all necessary context for an agent to invoke correctly, including temporal flow and references to sibling tools.

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?

Schema description coverage is 100%, baseline 3. Description does not add significant new parameter semantics beyond what schema already provides (e.g., device_id, force usage is mentioned but not new).

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?

Clearly states 'Start CPU profiling + React commit capture on the connected Hermes runtime.' Specifies verb and resource, distinguishes from sibling tools like native-profiler-start by mentioning React commit capture.

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?

Provides explicit guidance: ask user about native profiling, recommend running both, call react-profiler-stop after interaction, and how to handle already_running sessions with force parameter. Includes clear instructions before taking action.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/software-mansion/argent'

If you have feedback or need assistance with the MCP directory API, please join our Discord server