Skip to main content
Glama
gzgs-xgxt-mcp
by yjp-jdp

获取图形验证码

xg_login_captcha

Fetches a graphical captcha from the student affairs system and returns a UUID plus a display-ready base64 image, enabling you to read the code and pass it with the UUID to the login step.

Instructions

拉取学工系统的图形验证码,返回 uuid 和可直接显示的 base64 图片。 拿到后让人读出验证码,再把 code + uuid 一起传给 xg_login_account。 注意:学校主入口是 CAS 单点登录,账号密码登录是否可用取决于学校是否给该账号开了本地登录。

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.6/5.0
Behavior4/5

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

With no annotations, the description carries the full load and does disclose the return shape and the human-in-the-loop requirement, plus the key caveat that the flow may be unusable under CAS-only accounts. It omits captcha/uuid expiry and refresh behavior, so an agent doesn't know how long the uuid stays valid or whether it must re-fetch on failure.

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 tight sentences, front-loaded with what is returned, then the next step, then the availability caveat. No restatement of the title and no filler.

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?

For a zero-parameter tool with no output schema, the description covers the return values and the downstream handoff, which is what an agent needs to act. The remaining gap is lifecycle information (captcha/uuid validity, retry on wrong code) that would complete the picture.

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 no parameters, so the baseline is 4. The description adds no parameter detail because none is needed, and it usefully clarifies that the resulting code and uuid belong to a different tool's inputs.

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 defines the return payload (uuid plus a directly displayable base64 image). It also routes to the sibling xg_login_account, so an agent can place it in the login flow without opening other schemas.

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 procedure: fetch the captcha, have a human read it, then pass code + uuid together to xg_login_account. It also warns when not to bother — CAS SSO is the primary entry and account/password login may be unavailable unless the school enabled local login for that account.

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