Skip to main content
Glama
hetiankong

WeChat Local Agent MCP

by hetiankong

count_messages

Count WeChat messages within a period or chat by scanning stable 200-message pages, without retrieving message bodies.

Instructions

Count a bounded period without returning bodies; scans stable 200-message pages.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
chatNo
periodNotoday
talkerNo
timezoneNoAsia/Shanghai
max_messagesNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior3/5

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

With no annotations, the description carries the transparency burden. It discloses that the tool scans stable 200-message pages and does not return bodies, which is useful. However, it omits important behavioral details such as the max_messages cap and potential truncation of counts, limiting full transparency.

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?

The description is a single, front-loaded sentence with no filler words, earning every character. However, the term 'stable' is jargon and could confuse agents, slightly reducing clarity.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool with five optional parameters and an output schema, the description is far too brief. It fails to explain parameter meanings, the max_messages limit, and when to use this tool versus siblings, leaving significant gaps in context for correct invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters1/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema description coverage is 0%, and the description does not explain any of the five parameters (chat, period, talker, timezone, max_messages). 'Bounded period' only vaguely references the period parameter, leaving all other parameters semantically unexplained.

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 clearly states the tool 'Count a bounded period without returning bodies', using a specific verb and resource, and distinguishes it from reading tools. It clarifies the scope (bounded period) and the key behavior (no bodies), which differentiates it from siblings like read_chat_range.

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 implies the tool is used when only a message count is needed, but it does not explicitly state when to use it over alternatives or mention any exclusions. There is no naming of sibling tools or comparison to similar functions, leaving usage context vague.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/hetiankong/wechat-local-agent-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server