Skip to main content
Glama

deploy_project

Flashes compiled STM32 firmware to a J-Link target, verifies all programmed bytes, runs it, and optionally monitors runtime behavior via RTT.

Instructions

Flash compiled STM32 ELF/HEX/BIN, verify all bytes, run, auto-select monitoring / 自动烧录运行并监控.

Requires exact chip and unique probe/artifact or explicit selection. Programs internal flash. sample_cpu briefly halts CPU during monitoring; default false preserves timing.

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": "deploy_project"
  }
}

Input Schema

NameRequiredDescriptionDefault
monitorNo
chip_nameNo
duration_sNo
sample_cpuNo
project_pathYes
firmware_pathNo
flash_addressNo
serial_numberNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A3.5/5.0
Behavior4/5

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

With no annotations, the description still discloses key behavior: it programs internal flash, verifies every byte, runs the image, and that sample_cpu briefly halts the CPU so the default false preserves timing. It does not say whether existing flash content is erased first, what happens on verification failure, or what connection state is required.

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 short sentences with the action front-loaded, then prerequisites, then the timing caveat. The bilingual duplicate is redundant but takes only a phrase, and no sentence could be removed without losing a distinct fact.

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?

An output schema exists, so return values need no explanation, and the destructive/write nature plus the sample_cpu caveat are covered. But for an 8-parameter, flash-mutating tool with zero annotation support, missing coverage of flash_address, duration_s, and project_path leaves the definition thinner than the tool's complexity warrants.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0% across 8 parameters, so the description carries full burden, yet it only gestures at chip_name, serial_number, firmware_path, monitor, and sample_cpu. duration_s, flash_address, and project_path are never mentioned, and no formats, ranges, or selection semantics are given for the ones that are.

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 opens with a specific verb plus resource ('Flash compiled STM32 ELF/HEX/BIN') and adds the downstream steps it performs (verify all bytes, run, auto-select monitoring), which separates it in spirit from build_project and erase_flash. It never names a sibling, so differentiation is inferred from the pipeline wording rather than stated.

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?

'Requires exact chip and unique probe/artifact or explicit selection' gives real preconditions for a successful call, which is more than most tools offer. However, it does not say when to prefer this over erase_flash/build_project, nor what to do when the probe is ambiguous beyond 'explicit selection'.

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