Skip to main content
Glama

connect

Link JLink debugger to target chip, selecting device, interface and speed. Prerequisite for all debug commands.

Instructions

连接 JLink 调试器并连接到目标单片机。 必须在其他调试操作之前调用此工具。

Args: device: 目标芯片型号,例如 "STM32F103C8"、"nRF52832_xxAA"。 使用 list_devices() 查看常用芯片型号。 interface: 调试接口,"SWD"(推荐,默认)或 "JTAG"。 speed: 通信速度(kHz),默认 4000(4MHz)。 serial_no: 指定 JLink 序列号(连接多个 JLink 时使用,可选)。 ip_addr: JLink over IP 地址,如 "192.168.1.100"(可选)。

Returns: 连接结果,包含 JLink 固件版本、目标芯片信息和当前状态。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
deviceYes
interfaceNoSWD
speedNo
serial_noNo
ip_addrNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

No annotations exist, so the description bears full responsibility. It describes the action as connecting without detailing side effects, error handling, or state changes (e.g., if already connected). It mentions return values but lacks deeper behavioral context.

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 description is well-structured with a purpose statement, usage condition, parameter list, and returns. It is slightly verbose but efficiently front-loaded with critical information, earning a high score.

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?

Given the tool has an output schema and 5 parameters, the description is fairly complete: it covers purpose, prerequisites, parameters, and return values. Missing edge cases (like error states) are compensated by the output schema.

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

Parameters5/5

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

With 0% schema description coverage, the description fully explains all 5 parameters: device (example models), interface (SWD/JTAG), speed (kHz), serial_no (multiple JLinks), ip_addr (over IP). It adds significant meaning beyond the schema.

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 clearly states the tool connects a JLink debugger to a target microcontroller, and explicitly mentions it must be called before other debug operations, distinguishing it from sibling tools like 'disconnect' which are complementary.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides explicit guidance: 'Must be called before other debug operations' and references sibling tool 'list_devices()' for device selection, offering clear when-to-use and alternative information.

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/xun123456/jlink-mcp'

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