Skip to main content
Glama

workflow_pipeline

Builds firmware, runs host unit tests, then optionally flashes and monitors the target in one call. Use it to validate code before any Flash write, keeping hardware safe by default.

Instructions

One-call build → host tests → optional flash/run → optional evidence / 一体化流水线.

Safe by default: flash=False. flash=True requires confirm=True (real Flash write). host_test_enabled=True runs native unit tests BEFORE any Flash write; the stage is skipped when no driver/compiler exists. host_test_opt="both" runs -O0 and -O3. observe_s>0 starts a short monitor, captures one report, then releases hardware.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "project_path": "<project_path>"
    },
    "name": "workflow_pipeline"
  }
}

Input Schema

NameRequiredDescriptionDefault
flashNo
presetNoDebug
confirmNo
host_ccNo
chip_nameNo
observe_sNo
timeout_sNo
sample_cpuNo
project_pathYes
host_test_optNoboth
serial_numberNo
host_test_enabledNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A3.6/5.0
Behavior4/5

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

With no annotations at all, the description carries the full burden and does real work: it discloses the safe default (no Flash write), that a real write requires confirm=True, that host tests execute BEFORE any Flash write, the skip condition when no toolchain exists, that host_test_opt='both' runs -O0 and -O3, and that observe_s>0 starts a monitor, captures one report, then releases hardware. That last clause is important destructive-adjacent context (hardware is held then freed) that the schema cannot convey. It stops short of describing permissions, partial-failure behavior mid-pipeline, or what timeout_s governs.

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 pipeline summary is front-loaded in one line, followed by short clauses each carrying a distinct behavioral rule. Almost every sentence earns its place; the bilingual '一体化流水线' tag is decorative but costs little. Density is high without becoming a wall of text.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 12-parameter orchestrator with zero annotations, an output schema, and multiple optional stages, the definition covers the safety-critical ordering well but leaves real holes: no indication of what happens when an intermediate stage fails, whether prior stages' outputs are returned, or what timeout_s and sample_cpu do. Adequate to call it safely, not adequate to call it optimally.

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?

Schema description coverage is 0% across 12 parameters, so the description must compensate and it only partly does. It explains flash, confirm, host_test_enabled, host_test_opt, and observe_s meaningfully — roughly a third of the surface — while preset, chip_name, serial_number, host_cc, timeout_s, and sample_cpu remain completely opaque from both schema and description. The coverage it does provide is high quality, but the gap is large.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a concrete multi-stage pipeline — build → host tests → optional flash/run → optional evidence — which is a specific verb chain over a specific resource. The word 'One-call' signals this is the orchestrating counterpart to the granular siblings (build_project, host_test, erase_flash), though no sibling is named explicitly. An agent can tell what it does, but must infer the boundaries against those siblings itself.

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?

Usage context is implied through the safety framing: safe by default with flash=False, and flash=True requires confirm=True. The stage-skipping rule ('skipped when no driver/compiler exists') is genuine conditional guidance. However, there is no statement of when to choose this pipeline over calling build_project / host_test / deploy_project directly, and no when-not guidance.

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