Skip to main content
Glama

生成 SPI 链式文件 (cfg_gen_chain_file)

fpga_gen_chain_file

Merge two or more .sbit files into an SPI chain file offline, with optional bin generation and bit/byte reversal.

Instructions

离线把两个或更多 .sbit 合成 SPI chain 文件。不连器件。可选生成 bin 及字节/位反转,全部参数化。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
infileYes输入 .sbit 列表(-infile),至少一个
outfileNo输出文件(-outfile),默认取第一个输入文件名
pdsVersionNo可选 PDS 版本/标签
timeoutSecNo超时秒数,默认 120
createBinFileNo-create_bin_file:同时生成 bin 文件
reverseBitInAByteNo-reverse_bit_in_a_byte:bin 内按字节翻转 bit
reverseByteInAWordNo-reverse_byte_in_a_word:bin 内按字翻转 byte
Behavior4/5

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

No annotations are present, so the description carries the full transparency burden. It discloses three important behavioral traits: offline operation, no hardware connection, and optional bin genertion with byte/bit reversal that are fully parameterized. It does not mention output-file overwrite behavior or timeouts, but for a file-genertion tool this is reasonably sufficient and non-misleading.

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?

One compact sentence is front-loaded with the core operation and immediately adds the critical offline/no-device distinction. Each phrase earns its place, with no redundancy or filler.

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 relatively simple file-genertion tool, the description combined with a fully documented schema covers the essential context: purpose, offline behavior, no hardware, and optional bin/reversal modes. It does not explicitly state that files are written to disk, but this is heavily implied by '生成文件' and the outfile parameter, and no output schema is expected for this tool.

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 coverage is 100% and every parameter (infile, outfile, pdsVersion, timeoutSec, createBinFile, reverseBitInAByte, reverseByteInAWord) already has a description. The tool description only re-stares the existence of bin and reversal options without adding new parameter meaning, so baseline 3 applies.

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?

Description uses specific verb '合成' (combine) with concrete resources (.sbit files) and output (SPI chain file). The explicit '不连器件' (does not connect to device) distinguishes it from hardware-flashing siblings like fpga_flash_spi and fpga_jtag_gen_svf. The main purpose is immediately clear and unambiguous.

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?

Description provides clear context: use this when you need to generate an SPI chain file offline from two or more .sbit files without a connected device. This gives an agent a solid selection rule. It does not explicitly name alternatives or say when not to use it, so it falls just shy of a 5.

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