Skip to main content
Glama
microbit-makecode-mcp

microbit-makecode-mcp

connect_device

Connects a micro:bit over USB through MakeCode’s WebUSB pairing dialog; select it once in the browser chooser, then reuse the connection for later runs.

Instructions

Connect a micro:bit over USB (WebUSB) through MakeCode's pairing dialog. The first time, the user must select the micro:bit in the browser's chooser; later connects reuse it.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "connect_device"
  }
}

Input Schema

NameRequiredDescriptionDefault
timeoutSecondsNoHow long to wait for the connection (default 60)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It does disclose the important trait that a browser chooser dialog requires user interaction and that subsequent connects reuse the selection, but it says nothing about failure behavior, permission prompts, whether the call blocks, or what a caller gets back on success vs. timeout.

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?

Two sentences, front-loaded with the action and transport, followed by the one non-obvious behavioral fact. No wasted wording.

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?

For a simple one-parameter tool with no output schema, the description covers transport, the pairing UI requirement, and connection reuse. The main omission is what happens when connection fails or times out, which matters given the timeout parameter.

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?

There is a single optional parameter whose schema description already covers it fully (100% coverage, including the default of 60 and the 10-300 bounds). The description adds nothing about the timeout, so the baseline of 3 applies.

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 ('Connect a micro:bit over USB (WebUSB)') and names the mechanism ('MakeCode's pairing dialog'), which separates it from siblings like flash or status. It stops short of explicitly contrasting with those siblings, so it lands just below the top band.

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 description implies when this applies (before any flash/run operation requiring a device) and explains the first-time vs. later-connect distinction. It gives no explicit when-not guidance or named alternative for checking an existing connection.

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