Skip to main content
Glama
SsssssSynqa

WeChat MCP Server

by SsssssSynqa

get_chat_history

Retrieve past WeChat messages for a contact by matching name or remark, with optional date range and limit controls.

Instructions

获取指定聊天的消息记录。支持模糊匹配联系人名/备注名,支持按日期范围筛选。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo返回的消息数量,默认50
end_dateNo结束日期(含),格式 YYYY-MM-DD 或 YYYY-MM-DD HH:MM,留空不限
chat_nameYes聊天对象的名字、备注名或wxid,自动模糊匹配
start_dateNo起始日期(含),格式 YYYY-MM-DD 或 YYYY-MM-DD HH:MM,留空不限

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

With no annotations provided, the description carries the full burden. It discloses fuzzy matching and date range filtering, which is useful. However, it does not mention return ordering, pagination, handling of system messages, or other behavioral traits, leaving notable gaps.

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 a single sentence with two clauses, efficiently covering the core function and key features. Every word contributes value, and it is front-loaded with the primary action.

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

Completeness3/5

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

The tool is relatively simple, and an output schema exists, so return values are covered. The description conveys the primary purpose and filtering capabilities, but lacks usage guidance and some behavioral details, making it minimally complete given the context.

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 description coverage is 100%, so the baseline is 3. The description's mention of fuzzy matching and date filtering duplicates what the schema already states for chat_name, start_date, and end_date, adding no extra semantic depth.

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 clearly states the verb '获取' (get) and resource '指定聊天的消息记录' (message records of a specified chat), which is specific. It also mentions fuzzy matching and date filtering, distinguishing it from siblings like get_recent_sessions or search_messages, though it does not explicitly name these alternatives.

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

Usage Guidelines2/5

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

No guidance is provided on when to use this tool vs. alternatives such as search_messages or get_recent_sessions. The description implies usage for retrieving a specific chat's history, but lacks explicit context for selection or exclusion.

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/SsssssSynqa/WeChat-ClaudeCode-MCP'

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