Skip to main content
Glama

boss_login

Manage BOSS Zhipin login sessions for Career Kit job-data scraping: check status, open a visible QR login page, or close the dedicated browser.

Instructions

管理 BOSS 直聘登录会话(status / login / close)。

何时调用:

  • 用户同意抓取 BOSS 后,先调用 action="status" 判断是否已登录;

  • 未登录时调用 action="login" 打开可见登录页,用户只需扫码;

  • 需要关闭专用浏览器时调用 action="close"。

Args: action: status(只读检查,零副作用)/ login(打开登录页等待扫码)/ close(关闭专用浏览器) live: 仅 action="status" 生效;true 时额外做一次真实搜索探测(后台标签页) timeout: action="login" 的最长等待秒数

Returns: JSON 字符串:登录标记、剩余 TTL(唯一来源 LOGIN_TTL_SECONDS)、 CDP 端口与专用浏览器进程状态,以及下一步建议。 登录成功不会关闭浏览器;失败时保留登录页与浏览器供继续扫码。

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

Input Schema

NameRequiredDescriptionDefault
liveNo
actionNostatus
timeoutNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.8/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does most of it: status is declared read-only with zero side effects, login opens a visible page where the user only scans a QR code, success does not close the browser, and failure retains the page and browser for continued scanning. It stops short of covering repeat-invocation safety, behavior when a session already exists, or error/permission conditions, which keeps it below the top mark.

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?

The description is front-loaded with purpose, then a dedicated when-to-call block, then Args and Returns sections. Each sentence carries operational information; the Args lines mirror exactly the three parameters and the rationale for each action, with no 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?

Although an output schema exists, the Returns section adds genuine value by naming the login flag, the remaining TTL sourced from LOGIN_TTL_SECONDS, CDP port and browser-process state, and next-step suggestions. For a session-control tool with side-effecting actions, everything an agent needs to call it and interpret the outcome is present.

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?

Schema coverage is 0%, and the description fully compensates: each of the three parameters is given meaning, including the enum-like action values (status = read-only check, login = open page and wait for scan, close = shut the dedicated browser), the conditional scoping of live (only affects status, true performs a real search probe in a background tab), and timeout as the maximum wait in seconds for login. This adds rules the bare schema cannot express.

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 opening line names a specific resource (the BOSS 直聘 login session) and enumerates the three operations it manages (status / login / close). No sibling tool overlaps with this session-lifecycle role, so an agent can identify its job without opening the 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?

The '何时调用' block gives an explicit ordered workflow: call action="status" first after the user consents to scraping, call action="login" only when not logged in, and call action="close" when the dedicated browser must be shut down. Each action's triggering condition is spelled out, leaving nothing to inference.

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