Skip to main content
Glama
SWITCHSCIENCE

mcp-micropython-bridge

micropython_download_file

Download a file from a MicroPython device to the local host, with options for overwrite and timeout.

Instructions

MicroPython ボード上のファイルをローカルへ保存する。

Args: remote_path: デバイス側ファイルパス local_path: ホスト側保存先パス。ワークスペース内のみ指定可能 timeout: コード送信から Raw REPL 復帰完了までの全体タイムアウト秒数 overwrite: False のとき既存ファイルを上書きしない

Returns: ok: 保存に成功したら True remote_path: 読み出したデバイス側パス local_path: 保存したローカルパス bytes_written: 保存したバイト数 sha256: 保存内容の sha256。失敗時は None error: エラー時のメッセージ

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
timeoutNo
overwriteNo
local_pathYes
remote_pathYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
okYes
errorYes
sha256Yes
local_pathYes
remote_pathYes
bytes_writtenYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the full behavioral burden and does well: it explains timeout scope, overwrite behavior, workspace restriction, and success/failure return semantics including sha256 being None on failure. It still omits some operational details such as connection prerequisites and atomicity.

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?

The description is front-loaded with the core action and then structured into Args and Returns sections. It is concise overall, though the Returns block is partly redundant because an output schema exists.

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 four-parameter file-download tool with no annotations and no schema descriptions, the description covers the essential parameters and return fields. Since an output schema exists, the explicit Returns section is not strictly required, but the definition remains complete enough for correct invocation.

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 for all four parameters. It documents remote_path, local_path with a workspace constraint, timeout with its precise scope, and overwrite behavior, adding substantial meaning beyond the bare schema names.

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?

The first sentence states a specific verb and resource: saving a file from a MicroPython board to the local host. It clearly distinguishes this from sibling tools such as micropython_upload_file and micropython_read_file.

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?

The description implies the tool is for downloading files, and it notes that local_path must be within the workspace. However, it does not explicitly state when to use this tool versus alternatives like micropython_read_file, micropython_upload_file, or micropython_compare_local_remote.

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