Skip to main content
Glama
smk-h

embedded-mcp-toolkit

by smk-h

serial_download

Download binary files from a device over serial using ZMODEM. Uses idle and overall timeouts to detect stalled transfers and avoid indefinite hangs.

Instructions

Download a binary file from the device over ZMODEM via an existing serial session. The device must have lrzsz installed (sz command). Blocks until transfer completes, fails, or times out; progress is logged to stderr. Two timeouts: idle_timeout aborts on stalled transfer (real failure); timeout caps total duration and reports a suggested value if still progressing.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
timeoutNoOverall timeout in seconds as a safety cap against indefinite hangs (default: 300). If reached while the transfer is still progressing (no idle), reports the timeout as too small with a suggested value instead of silently truncating.
send_cmdNoDevice send command template (default: 'sz {remote}'). {remote} is replaced by remote_path
local_pathYesLocal destination file path
session_idYesThe session ID returned by serial_open
remote_pathYesRemote source file path on the device
idle_timeoutNoIdle timeout in seconds: if no data flows for this long, the transfer is treated as a real failure (link/device stalled) and aborted. Independent of file size (default: 15, min: 3).
Behavior4/5

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

With no annotations, the description carries the full burden. It describes blocking behavior, two timeout semantics (idle_timeout for real failure, timeout as a safety cap), and progress logging to stderr. It doesn't mention return values or error details, but core behavior is well covered.

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?

Three sentences, each substantive and front-loaded with the main purpose. No filler or redundant 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?

Covers prerequisites, blocking behavior, and timeout semantics thoroughly for a file download tool. The absence of an output schema means return values aren't described, but for a download operation the local_path and timeout behavior are the most critical aspects, and these are well covered.

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 covers all 6 parameters with descriptions (100% coverage), so baseline is 3. The description adds key nuance about timeout behavior beyond the schema, particularly the distinction between idle_timeout and total timeout, which elevates the score to 4.

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 description clearly states the tool downloads a binary file from a device over ZMODEM via an existing serial session, which is a specific verb+resource+protocol. This distinguishes it from siblings like serial_upload and serial_read.

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

Usage Guidelines4/5

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

It provides clear context for use: requires an existing serial session and the lrzsz package (sz command). It doesn't explicitly name alternatives but the serial/ZMODEM framing implies when it should be used over raw read/write tools.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/smk-h/embedded-mcp-toolkit'

If you have feedback or need assistance with the MCP directory API, please join our Discord server