Skip to main content
Glama

start_tunnel

Starts a specified SakuraFrp tunnel by ID or name, adding it to auto-start and restarting the service; this briefly interrupts all tunnels and requires confirm=true.

Instructions

启动指定隧道(按 id 或 name)。写操作:把隧道加入 auto_start_tunnels 并重启 SakuraFrpService,服务下所有隧道会短暂中断。必须传 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": "start_tunnel"
  }
}

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.2/5.0
Behavior5/5

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

With no annotations present, the description carries the full burden and does so well: it declares this a write operation, names the state change (tunnel added to auto_start_tunnels), discloses the service restart and the resulting brief interruption of all tunnels under the service. It also states the mandatory confirm flag, which is exactly the kind of side-effect information an agent needs before invoking.

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 short sentences, front-loaded with the purpose, then the side effects, then the required argument. Nothing is redundant and every sentence contributes new information.

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

Completeness5/5

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

For a two-parameter write tool with no annotations and no output schema, the description covers purpose, state mutation, service-wide impact, and the confirmation requirement. There is no meaningful gap an agent would need filled before calling it.

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 meaning beyond the schema by framing confirm as a hard requirement ("必须传 confirm: true") rather than an optional boolean, and by restating that tunnel accepts either id or name. This slightly exceeds what the schema alone conveys.

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 states a specific verb and resource ("start the specified tunnel") plus the accepted identifier forms (id or name). It is clear about scope, but it does not distinguish itself from look-alike siblings such as set_auto_start, even though its behavior (adding to auto_start_tunnels) overlaps conceptually with that tool.

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 rather than stated: an agent can infer this is the tool for starting a tunnel, and the confirm requirement is spelled out. However, there is no explicit when-to-use / when-not-to-use guidance versus stop_tunnel or set_auto_start, so the agent must infer the selection.

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