Skip to main content
Glama

weibo_search

Search Weibo posts by keyword using authenticated cookies to access the mobile API.

Instructions

搜索微博帖子。需要登录 cookies(SUB token)。

⚠️ 微博搜索 API 需要登录 — 游客模式不可用。 热搜(weibo_hot_list)无需登录即可使用。

原理: 调用 m.weibo.cn 移动端 API,解析 cards[].mblog。 Cookie 文件: ~/.cn-scraper-cookies/weibo.json(需要 SUB cookie)

并发安全: ✅ 纯 HTTP/REST API,无共享状态,任意并发调用安全。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo返回条数上限 (默认 10)
keywordYes搜索关键词,如 "华为"

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior5/5

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

With no annotations provided, the description fully discloses behavioral traits: it uses m.weibo.cn mobile API, parses cards[].mblog, requires a specific cookie file, and is concurrency-safe. This adds significant value beyond the schema.

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 concise with multiple bullet points covering purpose, prerequisite, principle, and safety. It is front-loaded and efficient, though could be slightly more structured for readability.

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

Completeness4/5

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

The description covers prerequisites, underlying API, cookie handling, and concurrency. It also references an alternative sibling tool. With an output schema present (as indicated by context), the missing return value details are acceptable. Still, the description is fairly comprehensive.

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 schema already describes both parameters (keyword, limit) adequately. The description does not add additional parameter-specific information beyond the schema, so it meets the baseline for schema-rich tools.

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 explicitly states '搜索微博帖子' (search Weibo posts), clearly identifying the action and resource. It also mentions the need for login and distinguishes from weibo_hot_list, which does not require login, aiding differentiation among siblings.

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?

The description provides explicit guidelines: requires login cookies (SUB token), guest mode not available, and an alternative (weibo_hot_list) that does not need login. It also notes concurrency safety and cookie file location, giving clear when-to-use and when-not-to-use context.

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/goesByhc/cn-scraper-mcp'

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