Skip to main content
Glama

tool_check_csdn_login

Check if the saved CSDN session is still logged in before publishing, so an expired login does not cause a failed draft upload.

Instructions

Check whether the saved CSDN session is still logged in.

Opens a browser (headless by default), loads www.csdn.net with the saved storage state, and reports login status. Call this before publish_csdn to avoid a failed publish due to an expired session.

Args: headless: Run headless (default True for a quick check).

Returns: dict with {ok, logged_in, needs_login, saved_session, message}

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
headlessNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/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 burden and does well: it discloses that a browser is launched, that headless is the default, that www.csdn.net is loaded with the saved storage state, and it enumerates the return keys. It omits cost/latency expectations and what happens if no saved session exists, but the operational picture is largely clear.

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 purpose is front-loaded in the first sentence, followed by mechanism, then Args/Returns blocks. Every sentence earns its place and nothing is padded.

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

Completeness5/5

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

No output schema exists, so the description supplies the return dict shape {ok, logged_in, needs_login, saved_session, message}, and it covers the single parameter and the side effect of launching a browser. Nothing needed to call it correctly is missing.

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%, but the tool has only one optional parameter, and the description explains it: 'headless: Run headless (default True for a quick check)', adding the rationale of speed that the bare boolean schema does not convey.

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+resource: checking whether the saved CSDN session is still logged in. It further distinguishes itself from siblings by naming publish_csdn as the operation it guards, so an agent can place it correctly without opening the schema.

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?

Gives explicit when-to-use guidance: 'Call this before publish_csdn to avoid a failed publish due to an expired session.' It stops short of naming tool_csdn_login as the remedy when needs_login is true, but the return key 'needs_login' points there.

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