Skip to main content
Glama

create_tunnel

Creates a SakuraFrp reverse-proxy tunnel under your account, mapping a local address and port to a node; requires confirm:true and starts by default.

Instructions

在账号下新建一条隧道。写操作,占用隧道额度,必须传 confirm: true。name 要求 3-20 字符仅字母数字下划线;remote 留空则自动分配远端端口。默认创建后即启动(start:false 可关)。

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>",
      "node": "<node>",
      "local_ip": "<local_ip>",
      "local_port": "<local_port>"
    },
    "name": "create_tunnel"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes隧道名,3-20 字符,只能字母数字下划线
nodeYes节点 id,可用 nodes 工具查
noteNo备注
typeNotcp / udp / http / https,默认 tcp
extraNo附加信息
startNo创建后是否立即启动,默认 true
remoteNo远端端口;留空自动分配
confirmNo确认执行写操作
local_ipYes本地地址,通常是 127.0.0.1
local_portYes本地端口

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full behavioral burden and does well: it discloses that this is a write, that it consumes quota (a side effect on account limits), the mandatory confirm flag, and that creation triggers an immediate start unless start:false is passed. It omits what the call returns (e.g., the auto-assigned remote port or new tunnel id) and any permission requirements.

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?

Four short clauses, front-loaded with purpose, then write/quota constraint, then field rules, then the start default. No filler and nothing buried.

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 10-parameter mutation tool with no annotations and no output schema, the description covers the risk profile, preconditions and the non-obvious defaults. The remaining gap is what happens after creation — the auto-assigned remote port and returned identifier — which matters here but is a minor omission.

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 schema already documents name format, remote auto-assignment, start default and confirm. The description largely restates those rules; the only genuinely additive detail is that confirm:true is strictly required. Baseline 3 is appropriate 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.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource (create a new tunnel under the account) and immediately marks it as a write operation, which separates it cleanly from siblings like edit_tunnel, delete_tunnel or start_tunnel. An agent can pick this tool without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives real preconditions: it is a write operation, it consumes tunnel quota, and confirm:true is mandatory. It also explains the default start-after-create behavior and how to opt out. It does not explicitly name alternatives such as edit_tunnel for modifying an existing tunnel, so it stops just short of full routing guidance.

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