Skip to main content
Glama
microbit-makecode-mcp

microbit-makecode-mcp

flash

Compile and upload the current MakeCode program to a connected micro:bit over USB, replacing the board's existing program; compile errors are returned instead of uploading.

Instructions

Compile the program and flash it onto the connected micro:bit (replaces the program on the board). Connects first if needed (see connect_device). Returns compile errors instead of flashing when there are any.

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": "flash"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses the destructive effect ('replaces the program on the board'), implicit device-connect side effect, and the failure path (compile errors returned instead of flashing). It omits whether the previous program is recoverable and whether a device must physically be present.

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?

Three short sentences: action, prerequisite handling, and failure mode. Front-loaded with the primary action and no redundant 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 zero-parameter tool with no annotations and no output schema, the description covers action, side effects, dependency handling, and error behavior. Only minor gaps remain around device prerequisites and what a successful response looks like.

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?

The tool takes zero parameters, so there is nothing for the description to disambiguate beyond the schema; baseline applies.

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 specific verbs (compile + flash) against a specific resource (the connected micro:bit), and the parenthetical clarifies the effect on the board. An agent can distinguish this from connect_device or run_simulator purely from the text.

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?

'Connects first if needed (see connect_device)' tells the agent it does not need to pre-connect, and the compile-error clause sets expectations about the outcome. It stops short of naming an alternative for testing without hardware (run_simulator) or stating when not to use it.

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