Skip to main content
Glama
es617

BLE MCP Server

by es617

ble_connect

Connect to a BLE peripheral using its MAC address. Returns a connection ID and device identity for subsequent operations.

Instructions

Connect to a BLE peripheral by address. Returns a connection_id, device identity (device_name, service_uuids from scan cache), and spec status (null if none attached). After connecting: 1) Use ble.spec.list to check for a matching protocol spec by device name or service UUIDs. If a match is found, attach it with ble.spec.attach. If no match, ask the user if they have a protocol spec for this device. 2) Use ble.plugin.list to check for a plugin whose name matches the device. If a matching plugin is loaded, its tools are available to use directly.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pairNoPair (bond) during connect. Works on Linux and Windows, not macOS.
addressYesMAC address or platform identifier of the device.
timeout_sNoConnection timeout in seconds (default 10).
Behavior4/5

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

Since no annotations are provided, the description carries the full burden. It discloses return values (connection_id, device identity, spec status), notes platform-specific behavior for the pair parameter (not on macOS), and outlines the follow-up steps after connecting. This is good transparency for the tool's behavior.

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: starts with the core purpose and return values, then lists numbered steps for post-connect actions. It is concise enough to convey the necessary information without excessive verbosity, though the step-by-step instructions could be slightly more compact.

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 complexity (3 parameters, no output schema, no annotations), the description covers the main aspects: what it does, what it returns, and what to do after. It lacks information about error handling or invalid addresses, but for a connection tool this is reasonably complete with the provided context.

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%, so the baseline is 3. The description does not add significant meaning beyond the schema; it mentions address and pair implicitly but provides no extra details about the parameters (e.g., format of address, default timeout behavior).

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's purpose: 'Connect to a BLE peripheral by address.' It specifies the action (connect), the resource (BLE peripheral), and the key input (address). It also distinguishes from siblings like ble_disconnect, ble_connection_status, etc.

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?

The description provides a detailed post-connect workflow (check spec, attach, check plugin) but does not explicitly differentiate when to use ble_connect vs other connection-related tools like ble_scan_start or ble_disconnect. The usage context is implied but not explicitly stated with alternatives.

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/es617/ble-mcp-server'

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