Skip to main content
Glama

restart_service

Restarts the Windows SakuraFrpService after confirmation, briefly interrupting all tunnels while they recover automatically.

Instructions

重启 Windows 服务 SakuraFrpService(该服务下所有隧道短暂中断后自动恢复)。必须传 confirm: true。

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "restart_service"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmNo确认执行写操作

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden, and it does disclose the key consequence: all tunnels under the service are briefly interrupted and then automatically recover. It omits other material behavior such as required privileges, typical downtime length, and failure modes, which leaves meaningful gaps for a disruptive write operation.

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?

Two compact sentences with zero filler: the action and its blast radius come first, and the mandatory parameter requirement follows. Nothing is repeated and nothing irrelevant is included.

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 single-parameter tool with no output schema, the definition covers the action, the disruption and recovery behavior, and the mandatory confirmation flag. Only operational details like permission requirements or post-restart verification are missing.

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%, but the schema does not list confirm as required (required count is 0), so the sentence '必须传 confirm: true' adds genuine meaning by declaring the parameter mandatory and fixing its value. It only stops short of explaining what happens if confirm is omitted or false.

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 pairs the specific verb '重启' (restart) with the exact resource 'Windows 服务 SakuraFrpService', which is unambiguous and distinct from the tunnel-level siblings such as start_tunnel or stop_tunnel. It stops short of explicitly contrasting itself with those siblings, so it lands just below the top mark.

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 only implied: the tool is for restarting the whole SakuraFrpService rather than an individual tunnel. There is no explicit guidance on when to choose a service restart versus stop_tunnel/start_tunnel, and no stated preconditions such as administrator rights or what to do if the service is stopped.

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