Skip to main content
Glama
OmniQQ-MCP

OmniQQ-MCP

by haoan33

stop_napcat_service

DestructiveIdempotent

Safely terminate the local NapCatQQ sandbox process when taking the QQ bot offline or freeing ports 3000/3001; strict path checks prevent killing other Node.js processes.

Instructions

安全终止本地后台运行的 NapCatQQ 沙箱进程(严格校验进程可执行文件与入口路径,绝不误杀系统其他 Node.js 进程)。 适用场景:需要彻底下线当前 QQ 机器人、释放本地 3000/3001 端口或维护运行时目录时调用。不适用与替代:若希望重启服务或切换其他已缓存 QQ 号上线,请直接改用 switch_qq_account。 行为与副作用:破坏性但幂等的进程终止操作——调用后当前 QQ 账号立即离线且实时消息监听中断,直至重新调用 switch_qq_account、login_new_qq_by_qrcode 或任意触发自动自愈的核心工具;返回被终止的 PID 列表 stopped_processes 与端口状态。

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
dataNo接口返回的业务负载数据(对象或数组,具体字段依工具而定)
statusNo执行状态标识,成功为 'ok'(或特定生命周期状态),失败为 'failed' 或 'error'
messageNo状态说明或错误诊断详情
retcodeNoOneBot 11 响应状态码,0 表示成功,非 0 表示协议端或网络错误

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.2.2
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "data": {
      +      "description": "接口返回的业务负载数据(对象或数组,具体字段依工具而定)"
      +    },
      +    "message": {
      +      "description": "状态说明或错误诊断详情",
      +      "type": "string"
      +    },
      +    "retcode": {
      +      "description": "OneBot 11 响应状态码,0 表示成功,非 0 表示协议端或网络错误",
      +      "type": "integer"
      +    },
      +    "status": {
      +      "description": "执行状态标识,成功为 'ok'(或特定生命周期状态),失败为 'failed' 或 'error'",
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
  2. Changed1 schema field changedv1.1.0
    • addedInput schema / additionalProperties
      Added value: +false
  3. First observedv1.0.0

TDQS

A4.9/5.0
Behavior5/5

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

The annotations already declare destructive and idempotent behavior, and the description adds concrete context: strict validation of the process executable and entry path to avoid killing unrelated Node.js processes. It further discloses that the current QQ account goes offline, real-time message listening stops, recovery requires `switch_qq_account`, `login_new_qq_by_qrcode`, or auto-healing, and the return includes terminated PIDs and port status.

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?

The description is organized into clear sections: safety behavior, applicable scenarios, alternatives, and side effects. It is front-loaded with the core action and every sentence adds useful operational context without redundant filler.

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?

Given the tool has no parameters, rich annotations, and an output schema, the description covers the remaining gaps an agent needs: usage conditions, safety guarantees, destructive side effects, recovery paths, and return summary. Nothing essential is missing for correct invocation.

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?

The tool takes no parameters, so there are no parameter semantics for the description to clarify. With zero parameters and full schema coverage, the baseline score is 4.

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?

The description states a specific verb and resource: safely terminate the locally running NapCatQQ sandbox process. It also distinguishes the operation from account switching by naming `switch_qq_account` as the alternative when the goal is restart or online-account switching.

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

Usage Guidelines5/5

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

It explicitly lists when to use the tool: fully taking the QQ bot offline, releasing local ports 3000/3001, or maintaining runtime directories. It also gives a when-not-to-use case and directs the agent to `switch_qq_account` instead when restarting or switching cached accounts.

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