Skip to main content
Glama

Ykb Login

ykb_login

Launches a local browser login page for Yikaobang so you can enter your phone number and password directly, keeping credentials out of chat; then check login status.

Instructions

打开本地网页登录医考帮:在 127.0.0.1 启动一次性登录页并自动打开浏览器(结果中也附 URL)。手机号与密码由用户在浏览器中输入,由本地进程直接提交官方接口,全程不经过对话。严禁向用户索要手机号/密码。默认等待登录完成(120 秒);返回 pending 时让用户继续操作,之后用 ykb_login_status 查询。凭据仅存本地 ~/.ykb-mcp/credentials.json(600 权限),不存储密码。

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": "ykb_login"
  }
}

Input Schema

NameRequiredDescriptionDefault
wait_secondsNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.8/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so: credentials flow only through the browser to the official API, never through conversation, are stored at ~/.ykb-mcp/credentials.json with 600 permissions, and passwords are not persisted. It also discloses the 120-second default wait and the pending outcome.

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?

Front-loaded with the core action and mechanism, then security constraints and fallback behavior in a logical order. Some clauses are packed into a dense run-on, but no sentence is filler.

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?

An output schema exists, so return values need not be detailed, yet the description still calls out the URL and pending status. For a one-parameter login tool, an agent has everything needed to invoke it safely and handle the outcome.

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 schema has zero description coverage, but the description explains that the default wait is for login completion at 120 seconds, giving wait_seconds meaning beyond the bare integer default. It does not explain the unit boundary or what happens on timeout beyond 'pending', leaving a small gap.

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 action and mechanism: launching a one-time login page on 127.0.0.1 and auto-opening the browser, plus noting the URL is returned. It also separates itself from ykb_login_status by explaining that tool is for polling after a pending result.

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 explicit when-to-use context, the follow-up path when the call returns pending (use ykb_login_status), and a hard prohibition against asking the user for phone/password. An agent knows exactly what to do and what not to do.

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