Skip to main content
Glama
react-native-devtools-mcp

react-native-devtools-mcp

get_js_logs

Capture JavaScript console logs (log/warn/error) from a running React Native app via Metro CDP, with optional level, regex, and duration filters for debugging.

Instructions

Capture JavaScript console output (console.log/warn/error) from the running React Native app via Metro CDP

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_js_logs"
  }
}

Input Schema

NameRequiredDescriptionDefault
levelNoFilter by log level (default: all)
filterNoRegex pattern to filter log entries
durationNoSeconds to listen for logs (default: 5, max: 30)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A3.5/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 burden. It does disclose the mechanism (Metro CDP) and that the app must be running, which is real behavioral context, but it omits that the call presumably blocks for the listening duration, what happens if Metro/the app isn't attached, and whether output is truncated or sampled.

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?

A single tight sentence with the resource front-loaded and the transport qualifier at the end; no redundant restatement of the name or title, and nothing that could be cut.

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?

There is no output schema, so the description should say what a returned log entry looks like (level, message, timestamp) and whether results are streamed or returned in one batch. For a simple 3-optional-parameter tool this is a moderate rather than severe gap.

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 coverage is 100% and every parameter (level enum, filter regex, duration with default and max) is already documented in the schema. The description adds no extra meaning about how these filters combine or how duration interacts with blocking behavior, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (capture) plus resource (JavaScript console output) and names the three levels it collects, and specifies the transport (Metro CDP) so an agent can tell it apart from device-level logging. It never explicitly names get_device_logs as the contrasting sibling, so the differentiation is inferable rather than stated.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied by the phrase 'from the running React Native app', which suggests when the tool applies, but there is no explicit when-to-use guidance, no mention of when to prefer device logs or js_eval instead, and no stated prerequisites or failure conditions.

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