Skip to main content
Glama
OmniQQ-MCP

OmniQQ-MCP

by haoan33

get_login_info

Read-onlyIdempotent

Retrieve the current online QQ account's QQ number and nickname to confirm the active login or verify OneBot connectivity.

Instructions

获取当前在线 QQ 账号的基础身份信息,返回 user_id(QQ 号)与 nickname(昵称)(OneBot 11: get_login_info)。 适用场景:快速确认当前是哪个 QQ 号在线,或验证 OneBot 接口连通性。不适用与替代:若需检查本地所有已缓存的历史账号列表或运行时安装与 GitHub 最新版本对比,请改用 check_napcat_environment。 行为与返回:纯只读无副作用操作;成功返回 status='ok' 及 data: {"user_id": int, "nickname": str},若当前未登录或服务未启动则返回 status='failed' 及非 0 retcode。

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

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.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint, so the safety profile is covered; the description still adds value by disclosing failure behavior — `status='failed'` with a non-zero `retcode` when not logged in or the service is down. The success payload shape it repeats is somewhat redundant given an output schema exists.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Content is front-loaded — purpose and returned fields first, then usage, then behavior — and each labeled block contributes something distinct. It is slightly longer than necessary because the success payload restates what the output schema already defines.

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?

With rich annotations, a full output schema, and no input parameters, the remaining burden was sibling disambiguation and failure-mode disclosure — both are present. An agent has everything needed to call this correctly and interpret failures.

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 zero parameters (additionalProperties: false), so there is nothing for the description to disambiguate. Baseline 4 applies; no parameter-level confusion is possible.

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 names a specific verb+resource ("获取当前在线 QQ 账号的基础身份信息") and enumerates the exact returned fields `user_id` and `nickname`, plus the underlying OneBot action. It explicitly distinguishes itself from `check_napcat_environment`, so an agent can pick between them without opening schemas.

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 gives an explicit 适用场景 (confirm which QQ account is online, verify OneBot connectivity) and an explicit 不适用与替代 that routes to `check_napcat_environment` for cached-account lists or version checks. Both when-to-use and when-not-to-use are stated.

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