Skip to main content
Glama

Rake

Decode an ESP-IDF panic

decode_esp_panic
Read-onlyIdempotent

Reads the text an ESP32-family chip prints when ESP-IDF panics and returns the cause, what it means, what to check and the addresses to resolve. Use it when the serial output shows a Guru Meditation Error, an abort(), a task watchdog or interrupt watchdog timeout, a stack overflow or a brown-out. It handles the Xtensa chips and the RISC-V chips. It does not turn addresses into source lines: that needs the ELF file.

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": {
      "log": "<log>"
    },
    "name": "decode_esp_panic"
  }
}

Input Schema

NameRequiredDescriptionDefault
logYesThe serial output around the failure, as printed. Include the register dump and the backtrace where the output has them.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive, closed-world), and the description adds real value on top: it discloses the output shape (cause, explanation, checks, addresses) and a genuine capability limit around ELF symbolization. It does not discuss failure modes such as malformed or truncated logs, so it is not fully exhaustive.

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?

Three short sentences, front-loaded with the verb and return value, followed by trigger conditions and then the one limitation. No filler and no repetition of the title.

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?

No output schema exists, and the description compensates by naming the returned fields. Combined with the chip-family coverage and the explicit ELF limitation, an agent has everything needed to decide to call it and what to pass.

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?

With a single parameter at 100% schema description coverage, the schema already explains the log field and instructs the caller to include the register dump and backtrace. The description adds essentially no syntax or formatting guidance beyond that, so the baseline of 3 applies.

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?

States a concrete verb and resource (reads ESP-IDF panic text from an ESP32-family chip) and enumerates what it returns: cause, meaning, what to check, and addresses to resolve. It also draws a hard scope boundary against symbolization ("does not turn addresses into source lines: that needs the ELF file"), so an agent can tell it apart from the fault/trap decoders in the sibling list.

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?

Gives explicit trigger conditions — Guru Meditation Error, abort(), task watchdog or interrupt watchdog timeout, stack overflow, brown-out — which is stronger than most definitions. It stops short of naming an alternative tool when the caller actually needs ELF-based symbolization, only stating the requirement, so routing to the correct sibling is left implicit.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources