Skip to main content
Glama

删除 MQTT 连接配置

mqtt_remove_connection

Deletes a saved MQTT connection configuration by name, disconnecting it first if currently active.

Instructions

删除已保存的连接配置(若正在连接会先断开)。

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": {
      "name": "<name>"
    },
    "name": "mqtt_remove_connection"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes连接名称

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full burden, and it does disclose one important side effect: an active connection is torn down before removal. It does not say whether deletion is permanent/irreversible, whether stored credentials or subscriptions are purged, or what happens if the name does not exist.

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 the destructive action stated first and the conditional side effect in parentheses; nothing is wasted and nothing important is buried.

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

Completeness3/5

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

For a one-parameter destructive tool with no annotations and no output schema, the definition covers the core action and one side effect but leaves error behavior (unknown name), permanence, and any return/confirmation semantics unstated. Adequate but with clear gaps.

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 description coverage is 100% and the single required parameter "name" is already documented as "连接名称", so the description adds no syntax or matching detail beyond the schema. The baseline of 3 applies when the schema does the heavy lifting.

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 pairs the specific verb "删除" (delete) with the resource "已保存的连接配置" (saved connection configuration), which makes it distinguishable from mqtt_disconnect by signaling that the configuration itself is removed, not just the live session. It stops short of naming any sibling outright, so it is clear but not fully differentiated.

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 parenthetical "若正在连接会先断开" implies when this applies (an active connection may exist), but there is no explicit statement of when to prefer this over mqtt_disconnect or mqtt_configure, nor any prerequisite such as needing the connection to exist. Usage must be inferred from the verb.

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