Skip to main content
Glama
microbit-makecode-mcp

microbit-makecode-mcp

list_blocks

Lists available MakeCode block APIs in the open project as TypeScript signatures and block text. Pass a namespace to see its functions, or omit it to get namespaces and block counts.

Instructions

Block APIs available in the open project (core plus added extensions) as TypeScript signatures with their block text. Without namespace: namespaces and block counts. With namespace (e.g. basic, input, led, music, radio, pins, or an extension's namespace): its functions.

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

Input Schema

NameRequiredDescriptionDefault
namespaceNoNamespace such as basic, input, led, music, radio, pins, neopixel

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/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 burden; it does disclose the two return shapes and implies an open project is required. It says nothing about what happens with an invalid namespace, whether output is truncated for large namespaces, or whether the result is static or reflects edited code.

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?

Two compact sentences with no filler, and the more common no-argument case is stated before the parameterised case. The telegraphic 'its functions' phrasing is slightly terse but does not cost clarity.

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?

With one optional parameter and no output schema, the description correctly takes on the job of describing the returned data and the branch between modes. Only minor gaps remain, such as prerequisite/error behaviour for an unknown namespace, which are low-risk for a read-only listing tool.

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?

Schema coverage is 100% and already lists example namespaces, so the schema does most of the work. The description still adds value beyond it by explaining the behavioural consequence of omitting the parameter (namespaces plus counts instead of functions), which the schema does not convey.

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?

The description names the specific resource (block APIs of the open project, core plus extensions) and the exact shape of the response (TypeScript signatures with block text), which is far more informative than the bare name list_blocks. It does not explicitly contrast itself with siblings like get_code or status, but its resource is distinct enough to be recognisable.

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?

It gives concrete conditional guidance: call without a namespace to get namespaces and block counts, call with a namespace to get that namespace's functions. That is clear usage context, though it names no alternatives and states no exclusions or preconditions beyond the implicit 'open project'.

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