Skip to main content
Glama
SWITCHSCIENCE

mcp-micropython-bridge

micropython_append_file

Append text or base64-encoded data to a file on a MicroPython board, such as /main.py, to update code or log data directly on the device.

Instructions

MicroPython ボードのファイルに内容を追記する。

Args: path: 追記先ファイルのパス (例: "/main.py") content: 追記するテキスト内容。content_base64 とは排他的 timeout: コード送信から Raw REPL 復帰完了までの全体タイムアウト秒数 encoding: content をバイト列に変換するエンコーディング content_base64: base64 で表した追記データ。content とは排他的

Returns: ok: 追記に成功したら True path: 追記先パス bytes_written: 今回追記したバイト数 error: エラー時のメッセージ

Notes: contentcontent_base64 はどちらか片方のみ指定する。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes
contentNo
timeoutNo
encodingNoutf-8
content_base64No

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
okYes
pathYes
errorYes
bytes_writtenYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior3/5

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

No annotations are provided, so the description carries the burden, and it does disclose useful behavior: timeout spans from code transmission to Raw REPL return completion, and the return surface (ok, path, bytes_written, error) is described. It does not state whether a missing file is created, what happens on partial writes or disk-full, or any permission/precondition requirements.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The Args/Returns/Notes layout is clear and front-loaded, but the content/content_base64 exclusivity is stated twice (inline on each param and again in Notes), which is redundant. Reasonably sized overall but with avoidable repetition.

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?

A mutation tool with no annotations, but the description compensates by documenting parameters, the exclusivity constraint, timeout semantics, and the return fields. Missing only edge-case behavior (file creation on missing path, error conditions), which an agent would want for a safe append operation.

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 description coverage is 0%, so the description must compensate, and it largely does: all five parameters are explained (path, content, timeout, encoding, content_base64) with an explicit mutual-exclusion rule between content and content_base64. It does not specify encoding failure behavior or valid encoding names, but the core semantics are covered.

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?

States a specific verb+resource: appending content to a file on a MicroPython board (「MicroPython ボードのファイルに内容を追記する」). The append semantics are unambiguous. However, it does not explicitly distinguish itself from the sibling micropython_write_file, which is the main ambiguity an agent would face.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance on when to use append versus write_file, upload_file, or exec. The only usage-adjacent statement is the parameter exclusivity between content and content_base64, which is parameter semantics rather than a when-to-use rule. Usage is left to inference from the verb alone.

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