Skip to main content
Glama

login-with-qrcode

Obtain a QR code from the Zhihu login page for user authentication. Optionally switch to QR login mode using custom selectors.

Instructions

访问知乎登陆页面,并获取二维码。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
qrSelectorNo用于提取二维码的HTML选择器,默认值:.Qrcode-qrcode。
switchQrSelectorNo切换成二维码登录方式对应的HTML选择器,默认为空。不为空时会操作点击切换成二维码登录方式。
Behavior2/5

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

With no annotations, the description carries full burden for behavioral disclosure. It mentions accessing a page and getting a QR code but omits crucial details like whether this involves opening a browser, if user interaction (scanning) is required, or any network effects. The behavior is underspecified.

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 a single sentence with no filler. However, it is in Chinese, which may be a barrier for non-Chinese agents. The brevity is appreciated, but a bit more structure (e.g., two sentences) could improve clarity.

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

Completeness2/5

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

Given the lack of output schema and annotations, the description is insufficient. It does not specify what the tool returns (e.g., QR code image data, URL) or any side effects (e.g., session cookies). For a login tool, more context is needed for correct invocation.

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 description coverage is 100%, and the tool description does not add extra value beyond the parameter descriptions. The baseline score of 3 is appropriate as the schema already documents both parameters adequately.

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 it accesses the Zhihu login page and retrieves the QR code. This is a specific action that distinguishes it from sibling tools like get-login-status or scrape-webpage. However, it does not explicitly clarify the output format (image, URL, etc.).

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

Usage Guidelines2/5

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

No guidance is provided on when to use this tool versus alternatives. Since there are no other login-related siblings, the context is implied but not explicit. The description lacks any conditions, prerequisites, or scenarios for appropriate use.

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/morrain/zhihuMcpServer'

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