Skip to main content
Glama

Decode a capture

decode_capture
Read-only

Decode a ready logic capture of the session (browser or bench). protocol "uart" with channels {rx} and options {baud (300-1000000, 9600), bits (5-9, 8), parity (none, even, odd), stop (1, 2), invert (false)}; "spi" with {sck, mosi?, miso?, cs?} (one data pin at least) and options {mode (0-3, 0), bit_order (msb, lsb), bits (8)}; "i2c" with {scl, sda}. channels are pins of the capture. Returns {capture, protocol, frames, next, problems}, 2000 frames from offset. uart frames {t_us, value, error?} (framing, parity) and text, the printable bytes of the page; spi {t_us, mosi?, miso?} per word, while cs is low when given; i2c {t_us, kind (start, restart, address, data, stop), value?, rw?, ack?}. problems: what makes the decoding doubtful.

Input Schema

NameRequiredDescriptionDefault
offsetNo
captureYes
optionsNo
sessionNo
channelsYes
protocolYes
agent_tokenNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly/non-destructive/closed-world, and the description adds real behavior beyond them: per-protocol option defaults and ranges, a 2000-frame pagination limit via offset, error flags on UART frames, and a 'problems' field for doubtful decoding. It omits auth/session prerequisites, which is the remaining gap.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose is front-loaded in the first clause, and nearly every clause carries payload. But it is a dense run-on of semicolon-separated fragments with inline JSON-ish notation that is hard to scan for a fast-moving agent.

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

Completeness4/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 documenting the return envelope and per-protocol frame shapes (t_us, value, error, cs-low framing, i2c start/restart/ack). The missing pieces are session/agent_token semantics and confirmation of the capture identifier format.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, so the description carries the burden, and it does so well: it enumerates every channel pin set per protocol, the full options vocabulary with defaults (baud 9600, bits 8, parity none, mode 0, bit_order), and explains offset through the 2000-frame window. It never explains 'session' or 'agent_token', leaving two of seven params undocumented.

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 and resource ('Decode a ready logic capture of the session') plus scope (browser or bench). It does not name the sibling it differs from (read_capture, capture_logic), so the agent must infer which one produces vs consumes a capture.

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 phrase 'ready ... capture' implies a precondition, but the description never says when to use this versus read_capture or capture_logic, nor what to do if decoding fails or the capture isn't ready. Usage is only implied.

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.