Skip to main content
Glama
microbit-makecode-mcp

microbit-makecode-mcp

add_extension

Add a built-in, GitHub, or search-term MakeCode extension to the open micro:bit project, then use its namespace with list_blocks to access new blocks.

Instructions

Add a MakeCode extension to the open project: a built-in one (servo, bluetooth, devices, datalogger...), a GitHub repo (owner/repo, e.g. microsoft/pxt-neopixel), or a search term (e.g. maqueen, cutebot). Then use list_blocks with its namespace.

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

Input Schema

NameRequiredDescriptionDefault
nameYesBuilt-in extension name, GitHub owner/repo, or search term

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/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 behavioral burden. It usefully discloses that the name is resolved three different ways (built-in, GitHub owner/repo, or fuzzy search term) and that the result makes a namespace available to list_blocks, but it says nothing about network access, whether the mutation is reversible, or what happens with an ambiguous/misspelled search term.

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, zero filler, with the core action and accepted input forms front-loaded and the follow-up step placed last where it belongs.

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 one-parameter, no-output-schema tool this covers purpose, accepted input forms, and next step adequately. The remaining gap is outcome reporting — with no output schema, the description never says what a success or failure response looks like.

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 coverage is 100% and the single parameter is already documented, so the baseline is 3. The description's examples (servo, microsoft/pxt-neopixel, maqueen) add modest concreteness over the schema's phrasing but do not reveal new syntax or format distinctions.

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 verb and resource ("Add a MakeCode extension to the open project") and immediately enumerates the three accepted identity forms with concrete examples (servo, microsoft/pxt-neopixel, maqueen). An agent can tell this apart from siblings like list_blocks or connect_device 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?

Provides clear context — "the open project" scopes the prerequisite, and "Then use list_blocks with its namespace" gives the intended follow-up step. It stops short of explicit when-not-to-use guidance or failure-path advice (e.g., what to do if the name is ambiguous or unknown), so it lands at 4 rather than 5.

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