Skip to main content
Glama
SLogic16U3 MCP

SLogic16U3 MCP

by gjjisadog

logic_decode

Decode UART, I2C, or SPI signals from verified captures by setting channels and timing/SPI modes; converts captured waveforms into bounded packet data for analysis.

Instructions

Decode UART (8N1), I2C or SPI (8-bit, MSB-first, active-LOW CS) from verified captures. Select physical channels; SPI supports CPOL/CPHA 0 or 1. UART requires >=4 samples/bit. max_samples=null analyzes all; returned packets are bounded by max_packets (1..1000).

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": {
      "capture_id": "<capture_id>"
    },
    "name": "logic_decode"
  }
}

Input Schema

NameRequiredDescriptionDefault
cphaNo
cpolNo
protocolNouart
baud_rateNo
capture_idYes
cs_channelNo
rx_channelNo
clk_channelNo
max_packetsNo
max_samplesNo
scl_channelNo
sda_channelNo
miso_channelNo
mosi_channelNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It does disclose meaningful behavior: fixed 8N1 framing, MSB-first, active-LOW CS, that max_samples=null analyzes everything, and that output volume is capped by max_packets (1..1000). It says nothing about error behavior, whether decoding is read-only, or what a failed decode returns.

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

Conciseness4/5

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

Four dense sentences, front-loaded with the core capability and then constraints; no filler. The parameter notes at the end are terse but each carries information an agent needs.

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?

For a 14-parameter tool with no annotations and no output schema, the description covers the highest-risk ambiguities (framing, CPOL/CPHA, packet bounds) but leaves the channel-to-protocol mapping and baud_rate semantics to inference. It is adequate but not sufficient for confident first-call parameterization.

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

Parameters2/5

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

Schema description coverage is 0% across 14 parameters, so the description must compensate. It adds real meaning for protocol, cpol/cpha, max_samples and max_packets, but never explains the channel parameters (rx_channel, clk_channel, scl/sda, mosi/miso, cs_channel) per protocol, nor baud_rate's role or interaction with the samples/bit rule.

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 opens with a specific verb-plus-resource statement: decoding UART/I2C/SPI from captures, including the framing assumptions (8N1, 8-bit MSB-first, active-LOW CS). That is enough for an agent to distinguish this from logic_capture or logic_inspect, though no sibling is named explicitly.

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?

It gives operating constraints (UART needs >=4 samples/bit, SPI supports CPOL/CPHA 0 or 1, protocol defaults implied) and says to select physical channels, which implies the tool runs against an already-verified capture. It does not state when to prefer this over logic_capture or how to handle unsupported/undecodable input.

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