Skip to main content
Glama

profiler-load

Restore a previously captured profiling session from disk into memory for query tools. List available sessions or load React/native profiler data without recapturing.

Instructions

Fetch and restore a previously captured profiling session from disk into memory so query tools can operate on it. This is the disk-restore counterpart to react-profiler-stop/native-profiler-stop, which write data, and to the query tools (profiler-cpu-query, profiler-commit-query, profiler-stack-query), which read it. Use when you need to revisit past session data without capturing a new recording. Modes:

  • list: Show all available profiling sessions in the project's debug directory.

  • load_react: Load a React profiler session (CPU profile + commit tree) into memory. Requires session_id.

  • load_native: Re-parse native profiler XML files into memory. Requires session_id and device_id. For Android .pftrace restores, pass app_process for older sessions that do not have a metadata sidecar. Returns a summary of the loaded session or a session list for the list mode. Fails if the session_id is not found or required XML files are missing from disk.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeYeslist: show available sessions on disk. load_react: load a React profiler session into memory for query tools. load_native: re-parse native profiler XML files (xctrace on iOS) into memory for query tools.
portNoMetro port — the loaded React data is cached under this port for query tools (default 8081)
device_idYesTarget device id from `list-devices`. Used to cache the loaded React session under the correct port+device key, and required to resolve the native profiler session for load_native.
session_idNoTimestamp-based session identifier (e.g. '20250313-143022') from the list output. Required for load_react and load_native modes.
app_processNoAndroid package name to use when restoring older load_native .pftrace sessions that do not have a metadata sidecar.

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

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

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It covers the core disk-to-memory restore behavior, return types for each mode, failure cases when data is missing, and the special app_process handling for older Android sessions. It stops short of specifying what happens to previously loaded sessions or cache keys, but the main operational behavior is clearly conveyed.

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?

The description is well-structured and front-loaded: the main purpose is stated first, followed by differentiation, usage guidance, a scannable mode list, and failure conditions. Each sentence contributes operational or decision-making value without unnecessary repetition.

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 tool with five parameters, three modes, no output schema, and no annotations, the description is sufficiently complete. It explains what the tool does, when to use it, what each mode does, what inputs are required for each mode, what it returns, and when it fails. This gives the agent enough context to select and invoke the tool correctly.

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%, so the baseline is 3 even with no extra parameter semantics in the description. The description does add some mode-level context around session_id, device_id, and app_process, but most parameter meaning is already fully captured in the input schema. It does not significantly go beyond the schema.

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?

The description opens with a specific verb and resource: 'Fetch and restore a previously captured profiling session from disk into memory.' It clearly distinguishes itself from sibling tools by naming the write-side tools (react-profiler-stop/native-profiler-stop) and the read-side query tools (profiler-cpu-query, profiler-commit-query, profiler-stack-query), and by listing its three modes.

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?

Explicitly states when to use the tool: 'Use when you need to revisit past session data without capturing a new recording.' It also provides mode-specific prerequisites (session_id for load_react/load_native, device_id for load_native, app_process for older Android sessions) and describes failure conditions, giving the agent clear decision guidance versus alternatives.

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

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