Skip to main content
Glama

Check login status

login_status
Read-onlyIdempotent

Check authorization status for DingTalk or WeCom, determine if the login process is still running, and retrieve any QR code, recent output, and exit code.

Instructions

查询登录状态:是否已授权、登录进程是否仍在运行、二维码(若可用)、最近输出与退出码。

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "provider": "<provider>"
    },
    "name": "login_status"
  }
}

Input Schema

NameRequiredDescriptionDefault
providerYesIM 平台标识:dingtalk=钉钉,wecom=企业微信

Output Schema

NameRequiredDescriptionDefault
okYes
authNoauth 查询的原始结果
hintYes
errorNo
outputNo登录进程最近输出
runningYes
exitCodeNo
providerYes
userCodeNo设备码流程的验证码(钉钉 device 模式)
authErrorNo
qrDataUrlNo
authorizedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.6.6

TDQS

A3.7/5.0
Behavior4/5

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

The annotations already declare readOnlyHint, idempotentHint, destructiveHint=false, and openWorldHint, so the safety profile is covered. Beyond that, the description usefully discloses that the tool surfaces a live login process state and a QR code when available, telling the agent this supports polling an asynchronous external-platform login. It stops short of stating prerequisites, expiry, or whether calling it has any side effect on the pending login.

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?

One compact sentence with the action front-loaded and the returned facets listed after a colon, so it scans quickly. The enumeration is dense but each item is informative; no filler or repetition.

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 an output schema present, the description need not spell out return shapes, and the annotations cover the read-only safety profile. For a one-parameter status check this is close to sufficient; the only real gap is the lack of guidance on when to prefer this over `login`.

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 single `provider` enum is documented inline in both Chinese and English, so the schema carries the parameter meaning fully. The description does not mention `provider` at all, adding nothing beyond the structured field. Baseline 3 applies.

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 gives a specific verb plus resource (query login status) and enumerates what the status covers: authorization, whether the login process is still running, QR code, recent output, and exit code. This makes it clearly distinct from the sibling `login` (which initiates a flow) and from `info`/`run`. It does not, however, explicitly name those siblings as alternatives.

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

Usage Guidelines3/5

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

Usage is only implied: an agent can infer this is the polling/checking counterpart to `login`, particularly from the mention of an in-flight login process and QR code. There is no explicit statement such as 'use before login to check for an existing session' or 'use instead of login when already authorized', and no exclusion of the sibling tools.

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

Deploy Server

Other Tools