Skip to main content
Glama

login_qr

Generate a webpage login QR code for NetEase Music and return its local PNG path. Use the browser login method if the phone reports an abnormal device environment.

Instructions

生成网页登录二维码;如手机提示设备环境异常,改用 login_browser。返回本机 PNG 路径。

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "login_qr"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.3

TDQS

A4.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, openWorldHint=true, destructiveHint=false, so the network/side-effect profile is partly covered. The description adds the useful fact that it returns a local PNG path and documents one real failure mode (device environment anomaly). It does not say that this starts a login session that presumably must be polled via login_check, nor anything about QR expiry, which is the main behavioral gap.

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

Conciseness5/5

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

Three compact clauses, front-loaded with the action, then the fallback rule, then the return value. No filler and nothing redundant.

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?

With no output schema, the description correctly compensates by naming the returned PNG path, and it covers the key alternative. It omits what to do after the user scans (verifying with login_check) and any note on code lifetime, which an agent orchestrating a login flow would want.

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 tool takes zero parameters, so the schema has nothing to explain and the description has no parameter burden to carry. Baseline 4 applies.

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?

States a specific verb and resource ('生成网页登录二维码') and immediately frames it against the sibling that competes for the same intent ('改用 login_browser'). An agent can distinguish this from login_browser without inspecting either schema.

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

Usage Guidelines5/5

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

Gives an explicit selection rule: use this tool normally, but switch to login_browser when the phone reports an abnormal device environment. That is a concrete when-to-use-this / when-to-use-alternative condition rather than implied usage.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.