Skip to main content
Glama
smk-h

embedded-mcp-toolkit

by smk-h

serial_uboot_state

Detect, set, or clear the U-Boot mark for a serial session, controlling automatic command wrapping. Use 'detect' for side-effect-free classification, 'set'/'clear' to override, 'status' to read.

Instructions

Query, detect, or force-set the U-Boot mark of a serial session. The mark decides serial_exec's marker wrapping (U-Boot sessions use plain style without subshell). Actions: 'detect' (default) — classify the live environment from buffered tail evidence first (zero side effects); if inconclusive, send a bare Enter to redraw the prompt. Conclusive results sync the mark automatically. WARNING: do NOT detect while a command may still be running or waiting for interactive input (e.g. Y/N) — the probe Enter could answer it. 'set'/'clear' — force the mark when auto-detection is out of sync; 'status' — read the mark only, no device I/O.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
actionNodetect (default) = probe live environment and sync mark; set/clear = force mark; status = read mark only
session_idYesThe session ID returned by serial_open
Behavior5/5

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

With no annotations provided, the description fully carries the behavioral burden. It discloses the zero-side-effect buffered tail inspection, the fallback bare Enter probe (including the potential to answer Y/N prompts), automatic syncing of conclusive results, and that 'status' performs no device I/O. This is exceptionally transparent for a tool with hidden side effects.

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 text is dense but every sentence serves a purpose: it introduces the resource, defines the mark's role, details each action, and includes a critical safety warning. The structure front-loads the purpose and uses clear action labels. No filler or redundant phrasing.

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 tool with no output schema, the description covers the tool's behavior, side effects, and action semantics thoroughly. The only gap is that it does not describe the exact return format for 'status' or 'detect' results, which an agent might need to process the output. Still, the description gives enough context for safe and effective use.

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?

The schema already covers 100% of parameters, so baseline is 3. The description adds value beyond the schema by explaining the default action ('detect' default), the meaning of 'set'/'clear' in context, and the subtle consequence of 'detect' (auto-sync). This goes beyond the schema's terse enum descriptions, justifying a 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 opens with a specific verb+resource: 'Query, detect, or force-set the U-Boot mark of a serial session.' It clearly defines the tool's scope and differentiates it from siblings by explaining its relationship to serial_exec's marker wrapping, making the purpose unmistakable.

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 explicit when-to-use guidance for each action ('detect' default, 'set'/'clear' for out-of-sync, 'status' for read-only) and includes an explicit warning against detecting while a command may be running or awaiting input. However, it does not name alternative sibling tools directly, so it stops short of a full 'how this compares to serial_enter_uboot' exclusion.

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