Skip to main content
Glama

profiler-commit-query

Query React commit data by component, time range, index, or cascade tree to investigate render performance. Use after profiling to identify what caused each render and which parent triggered it.

Instructions

Query React commit data for iterative investigation of render performance. Requires react-profiler-stop to have been called first. Modes:

  • by_component: All commits where a specific component rendered, with causes and durations.

  • by_time_range: What happened in a specific time window.

  • by_index: Full detail dump of a single commit (all components, props changed, parent cascade).

  • cascade_tree: Parent-child cascade tree for a commit showing who triggered whom. Use when drilling into specific components or time windows after react-profiler-analyze. Returns a markdown table or tree of commit data matching the requested mode. Fails if react-profiler-stop has not been called or no commit data is stored.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeYesQuery mode: by_component (commits for a component), by_time_range (commits in a window), by_index (full detail for one commit), cascade_tree (parent-child cascade for a commit)
portNoMetro server port
top_nNoMax results to return. Defaults to 20 for by_component / by_time_range, which count commits. by_index counts individual fibers and returns all of them unless this is set, because one commit's fibers collapse to far fewer distinct components — a small cap there can show less than the analyze report it is meant to expand on.
device_idYesDevice logicalDeviceId from debugger-connect (iOS simulator UDID or Android logicalDeviceId).
commit_indexNoCommit index for by_index and cascade_tree modes
time_range_msNoTime range filter for by_time_range mode
component_nameNoComponent name for by_component mode

Schema Changelog

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

  1. Changed5 schema fields changedv0.22.0
    • addedInput schema / properties / device_id / minLength
      Added value: +1
    • changedInput schema / properties / time_range_ms / properties / end / description
      Previous value: -"End of range in ms (performance.now clock)"New value: +"End of range in ms since profiling started — the same clock profiler-commit-query prints"
    • changedInput schema / properties / time_range_ms / properties / start / description
      Previous value: -"Start of range in ms (performance.now clock)"New value: +"Start of range in ms since profiling started — the same clock profiler-commit-query prints"
    • removedInput schema / properties / top_n / default
      Removed value: -20
    • changedInput schema / properties / top_n / description
      Previous value: -"Max results to return (default 20)"New value: +"Max results to return. Defaults to 20 for by_component / by_time_range, which count commits. by_index counts individual fibers and returns all of them unless this is set, because one commit's fibers collapse to far fewer distinct components — a small cap there can show less than the analyze report it is meant to expand on."
  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 burden of behavioral disclosure, and it does well: it explains the four query modes, states that output is a markdown table or tree, and discloses failure conditions ('Fails if react-profiler-stop has not been called or no commit data is stored'). It does not explicitly state that the tool is read-only, but 'Query' and the output/return framing imply no mutation.

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 concise and well-structured: a one-sentence purpose, a required precondition, a compact mode list, a use-case pointer, an output summary, and a failure condition. Every sentence contributes useful information without repetition or filler.

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?

Given the tool's complexity (7 parameters, nested time_range object, 4 modes, no output schema), the description provides a complete picture: purpose, preconditions, mode semantics, return type, and failure modes. It complements the 100% schema coverage well and leaves no major operational gap.

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 description coverage is 100%, so the baseline is 3. The description adds meaningful semantic value beyond the schema by explaining each mode's behavior and result shape, e.g., 'by_component: All commits where a specific component rendered, with causes and durations.' It also clarifies the mode-specific meaning of top_n through the schema description, which is reinforced conceptually by the mode list.

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: 'Query React commit data for iterative investigation of render performance.' It clearly distinguishes the tool from siblings by focusing on commit-level query modes (by_component, by_time_range, by_index, cascade_tree) and explicitly frames it as follow-up drilling after react-profiler-analyze.

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 gives clear usage context: 'Requires react-profiler-stop to have been called first' and 'Use when drilling into specific components or time windows after react-profiler-analyze.' It also states failure conditions. It lacks an explicit excluded-alternative statement, but the context is sufficiently clear to guide tool selection.

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