Skip to main content
Glama
kingcos

fanfou-mcp

by kingcos

manage_favorite

Add or remove a post from your favorites on Fanfou. Specify the post ID and the action ('create' or 'destroy') to manage the favorite status.

Instructions

管理饭否内容的收藏状态

调用饭否 API 的 /favorites/create/id.json 或 /favorites/destroy/id.json 接口 来收藏或取消收藏指定的饭否内容。

Args: status_id: 饭否内容的 ID action: 操作类型,"create" 表示收藏,"destroy" 表示取消收藏 confirm: 是否确认操作(二次确认参数)

Returns: 操作结果字典,包含: - 是否收藏: 操作后的收藏状态 - 操作结果: 操作是否成功的描述信息 - 操作类型: 执行的具体操作(收藏/取消收藏)

或者确认信息字典,包含:
- 需要确认: 是否需要用户确认
- 内容预览: 要操作的内容预览
- 确认提示: 如何进行确认的说明

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
status_idYes
actionYes
confirmNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior5/5

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

详细说明了调用的API、操作影响、二次确认流程和返回结果,弥补了无注释的不足。

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?

描述较长但分段清晰,信息完整,略可精简。

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

Completeness5/5

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

覆盖了输入、输出、行为,配合输出schema说明,对工具使用场景描述充分。

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?

所有3个参数均有详细说明,包括status_id含义、action的create/destroy取值、confirm的确认作用,补充了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?

明确指定了管理饭否内容的收藏状态,通过调用具体API接口,与其他发布、删除等工具区分。

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?

描述了收藏/取消收藏的操作,但未明确排除其他场景或提供替代方案。

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