Skip to main content
Glama

tool_csdn_login

Authenticate to CSDN via a visible browser to solve captchas and save the session cookies and localStorage for later headless publishing.

Instructions

Open a visible browser to log into CSDN and save the session.

First-time login MUST be visible (headless=False) so you can solve any captcha. After login is detected, the cookies + localStorage are saved so publish_csdn can run headless later. Complete the login in the browser window that opens.

Args: headless: Must be False for first login (kept for flexibility). timeout_ms: How long to wait for login (default 3 minutes).

Returns: dict with {ok, message, saved, path?}

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
headlessNo
timeout_msNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
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 and does well: it discloses that a visible browser window opens, that a captcha may need human solving, that cookies + localStorage are persisted for later headless use, and that a timeout governs the wait. It stops short of stating the save path format, permissions, or what happens if login fails.

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?

Front-loaded with the purpose and the critical visibility constraint, then Args/Returns. The Args section largely restates the schema, which is mildly redundant, but each sentence adds context rather than 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 2-param, no-output-schema tool, the description covers purpose, prerequisites (visible browser, captcha), side effects (saved session), and return shape ({ok, message, saved, path?}). An agent has enough to call it correctly; only error-mode behavior is unspecified.

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?

Schema coverage is 0%, so the description must compensate, and it does: both parameters are documented in prose — headless must be False for first login (and is otherwise latent), and timeout_ms is the wait duration with a stated 3-minute default. Only minor detail (units/config for timeout) is left to the schema.

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 first sentence gives a specific verb and resource ('Open a visible browser to log into CSDN and save the session'), immediately distinguishing it from siblings like tool_check_csdn_login (status check) and tool_clear_csdn_session (teardown). The saved-session outcome is stated up front.

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

Usage Guidelines4/5

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

It clearly states the condition for first-time use ('MUST be visible (headless=False) so you can solve any captcha') and ties the outcome to a later tool ('so publish_csdn can run headless later'). It does not explicitly route against alternatives such as check_csdn_login for verifying an existing session, so guidance is strong but not exhaustive.

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