Skip to main content
Glama

Rake

Decode a Zephyr fatal error

decode_zephyr_fatal
Read-onlyIdempotent

Reads the text Zephyr prints on a fatal error and returns the fault, the thread, the faulting address, what to check and the command that resolves the address. Use it when the console shows "ZEPHYR FATAL ERROR", a fault block such as "***** BUS FAULT *****" or "ASSERTION FAIL". The fault detail lines it reads are those of the Arm Cortex-M port. 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_zephyr_fatal"
  }
}

Input Schema

NameRequiredDescriptionDefault
logYesThe console output of the fatal error, as printed, from the fault lines to "Halting system".

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive, and closed-world, so safety is covered. The description adds real value beyond that: it lists the return payload's fields and discloses two limits, that only Arm Cortex-M fault detail lines are interpreted and that no symbolization is performed. It does not say what happens when the input does not parse as a fatal error, but overall it adds substantive context.

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 sentences, each with a distinct job in a sensible order: what it returns, when to invoke it, and what it will not do. There is no filler, and the trigger strings are quoted precisely so they can be matched against console output.

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, so the description must convey the return shape, and it does by enumerating the decoded fields and the resolution command. Combined with the annotations and the fully documented single parameter, an agent has everything needed to call it correctly and to interpret the result.

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?

There is a single parameter and its schema description is complete (coverage 100%), including the range hint of reading from the fault lines to "Halting system". The prose reinforces what the input is but adds no detail beyond the schema, such as tolerance for partial captures or truncated output. Baseline 3 is appropriate when the schema carries the parameter semantics.

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?

Sentence one gives a specific verb (reads/decodes) and resource (the text Zephyr prints on a fatal error) and enumerates the outputs: fault, thread, faulting address, what to check, and the resolving command. It also scopes itself to the Arm Cortex-M port's fault detail lines, which implicitly separates it from a generic Cortex-M fault decoder. It stops short of naming the sibling decode_cortex_m_fault or decode_riscv_trap, so sibling routing is inferred 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 Guidelines4/5

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

Explicit positive triggers are given with literal strings to look for ("ZEPHYR FATAL ERROR", "***** BUS FAULT *****", "ASSERTION FAIL"), which is strong when-to-use guidance. It also states a when-not boundary, that address-to-source-line resolution requires the ELF file and is out of scope. The only gap is that it does not point to any alternative tool when the log is from a non-Cortex-M port.

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