Skip to main content
Glama

edit_tunnel

Modify existing SakuraFrp tunnel settings with confirmation; only provided fields change, and the tunnel is restarted so updates take effect.

Instructions

修改已有隧道配置。写操作,必须传 confirm: true。严格按「停隧道 → 改云端配置 → 重新启动 → 验证上线」四步执行:在线直接改云端不会生效,frpc 不会热重载配置。只覆盖显式传入的字段,其余沿用云端当前值。

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": "edit_tunnel"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNo新隧道名(3-20 字符字母数字下划线)
nodeNo新节点 id
noteNo备注
typeNotcp / udp / http / https
extraNo附加信息
remoteNo新远端端口
tunnelYes隧道 id 或隧道名
confirmNo确认执行写操作
local_ipNo新本地地址
local_portNo新本地端口

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.4/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 burden and does well: it declares the write nature, the confirm gate, the absence of frpc hot-reload (online edits silently fail to apply), and partial-update semantics. It still omits failure/rollback behavior and what verification of "上线" concretely means.

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?

Front-loaded with the verb and the write/confirm constraint, then the ordered four-step procedure, then the field-merge rule. Every sentence carries distinct operational information with no filler.

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?

Covers mutation semantics, the confirm requirement, ordering, and merge behavior for a 10-parameter tool with no output schema and no annotations. The main residual ambiguity is whether edit_tunnel internally performs the stop/restart cycle or whether the agent must orchestrate sibling calls, plus no statement about what a successful response contains.

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; the description adds real meaning beyond the schema by stating that only explicitly passed fields are overridden while others retain current cloud values, which is exactly the ambiguity a 10-param partial-update tool creates. The confirm parameter's mandatory-true constraint is also reinforced.

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 ("修改已有隧道配置") and scopes it to existing tunnels, which cleanly separates it from create_tunnel/delete_tunnel in the sibling list. An agent knows immediately this is a mutation of an existing tunnel object.

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 clear preconditions (write operation, confirm: true required) and prescribes the operating procedure (stop tunnel first, because online edits do not take effect). It does not explicitly route to stop_tunnel/start_tunnel siblings by name, so the agent must infer which sibling calls implement the four steps.

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