Skip to main content
Glama
kingcos

fanfou-mcp

by kingcos

get_user_timeline

Retrieve posts from a Fanfou user's timeline. Supports pagination and keyword search.

Instructions

根据用户 ID 获取某个用户发表内容的时间线

调用饭否 API 的 /statuses/user_timeline.json 接口获取指定用户的时间线。 如果 user_id 为空,则获取当前登录用户的时间线。

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

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

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

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
user_idNo
max_idNo
countNo
qNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

With no annotations, the description should disclose behavioral traits like authentication needs, rate limits, or side effects. It only mentions API endpoints and output format, lacking details on permissions, error conditions, or data mutability.

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 well-structured with sections for summary, usage, args, and returns. It is somewhat lengthy but front-loaded with key purpose. Could be slightly more concise, but overall effective.

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 presence of an output schema, the description covers return format in detail (HTML formatting, forwarding, topics, audit status). It explains two modes of operation. Missing error handling, but overall provides sufficient context for an agent.

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

Parameters4/5

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

Schema description coverage is 0%, but the description explains each parameter's meaning and behavior (e.g., user_id empty gets current user, q enables search, max_id for pagination). This adds significant value beyond the bare schema.

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 it retrieves a user's timeline via specific API endpoints, distinguishes between current user and other users based on user_id, and handles search functionality. It differentiates from siblings like get_home_timeline and get_public_timeline.

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

Usage Guidelines4/5

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

Provides conditions for when to use different parameter values (empty user_id, q provided). However, it does not explicitly state when to use this tool over sibling tools, though the name and context imply typical usage.

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