Skip to main content
Glama
microbit-makecode-mcp

microbit-makecode-mcp

new_project

Creates a new MakeCode project, optionally loading a complete TypeScript program and returning compile errors to start or validate micro:bit code.

Instructions

Create a new MakeCode project (the user's other projects are kept in MakeCode's list), optionally with a program. Returns compile errors when code is given.

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

Input Schema

NameRequiredDescriptionDefault
codeNoComplete MakeCode TypeScript program (replaces main.ts)
nameYesProject name
viewNoEditor view to show afterwards. Default blocks (falls back to javascript if the code has no block form)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/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 add real value by stating that existing projects are preserved (non-destructive scoping) and that compile errors are returned when code is supplied. However, it never says whether creating a project makes it the active one — which matters because sibling tools (set_code, flash, run_simulator) appear to operate on a current project.

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, front-loaded with the action and following immediately with the safety-relevant scoping caveat. No wasted words; only minor awkwardness from packing the return behavior into a trailing clause.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a three-parameter, no-output-schema tool, the description should describe what comes back. It covers the error path ('returns compile errors when code is given') but says nothing about the success payload — presumably a project identifier or path that the agent would need for subsequent set_code/flash calls.

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%, so the enum for 'view', the 'code' description, and the required 'name' are already fully documented. The description only adds the framing that 'code' is optional and that supplying it triggers compilation — modest reinforcement rather than new meaning. Baseline 3 applies when the schema does the heavy lifting.

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?

Specific verb+resource: 'Create a new MakeCode project'. The parenthetical clarifies a scope point (other projects are kept 'in MakeCode's list'), and 'optionally with a program' distinguishes this from a code-writing tool like set_code. It does not name a sibling, so it stops short of full differentiation.

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?

Usage is only implied: an agent can infer 'call this when you need a brand-new project'. There is no explicit when-not guidance (e.g., use set_code/open_file if a project already exists) and no mention of what happens if a project with the same name exists.

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