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

react-native-devtools-mcp

get_device_logs

Retrieve recent console logs from an iOS simulator or Android emulator to diagnose app issues, with optional regex filtering and a configurable lookback window.

Instructions

Capture recent device console logs from the simulator/emulator

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_device_logs"
  }
}

Input Schema

NameRequiredDescriptionDefault
filterNoRegex pattern to filter log lines
durationNoHow many seconds back to look (default: 30)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations supplied, the description carries the full burden and does not say whether the call is read-only, whether it clears or consumes the log buffer, whether it blocks or streams, or what preconditions apply (e.g., simulator must be running). 'Recent' hints at a time window but the snapshot-vs-stream semantics of 'capture' are ambiguous.

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?

A single front-loaded sentence with no filler; the resource and scope land immediately. It is efficient but so terse that nothing beyond the headline purpose is communicated.

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

Completeness2/5

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

Though the tool is simple with only two optional parameters and full schema coverage, the absence of annotations and an output schema means the description should explain what comes back (log lines, format, truncation) and whether the simulator must be active — neither is covered. It also does not differentiate itself from get_js_logs, leaving a real risk of wrong tool selection.

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 filter and duration are already documented with their defaults, making 3 the baseline. The description adds only the loose notion of 'recent', which reinforces duration but gives no new detail on regex syntax or duration bounds.

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') and resource ('device console logs') plus the environment ('simulator/emulator'), so the agent knows exactly what it retrieves. It never names the closely related sibling get_js_logs, so the distinction between device console logs and JS logs is left to inference.

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

Usage Guidelines2/5

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

No when-to-use or when-not-to-use guidance appears; nothing tells the agent to prefer this over get_js_logs for log inspection or to use get_device_info for device state. The only implicit cue is 'recent', which loosely maps to the duration parameter.

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