Skip to main content
Glama

check_login

Read-onlyIdempotent

Confirm whether a Ctrip or Trip.com web session is logged in for a given platform and account. Returns null when status is uncertain; cookie presence alone does not mean logged in.

Instructions

通过网页登录标识核对状态;null 表示无法确认,Cookie 存在不等于已登录。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
accountNodefault
platformYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, non-destructive and open-world traits, yet the description adds real value beyond them: it warns that a null result means the state cannot be confirmed and that the presence of a Cookie does not prove a login. That failure-mode nuance is exactly what an agent needs before trusting a result.

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?

A single dense sentence: purpose first, then the return-value caveat. Every clause earns its place and nothing is padded, though the compressed phrasing makes the subject of the check slightly ambiguous.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple two-parameter, read-only tool with no output schema, the description covers purpose and the key result caveat, but leaves parameter semantics entirely unaddressed and never positions itself against open_login. Adequate but visibly short of complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description carries the full burden for 'platform' (required enum ctrip/trip) and 'account' (default, pattern), but neither parameter is explained or mapped to meaning. Only the vague phrase '网页登录标识' gestures at the inputs.

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 names a specific verb (核对/verify) and resource (登录状态, via a web login identifier), and clarifies the result semantics (null means unconfirmed). It does not name the sibling open_login to contrast itself against, so it stops short of a 5.

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

Usage Guidelines2/5

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

There is no statement of when to call this versus alternatives; the obvious sibling open_login is never mentioned, nor are prerequisites or sequencing (check before a session-dependent action). Usage is only implied by the verb.

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