Skip to main content
Glama

disconnect_device

Disconnects the active JLink connection and releases device resources, ending debugging or flashing sessions and freeing the target for other operations.

Instructions

Disconnect JLink device / 断开 JLink 设备连接.

Disconnects the current active JLink connection and releases device resources. 断开当前活动的 JLink 连接,释放设备资源。

Returns: Disconnection result / 断开结果

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "disconnect_device"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full disclosure burden. It does add real behavior beyond the name — it releases device resources and ends the active session — but omits error/idempotency behavior (what happens with no active connection) and any permission or state-prerequisite context.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The useful content is one sentence, but it is presented twice (English and Chinese), roughly doubling length without adding information. Front-loading is good, and the Returns note is short, but the duplication is not earning its place.

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?

This is a simple, zero-parameter session-teardown tool with an output schema, so the description need not explain return values. It states scope and effect adequately; only failure/no-active-connection behavior is missing.

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?

The tool takes zero parameters, so there is no parameter meaning to add; the baseline of 4 applies. The description correctly implies the target is the implicitly-selected active connection rather than anything passed in.

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 names a specific verb and resource ('Disconnect JLink device / 断开 JLink 设备连接') and narrows it to the 'current active JLink connection', which is unambiguous. It does not explicitly contrast with connect_device or get_connection_status, so it stops short of a 5.

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: it operates on the 'current active' connection, so an agent can infer it should be called after connect_device and before reconnecting. There is no explicit when-to-use, when-not-to-use, or statement of what happens if no connection is active.

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