Skip to main content
Glama

get_logs

Retrieve and filter console logs from React Native apps via Metro bundler. Use summary mode for quick overviews or fetch specific logs for debugging.

Instructions

Retrieve console logs from connected React Native app. Tip: Use summary=true first for a quick overview (counts by level + last 5 messages), then fetch specific logs as needed.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
maxLogsNoMaximum number of logs to return (default: 50)
levelNoFilter by log level (default: all)all
startFromTextNoStart from the first log line containing this text
maxMessageLengthNoMax characters per message (default: 500, set to 0 for unlimited). Tip: Use lower values for overview, higher when debugging specific data structures.
verboseNoDisable all truncation and return full messages. Tip: Use with lower maxLogs (e.g., 10) to avoid token overload when inspecting large objects.
formatNoOutput format: 'text' or 'tonl' (default, compact token-optimized format, ~30-50% smaller)tonl
summaryNoReturn summary statistics instead of full logs (count by level + last 5 messages). Use for quick overview.

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/igorzheludkov/metro-logs-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server