Skip to main content
Glama
zephyr-ra-mcp

zephyr-ra-mcp

by KaleoLiu

connect

Destructive

Establish a J-Link session with the target RA MCU and extract the RTT control block address from the ELF to enable debugging and log streaming.

Instructions

Connect to the J-Link and the target RA MCU, and take the RTT control block address from the ELF.

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": {
      "device": "<device>",
      "elf_path": "<elf_path>"
    },
    "name": "connect"
  }
}

Input Schema

NameRequiredDescriptionDefault
deviceYesThe J-Link device name for the target part, e.g. the full part number as J-Link lists it.
elf_pathYesbuild/zephyr/zephyr.elf
svd_pathNoOptional; required for named SFR access
interfaceNo
catch_faultsNoArm vector catch so the CPU stops at the fault itself. With it off, decode_fault only ever reads a CFSR the handler already cleared.
probe_serialNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3/5.0
Behavior2/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, so the description isn't required to flag mutability, but it says nothing about what the connect actually does to the target — halting/resetting it, exclusive probe locking, or what state is lost. The only behavioral detail added is that the RTT control block address is extracted from the ELF, which does not explain the destructive flag at all. For a destructive-annotated operation this is thin.

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 front-loaded sentence with no filler; every clause (connect probe, connect target, RTT address from ELF) carries information.

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

Completeness2/5

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

With six parameters, no output schema, and a destructiveHint=true annotation, an agent needs to know what connecting disrupts, whether it can be repeated, and how it pairs with 'disconnect'. None of that is present, so the definition is under-specified for a session-establishing tool that mutates target state.

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 67%; 'device', 'elf_path', 'svd_path', and 'catch_faults' already carry descriptions, while 'probe_serial' and 'interface' have none. The description references the ELF implicitly but adds no meaning to any parameter, and does not compensate for the undocumented probe_serial or the SWD/JTAG choice.

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 specific verb and concrete resources: connecting to the J-Link probe and the target RA MCU, plus resolving the RTT control block address from the ELF. That is clearly distinct from the sibling 'disconnect' and from status/register tools. It stops short of 5 only because it doesn't frame where this sits in the workflow relative to 'disconnect' or the read tools.

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 only implied: the agent can infer this must be called to establish a session before other operations, but the description never says so, never states prerequisites (e.g., probe not already in use, ELF matching the built image), and never mentions tearing down with 'disconnect'. Adequate but with a clear guidance gap.

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