Skip to main content
Glama

delete_tunnel

Permanently delete a SakuraFrp tunnel by setting confirm: true; it stops the tunnel first, invalidates public access immediately, and rolls back if deletion fails.

Instructions

永久删除隧道。写操作,必须传 confirm: true。不可恢复,公网入口立即失效。会先停隧道再删除,删除失败自动回滚。可额外传 name 做二次校验防止删错。

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

Input Schema

NameRequiredDescriptionDefault
nameNo可选:隧道名二次校验,不匹配则拒绝删除
tunnelYes隧道 id 或隧道名
confirmNo确认执行写操作

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/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 a lot: write operation, irreversible, public ingress fails immediately, stop-then-delete sequence, and automatic rollback on failure. Missing is what rollback actually restores, whether confirm is enforced server-side, and what the response reports on success vs. rollback, so the mutation profile is incomplete.

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?

Five short clauses, front-loaded with the destructive action and the mandatory confirmation, then the side effects and rollback behavior. 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 three-parameter destructive tool with no annotations and no output schema, the definition covers irreversibility, side effects, sequencing, and failure handling. Only the return value/shape after success or rollback is left unstated, which is a minor gap given no output schema exists.

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 all three parameters, and the description largely restates them (confirm required, name optional). It does add that confirm must be specifically true and that name is a rejection-on-mismatch guard, which is meaningfully more than the schema's terse 'optional validation' text, but the gain is modest.

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?

States a specific verb and resource ('永久删除隧道') and immediately qualifies it as a permanent write operation, which separates it from stop_tunnel/start_tunnel siblings that only toggle state. It does not explicitly name an alternative, but the 'permanent + stops first then deletes' framing makes the distinction inferable.

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 description establishes the precondition for use (must pass confirm: true) and offers a guard against misuse (name double-check), which is real usage guidance. However, it never says when NOT to use it or points to stop_tunnel/edit_tunnel for reversible operations, leaving the agent to infer the alternative.

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