Skip to main content
Glama
OmniQQ-MCP

OmniQQ-MCP

by haoan33

get_recent_notices_and_requests

Read-onlyIdempotent

Retrieve recent group notices and friend/group join requests from local WebSocket cache. Use returned flags to approve requests or monitor group activity.

Instructions

从本地 WebSocket 环形缓存池中读取近期实时捕获的群通知事件(群文件上传、消息撤回、禁言、成员变动)及加好友/加群验证请求。 适用场景:监听群动态或获取验证请求的 flag 标识以便通过 call_napcat_api 调用 set_friend_add_request / set_group_add_request 审批。不适用与替代:若需读取普通私聊或群聊文字/富媒体消息,请改用 get_recent_messages。 行为与返回:纯本地内存只读操作;返回 ws_connected、notices 数组与 requests 数组。

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_recent_notices_and_requests"
  }
}

Input Schema

NameRequiredDescriptionDefault
countNo通知与请求各自返回的最大条数(范围 1~200,默认 20)

Output Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.2.2
    • changedInput schema / properties / count / description
      Previous value: -"最大返回条数,默认 20"New value: +"通知与请求各自返回的最大条数(范围 1~200,默认 20)"
    • 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.4/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=false, and the description reinforces the safety profile as a pure local in-memory read. It adds genuinely new context — the source is a 环形缓存池 (ring buffer), so only recent events are retained — plus the top-level return shape. It stops short of stating how much history the buffer holds or whether entries can be evicted mid-read.

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?

Front-loaded with the core action, then split into three labeled clauses (适用场景 / 不适用与替代 / 行为与返回) so a scanning agent finds routing information immediately. Slightly verbose in the enumeration of event types, but every clause carries routing or behavioral value.

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?

An output schema exists so return fields needn't be re-explained, annotations carry the safety profile, the single parameter is fully documented, and the description supplies the remaining decision-critical pieces: data source (local ring buffer), the `flag` handoff into call_napcat_api, and the sibling alternative. Nothing needed to select or invoke it correctly is missing.

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% and the single `count` parameter already documents its default of 20 and range 1~200. The description says '各自返回的最大条数' nowhere and adds no semantics beyond the schema, so the baseline of 3 applies — the schema does the work here.

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 (近期群通知事件与加好友/加群验证请求) with the scope narrowed to the local WebSocket ring buffer, and enumerates the event types covered (群文件上传、消息撤回、禁言、成员变动). An agent can distinguish it from get_recent_messages without opening either schema.

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?

Explicitly gives 适用场景 (监听群动态, obtaining the `flag` for approval via call_napcat_api -> set_friend_add_request/set_group_add_request) and a 不适用与替代 clause naming the sibling get_recent_messages for ordinary chat messages. Both the when and the when-not are stated.

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