Skip to main content
Glama
smk-h

embedded-mcp-toolkit

by smk-h

serial_upload

Upload a binary file to a device over a serial session via ZMODEM. Monitors transfer progress and aborts on idle or timeout to prevent hangs.

Instructions

Upload a binary file to the device over ZMODEM via an existing serial session. The device must have lrzsz installed (rz 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.
recv_cmdNoDevice receive command (default: 'rz'). e.g. 'rz -e' to escape control chars
local_pathYesLocal source file path
remote_dirNoRemote directory hint (the rz command writes to its current dir by default; cd before rz if needed)
session_idYesThe session ID returned by serial_open
remote_nameNoRemote file name (default: basename of local_path). The device rz will name the file accordingly.
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 behavioral disclosure burden. It clearly states that the operation blocks, logs progress to stderr, and explains the two timeouts and their distinct behaviors (idle_timeout for real failure, timeout as a safety cap with a suggested value). This is substantial and goes beyond simple 'uploads a file.'

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?

The description is two sentences, front-loaded with the purpose, and every sentence conveys essential information: the upload mechanism, blocking behavior, stderr logging, and timeout semantics. No wasted words.

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 7 parameters, no output schema, and no annotations, the description is fairly complete. It covers prerequisites, blocking behavior, progress logging, and both timeouts. It does not detail the return value, but the overall workflow is well explained for a tool of this complexity.

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?

The schema description coverage is 100% and every parameter already has a detailed description. The tool description adds some context about the timeouts but mostly summarizes what the schema already states. Baseline 3 is appropriate since the schema does the heavy lifting.

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 action ('Upload a binary file'), the method ('over ZMODEM via an existing serial session'), and the resource. It implicitly distinguishes itself from siblings like ssh_sftp_upload and serial_download by specifying ZMODEM and serial session, and mentions the required rz command.

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?

The description provides clear context for when to use the tool: with an existing serial session and a device having lrzsz installed. It does not explicitly mention when not to use it or alternatives, but the prerequisites and method are clearly specified, making the context strong enough.

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