Skip to main content
Glama

Rendertrail: inspect render

inspect_render

Records how a React component renders during interactions and identifies the main performance problem, its cost, and the line to change; rerun with a baseline to verify a fix.

Instructions

Record how a React component renders while someone interacts with it, and explain the main performance problem. Use it when a React UI feels slow or re-renders too often. Pass only the files needed to render the component (replace data fetching with static data), the file to mount, and a short interaction, such as typing into an input. Returns the main problem, what it costs and the line to change. To check a fix, call it again with the changed files and baselineRunId.

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": {
      "files": "<files>",
      "entry": "<entry>",
      "steps": "<steps>"
    },
    "name": "inspect_render"
  }
}

Input Schema

NameRequiredDescriptionDefault
entryYes
filesYes
propsNo
stepsYes
exportNameNodefault
baselineRunIdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.0

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It usefully hints at the execution environment by telling the caller to 'replace data fetching with static data', which implies the component is executed in isolation, and it describes the output shape. It does not say whether code runs sandboxed, whether anything persists between runs, what the limits are (the schema's 30-file/20-step caps go unmentioned), or that only the single 'main' problem is reported.

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?

Four sentences, front-loaded with purpose, then inputs, then return value, then the baseline follow-up. Nearly every clause earns its place; the parenthetical about static data is compact and load-bearing rather than filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Absent an output schema, the description correctly spends words on return values, and it covers the core call flow. But for a tool with nested objects, a polymorphic step union, and zero schema-level parameter documentation, leaving `props`, `exportName`, and the step action vocabulary unexplained is a real gap for an agent composing a valid call.

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 0% across six parameters, including nested file objects and a three-way `oneOf` step union, so the description must compensate. It does map meaning onto four of them — `files` ('only the files needed to render the component'), `entry` ('the file to mount'), `steps` ('a short interaction, such as typing into an input'), and `baselineRunId` ('the changed files and `baselineRunId`'). `props` and `exportName` are never mentioned, and the step actions (click, wait, target, delayMs) are left entirely to 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 pair and resource: 'Record how a React component renders while someone interacts with it, and explain the main performance problem.' It goes further to state the return payload ('the main problem, what it costs and the line to change'), so an agent knows both the action and the deliverable without opening the schema.

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?

It gives an explicit trigger ('when a React UI feels slow or re-renders too often') and a concrete iteration workflow ('To check a fix, call it again with the changed files and `baselineRunId`'). What is missing is any exclusion — cases where this tool is the wrong choice, e.g. non-React code or problems not visible in a single interaction.

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

Deploy Server

Other Tools