Skip to main content
Glama

bridge_probe

Verify the bridge firmware is alive and identifies supported buses without touching any bus. Use this handshake first when bus tools fail, before checking wiring or firmware.

Instructions

桥自检:问那块跑桥固件的板「你是谁、支持哪些总线」——不碰任何总线,纯握手。

排查「总线工具不工作」的第一步:先确认桥活着、认协议,再去怀疑接线。 省得在「固件问题」和「接线问题」之间来回猜。

port 不填则读环境变量 MCU_DEBUG_BRIDGE_PORT。桥固件源码见 tools/bridge_fw/。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
portNo
baudrateNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does well: it declares the operation is non-invasive (does not touch any bus, pure handshake) and explains the port-resolution fallback to MCU_DEBUG_BRIDGE_PORT. It omits any auth/permission note and does not restate the baudrate behavior, but for a read-only probe this is minor.

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?

Front-loads the core definition, then the diagnostic rationale and the port/env detail. Several lines are spent on troubleshooting motivation, but each sentence adds routing or parameter value; no obvious filler.

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?

An output schema exists, so return values need not be described. For a simple 2-param, no-required probe the description covers purpose, when-to-use, and the key port fallback; only baudrate behavior is left undocumented.

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 0% for 2 parameters, so the description must compensate. It explains the port fallback via the MCU_DEBUG_BRIDGE_PORT environment variable, which is genuinely useful, but says nothing about baudrate or its default semantics.

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 specific action (handshake / self-check with the bridge firmware) and its scope ('不碰任何总线,纯握手'), which immediately separates it from the many bus tools (i2c_scan, spi_scan, serial_*). An agent can tell what it does and what it does not touch without opening any schema.

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 usage context: it is the first step when 'bus tools aren't working' — confirm the bridge is alive before suspecting wiring. It frames the diagnostic order clearly but does not name a concrete alternative sibling (e.g. probe_list or serial_list) to choose against.

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