Skip to main content
Glama

stop_tunnel

Stops a specified SakuraFrp tunnel by ID or name, removing it from auto-start and restarting the service; confirmation required.

Instructions

停止指定隧道(按 id 或 name)。写操作:把隧道从 auto_start_tunnels 移除并重启服务。必须传 confirm: true。

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

Input Schema

NameRequiredDescriptionDefault
tunnelYes隧道 id 或隧道名
confirmNo确认执行写操作

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it labels the tool a write operation, discloses two concrete side effects (removal from auto_start_tunnels and a service restart), and states the confirm requirement. It stops short of failure modes (what happens if the tunnel is already stopped) or whether the restart affects other tunnels.

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?

Three tight sentences, front-loaded with the action and identifier, then side effects, then the hard precondition. No filler or repeated information.

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?

For a two-parameter mutation tool with no annotations and no output schema, the definition covers action, identifier, side effects, and the confirmation gate. Remaining gaps are error behavior and the blast radius of the service restart, which are minor but non-trivial for a write tool.

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?

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning: it makes 'confirm: true' mandatory in practice, whereas the schema marks only 'tunnel' as required. The id-or-name note largely restates the schema property text.

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 uses a specific verb and resource ('stop the specified tunnel'), states accepted identifiers (id or name), and clarifies via 'removes from auto_start_tunnels and restarts service' that the tunnel definition survives — implicitly separating it from delete_tunnel. It never names a sibling explicitly, so the differentiation is inferential rather than stated.

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 implied: call this to stop a tunnel, and a write confirmation is mandatory. There is no explicit 'use this instead of delete_tunnel / start_tunnel when…' guidance and no preconditions about the tunnel's current state, so the agent must reason about alternatives itself.

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