Skip to main content
Glama
kingcos

fanfou-mcp

by kingcos

generate_oauth_token

Generate an OAuth token by using your fanfou credentials via x_auth for password-free login. Save the token to environment variables for later use.

Instructions

生成 OAuth Token

使用用户名密码通过 x_auth 方式生成 OAuth Token,用于后续免密登录。 生成的 Token 会在控制台输出,用户需要手动保存到环境变量中。

环境变量要求:

  • FANFOU_API_KEY: 饭否应用的 API Key

  • FANFOU_API_SECRET: 饭否应用的 API Secret

  • FANFOU_USERNAME: 饭否用户名

  • FANFOU_PASSWORD: 饭否密码

Returns: 包含 OAuth Token 信息的字典,包括 oauth_token 和 oauth_token_secret

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

No annotations are provided, so the description carries the full burden. It discloses that the token is output to the console, the user must manually save it to an environment variable, and lists required environment variables. This provides good transparency about the manual step and prerequisites, though it lacks details on error handling or token persistence.

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 a clear title, explanation, prerequisite list, and return description. It is front-loaded with the purpose. The environment variable list is necessary but slightly verbose; overall concise.

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 zero parameters and no annotations, the description adequately covers the tool's purpose, method, prerequisites, and output. It does not mention error cases or token lifecycle, but for a simple authentication tool it is fairly complete.

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?

The input schema has zero parameters, so schema coverage is 100%. The description clarifies that there are no input parameters but instead relies on environment variables (FANFOU_API_KEY, etc.), adding meaning beyond the empty schema. It also describes the return value structure.

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 the tool generates an OAuth token using username/password for subsequent passwordless login. It specifies the verb 'generate', the resource 'OAuth Token', and the method 'x_auth'. This clearly distinguishes it from sibling tools which focus on statuses, users, favorites, etc.

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?

The description explains the token is for subsequent passwordless login (when to use) and lists required environment variables (prerequisites). However, it does not explicitly state when not to use this tool (e.g., if a token already exists) or contrast with alternatives, though no alternatives exist among siblings.

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