Skip to main content
Glama

pyocd_session_connect

Connect to a debug probe and open a session for embedded MCU debugging. Must be called before any target, register, or memory operations.

Instructions

Connect to a debug probe and open a debug session. Must be called before any target/register/memory operations. Only one session can be active at a time.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
probe_idNoProbe unique ID. Omit to use first available.
frequencyNoSWD clock frequency in Hz (default 4MHz)
target_typeYesTarget MCU type (e.g. 'hc32f460xe', 'hc32f4a0pi')

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

No annotations are provided, so the description carries full burden. It discloses the single-session constraint, which is helpful. However, it does not describe what happens if called when a session already exists, or if connection fails, or authentication requirements.

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?

The description is two sentences long, fully front-loaded with the core action and essential guidance. Every sentence earns its place with no 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?

Given the tool's simple role (session opener), the description covers the key points: connect, prerequisite, single-session. However, it does not mention return values or error conditions, which would improve completeness.

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% with descriptions for all three parameters. The description adds no additional parameter details beyond what is in the schema, so it meets the baseline of 3 without adding extra value.

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 verb (Connect) and resource (debug probe and session), and distinguishes this tool as the prerequisite for all other pyocd operations, setting it apart from siblings that perform read, write, flash, etc.

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?

Explicitly states 'Must be called before any target/register/memory operations' and 'Only one session can be active at a time,' providing clear when-to-use and a key constraint. Does not mention checking session status via sibling tool, but this is a minor gap.

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/konbakuyomu/pyocd-debug-mcp'

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