Skip to main content
Glama
SWITCHSCIENCE

mcp-micropython-bridge

micropython_compare_local_remote

Compare a local file with a file on a MicroPython device using SHA-256 hashes to verify they match.

Instructions

ローカルファイルとデバイス上のファイルが一致するか確認する。

Args: local_path: ホスト側ファイルパス。ワークスペース内のみ指定可能 remote_path: デバイス側ファイルパス timeout: コード送信から Raw REPL 復帰完了までの全体タイムアウト秒数

Returns: ok: 比較処理に成功したら True local_path: 比較したローカルパス remote_path: 比較したデバイス側パス local_sha256: ローカルファイルの sha256 remote_sha256: デバイス側ファイルの sha256 same: 両者が一致したら True error: エラー時のメッセージ

Notes: 比較は sha256 ハッシュで行う。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
timeoutNo
local_pathYes
remote_pathYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
okYes
sameYes
errorYes
local_pathYes
remote_pathYes
local_sha256Yes
remote_sha256Yes

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?

The Notes section discloses sha256-based comparison, and the Returns section reveals it returns both hashes and a same flag. No annotations are provided, so this level of detail is valuable. It doesn't mention error handling beyond the generic error field, but it does note the timeout covers the entire Raw REPL round-trip.

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?

Well-structured with sections for Args, Returns, and Notes. Slightly verbose because it restates parameter names in the Returns, but each section adds useful information.

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?

Given no annotations, three parameters at 0% schema coverage, and an output schema present, the description does a good job covering purpose, constraints, method, and return shape. It could add error cases or prerequisite states, but is otherwise complete for a comparison utility.

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. It does so for all three args, including a key constraint not in the schema: local_path is restricted to the workspace. The timeout semantics (whole round-trip) are also clarified.

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?

States a specific purpose: comparing whether a local file and a device file match. Distinguishes itself from siblings like micropython_hash_file and micropython_upload_file by being explicitly a comparison operation, not a hash or transfer.

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 usage (verify that a local file matches its device counterpart) but doesn't give explicit when-to-use guidance or name alternatives like micropython_hash_file for one-sided hashing.

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