MCP server for micro:bit + Bonsai-backed natural language agent.
19 tools with consistent verb-noun naming (display_text, set_pixel, get_button, etc.). All tools have descriptions (10-200 chars, within baseline 34-392 range). Input schemas present with type definitions for all parameters. However, descriptions are terse (many under 50 chars) and lack LLM-optimized guidance on WHEN to use each tool or dependencies between them. Output schemas are not documented, LLMs cannot infer what fields to expect from responses. No error handling guidance visible. Parameter descriptions are minimal; e.g., 'Button identifier: A or B' lacks constraint documentation (should be enum). Missing idempotency and side-effect declarations on WRITE tools.
Clear the LED matrix.
Scroll a text string across the micro:bit LED matrix.
Return accelerometer (x, y, z) in milli-g.
Return True if button 'A' or 'B' is currently pressed.
Return current pressed/released state of both buttons.
Return compass heading in degrees (0..359).
Return the ambient light level (0..255), measured via the LED matrix.
Output schemas not documented. LLMs cannot infer what fields (e.g., x/y/brightness values, acceleration tuple structure, heading range) are returned by READ tools. This forces agents to guess or make extra discovery calls.
Parameter descriptions lack constraint documentation. 'Button identifier: A or B' should be an enum constraint; 'Pin identifier: P0, P1, or P2' should declare valid values formally. LLMs cannot parse free-text constraints reliably.
WRITE tools (display_text, set_pixel, play_sound, show_icon, show_bitmap, play_melody, play_notes, show_number) lack side-effect declarations. Descriptions do not state 'This modifies device state' or 'This is idempotent'. Agents cannot reason about retry safety.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | D | 58 | 2026-07-28+ | v2 |
Return the microphone sound level (0..255). V2 only — earlier boards return a constant value.
Return the chip-internal temperature in degrees Celsius.
Return the names of built-in icons available to ``show_icon``. Names are stable identifiers (e.g. ``heart``, ``small_heart``). Call this tool first if you don't know what's available.
Return the names of built-in melodies available to ``play_melody``. Names are stable identifiers (e.g. ``birthday``, ``power_up``). Call this tool first if you don't know what's available.
Play a built-in melody by name through the speaker. Use ``list_melodies`` to see valid names. Returns immediately; the device plays the melody asynchronously.
Play a custom melody from a MakeCode-flavoured note string. Format: space-separated tokens like ``C4:1 D4:1 E4:2``. ``R`` denotes a rest, ``:N`` is duration in beats (default 4).
Play a tone via the speaker. ``note_or_freq`` is either a digit-only string interpreted as frequency in Hz, or a note name like ``C4``. ``duration`` is milliseconds for frequencies or beats for notes.
Read an analog value (0..1023) from a header pin. ``pin`` is one of ``P0``, ``P1``, ``P2``. Useful for reading Grove sensors plugged into the headers (e.g. light, distance, rotary, soil moisture).
Light a single pixel on the 5x5 LED matrix. Args: x: column 0..4 y: row 0..4 brightness: 0..9 (0 = off, 9 = brightest)
Display an arbitrary 5x5 LED bitmap. ``bitmap`` is a 25-character row-major string where each character is a digit ``0``..``9`` denoting brightness. Use this when no built-in icon fits.
Display a built-in icon by name on the LED matrix. Use ``list_icons`` to see valid names. Raises if ``name`` is not in the catalog.
Scroll a (positive or negative) integer across the LED matrix.
Terse descriptions (many under 50 chars) lack LLM-optimized guidance. 'Return the chip-internal temperature in degrees Celsius' does not explain WHEN to call this vs other sensors, or what the typical range is. Descriptions should be 50-200 chars with context.
No error handling guidance. Tools do not document what happens on invalid input (e.g., set_pixel with x=10, y=10) or device disconnection. Agents have no recovery path.