Skip to main content
Glama
kingcos

fanfou-mcp

by kingcos

get_public_timeline

Get public timeline from Fanfou, supporting keyword search and pagination to access older posts.

Instructions

获取公开时间线

调用饭否 API 的 /statuses/public_timeline.json 接口获取饭否全站最新的公开消息, 这些是所有用户可见的公开饭否内容。

当提供搜索关键词时,会调用 /search/public_timeline.json 接口进行搜索。

Args: count: 获取数量,默认 5 条 max_id: 返回列表中内容最新 ID,用于分页获取更早的内容 q: 搜索关键词,如果为空则获取普通公开时间线;如果不为空则搜索包含该关键词的公开消息

Returns: 公开时间线列表,每个元素包含: - 饭否内容: 消息文本内容(HTML 格式) * 转发:以「转@」开头,后跟用户链接,如 转@kingcos,其中 href 中的是用户 ID,inner Text 是被转发用户的显示名称,一条饭否可能有多个转发 * 话题:以「#」包围,如 #正在播放#,其中 q/ 后面的是话题名,一条饭否可能有多个话题 * 审核状态:如果内容末尾显示「【审核中】」,表示该内容正在审核中 - 发布 ID: 消息的唯一标识符 - 发布时间: 消息发布时间,需转为北京时间 - 发布者: 发布者的用户名 - 发布者 ID: 发布者的用户 ID - 图片链接: 如果包含图片,则提供图片链接

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
countNo
max_idNo
qNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/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 details the API endpoints, data source (public content), and return structure. It is clear it is a read operation. However, it does not discuss authentication or rate limits, but given the detail, it is above average.

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

Conciseness3/5

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

The description is lengthy (approx. 30 lines) but well-structured with sections. While informative, some details in the return format could be streamlined. It is not maximally concise, but structure earns a baseline score.

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?

Given the tool has three simple parameters and a detailed return description (despite an output schema not being fully provided), the description covers behavior, input, and output comprehensively for an agent to use effectively.

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

Parameters5/5

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

Schema description coverage is 0%, so the description must compensate. It thoroughly explains all three parameters: count (default 5), max_id (for pagination), and q (search keyword). This adds significant meaning beyond the schema's bare titles and types.

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 tool retrieves the public timeline from Fanfou API, specifying two modes: normal retrieval and search. It distinguishes between them but does not explicitly differentiate from sibling tools like get_home_timeline or get_user_timeline.

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 explains when to use each mode (when q is provided vs not), but lacks guidance on when to choose this tool over alternatives such as get_home_timeline or get_user_timeline. No when-not or exclusion conditions are given.

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/kingcos/fanfou-mcp'

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