Skip to main content
Glama
microbit-makecode-mcp

microbit-makecode-mcp

open_file

Open MakeCode .hex, .mkcd, .ts, or .py files from your computer as new projects to edit, simulate, and save.

Instructions

Open a MakeCode project file from this computer as a new project: .hex (made by MakeCode), .mkcd, .ts or .py.

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

Input Schema

NameRequiredDescriptionDefault
pathYesPath of the file to open

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does disclose a meaningful behavioral fact that the file is loaded into a new project (a state change), but it omits whether opening replaces the current project, what happens to unsaved work, error behavior for unsupported/corrupt files, and whether a connected device is required. Adequate but with clear gaps for a mutating action.

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?

A single front-loaded sentence with zero filler; the supported extensions are placed where they are most useful, at the point of deciding which files this tool accepts.

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 tool with no annotations and no output schema, the definition covers what an agent needs to pick a call: the scope (local computer), the accepted formats, and the resulting effect (new project). What is missing is mostly failure/overwrite behavior, which is a moderate rather than critical omission.

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?

One parameter (path) with 100% schema description coverage, so the baseline is 3. The description adds the constraint that the path must point to a supported MakeCode file type, which is useful context the schema does not encode, but it adds no syntactic or path-resolution detail.

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 ("Open") plus the resource (a MakeCode project file) and an explicit enumeration of supported formats (.hex, .mkcd, .ts, .py). It does not distinguish itself from the sibling new_project, which is also a project-creation path, so an agent cannot fully disambiguate from the text alone.

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 implied: reach for this when the project lives on the local computer in one of those four formats, and "as a new project" signals the effect. There is no explicit when-not guidance and no mention of new_project, get_code or set_code as the alternative when the user wants an existing/remote project or to modify a current one.

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