Skip to main content
Glama

logout

Clear saved LeetCode CN credentials from the system keychain to sign out and protect your account.

Instructions

删除系统钥匙串中保存的 LeetCode 中国站凭证。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

With no annotations provided, the description carries the full burden of disclosing side effects. It clearly states that the tool deletes credentials from the system keychain, which is the core behavioral trait. It does not mention whether remote sessions are invalidated, but for a credential-removal operation this is reasonably transparent.

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, focused sentence with no filler or redundant information. It front-loads the action and resource without unnecessary context or repeated tool name.

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 parameterless tool with no output schema, the description sufficiently explains what the tool does and where it operates. It could add a note about the result or idempotency, but the core behavioral contract is complete enough for an agent to select and invoke it correctly.

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 input schema has zero parameters, so the baseline is 4. The description does not need to explain parameter semantics; it appropriately focuses on what operation the tool performs. There is no gap here.

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 uses a specific verb ('删除' / delete) and states the exact resource affected: LeetCode China credentials stored in the system keychain. This clearly distinguishes logout from siblings like login and auth_status, as it is the only one that removes stored credentials.

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?

The intended usage is implied by the tool name and description: it should be called when the user wants to clear the saved LeetCode China credentials. However, there is no explicit guidance about when to use this instead of auth_status or login, nor any 'when not to use' conditions.

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