Skip to main content
Glama

logging

Capture STM32 firmware logs over RTT, SWO, or UART; start, stop, read, or clear log sessions to inspect runtime output during debugging.

Instructions

Firmware log capture over a channel. action=start(channel[,port,baudrate,command,args,file,timeout]) | stop(channel) | get(channel[,limit,since_index,clear]) | clear(channel). channel=rtt|swo|uart; uart takes port/baudrate, rtt/swo take command/args or file.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
argsNortt/swo: command arguments.
fileNoswo: tail OpenOCD's ITM decode file (run setup_swo first) — no external decoder needed.
portNouart: serial port, e.g. COM3 or /dev/ttyUSB0.
clearNoClear returned entries after reading.
limitNoMax recent entries to return.
actionYesWhich operation to perform.
channelNoLog channel.
commandNortt/swo: executable to launch (rtt defaults to JLinkRTTClient).
sessionNoOptional debug-session name. Omit for the default target.
timeoutNouart: read timeout seconds (default 0.1).
baudrateNouart: baudrate (default 115200).
since_indexNoOnly entries with index greater than this.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.15.1

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, idempotentHint=false, so the safety profile is partly covered. The description adds the channel-to-parameter mapping, but says nothing about whether start blocks, whether logs persist across sessions, what get returns, or that clear discards buffered entries — all relevant for a stateful multi-action tool.

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 dense line that front-loads the purpose, then presents actions and the channel/parameter rules compactly with no filler. Every clause carries information; nothing is redundant with surrounding prose.

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?

With 12 parameters, four mutating/side-effecting actions, and no output schema, the definition should say more about what get returns (entries with indices, per since_index) and what clear/stop do to ongoing capture. It covers the invocation surface but leaves the result and state-management behavior to inference.

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 the baseline is 3. The description's channel-conditioned parameter grouping (port/baudrate for uart, command/args/file for rtt/swo) largely echoes what the schema property descriptions already say, adding little beyond orientation.

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?

The description states a concrete verb and resource ('Firmware log capture over a channel') and then enumerates the four operations with their argument shapes, so an agent immediately knows this is a log-capture tool rather than a config or state tool. It does not explicitly contrast itself with nearby siblings such as setup_swo or capture_state, which keeps it from a 5.

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?

The action grammar (start/stop/get/clear) implies the lifecycle, and the note that rtt/swo take command/args or file while uart takes port/baudrate hints at channel-dependent usage. However, there is no explicit statement of when to choose this tool over setup_swo, capture_state, or session_diagnostics, nor any prerequisites or exclusions.

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