Skip to main content
Glama

login

Authenticate to LeetCode CN through a local secure page, storing the cookie in your system keychain. The cookie is never passed as a tool argument or exposed to the model context.

Instructions

通过本机安全页面登录 LeetCode 中国站并将 Cookie 保存到系统钥匙串。Cookie 不作为工具参数,也不会进入模型上下文。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
forceNo
Behavior4/5

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

With no annotations, the description carries the behavioral disclosure burden. It usefully reveals that the Cookie is persisted to the keychain and deliberately kept out of the model context, which is a significant security-relevant behavior. However, it does not explain what happens if the user is already logged in or whether the operation is destructive.

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 a single concise sentence that front-loads the action and purpose, then adds a key privacy detail. No word is wasted and all content is relevant.

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 one-parameter login tool, the description covers the main purpose and an important security behavior. Yet it misses the meaning of the only parameter, force, and gives no guidance on when a forced re-login might be needed or how to verify auth state.

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

Parameters1/5

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

Schema description coverage is 0%, so the description must compensate by explaining the force parameter, but it never mentions force at all. The parameter is entirely unexplained, leaving the agent unable to infer the effect or meaning of force.

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 description clearly states a specific action (login to LeetCode China) and its key outcome (saving the Cookie to the system keychain). It is easily distinguished from siblings like auth_status, logout, and data-retrieval tools.

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?

The description does not say when to use login versus auth_status or logout, nor does it mention prerequisites. It implies authentication is needed but gives no explicit usage context or alternatives.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/lkastar/leetcode-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server