Skip to main content
Glama

烧录板载 SPI Flash

fpga_flash_spi

Program SPI flash on FPGA via JTAG-to-SPI bridge for persistent configuration. Requires explicit confirmation and verifies expected IDCODE before burning.

Instructions

通过 FPGA JTAG->SPI bridge 持久烧录。危险动作:必须 confirm=true,且内部先 scan 并校验 expectIdcode。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
hostNo远程执行设备 id(pango-mcp.config.json 的 hosts;省略=本机)。远程时 .sbit 推到该设备后在其上烧 SPI flash。
portNocdt_js 端口,默认来自配置或 65420
sbitYes.sbit 绝对路径
confirmNo必须为 true 才实际烧录
sfcPathNo生成的 .sfc 路径;默认与 sbit 同名(远程时在远端临时目录生成)
flashPartYesSPI flash 型号,例如 W25Q128Q
pdsVersionNo可选 PDS 版本/标签
timeoutSecNo超时秒数,默认 300
deviceIndexNoJTAG 设备索引,默认 0
expectIdcodeYes期望 IDCODE 或别名(PG2L100H/PG2L200H/GW/TG)。比较时忽略 IDCODE 高 4 位硅版本。
Behavior4/5

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

With no annotations provided, the description carries the full burden, and it delivers meaningful safety-relevant behavior: the operation is persistent and destructive, it is gated by confirm=true, and it internally scans and verifies expectIdcode before writing. This goes well beyond the schema for a dangerous flash-write tool. It does not cover failure behavior (e.g., what happens on IDCODE mismatch) or overwrite/erase specifics, but the critical safety profile is disclosed.

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?

A single compact sentence front-loads the mechanism and persistence trait, then immediately delivers the danger warning and the two safety requirements. Every word earns its place; no filler, no repetition of schema content.

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 10-param destructive tool with no annotations and no output schema, the description covers the most critical contextual elements: mechanism, persistence, danger, the confirmation gate, and internal IDCODE verification. Minor gaps remain (no return/result info, no failure-mode behavior, no prerequisites like JTAG connection state), but the schema documents all parameters at 100% and the safety-critical workflow is described.

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 coverage is 100%, so the baseline is 3, but the description adds behavioral meaning to two key parameters beyond the schema: confirm must literally be true (enforcement gate) and expectIdcode is checked internally via a scan step. This is useful nuance that reinforces how those parameters behave at runtime, not just what they are.

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 states a specific verb (持久烧录/persistently burn) plus the resource (板载 SPI Flash) and the mechanism (FPGA JTAG->SPI bridge). The word 持久 (persistent) distinguishes it from volatile alternatives like fpga_flash_sram, and the mechanism distinguishes it from fpga_jtag_flash. Purpose is unambiguous and differentiates well from siblings.

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 is implied through 持久烧录 (persistent flashing, implying it is for final/production writes rather than volatile) and 危险动作 (dangerous, implying caution is required). However, it never explicitly names alternatives or states when not to use it — e.g., it doesn't say 'for volatile/debug use fpga_flash_sram' or contrast with fpga_jtag_flash. No exclusions are provided.

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/Renkos1/pango-mcp'

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