Skip to main content
Glama
linuxdo-mcp
by Xero-Team

Report the linux.do session

session_status
Read-onlyIdempotent

Check Cloudflare clearance status for linux.do and determine whether browser refresh is available; if not, get the blocking reason, such as missing Chromium, Playwright, or DISPLAY.

Instructions

Report how this server currently reaches linux.do.

Shows whether a Cloudflare clearance is loaded, its fingerprint and age, and whether a browser refresh can run in this process. When it cannot, browser_unavailable_reason says why: no Chromium, no Playwright, or no DISPLAY — an MCP host may have stripped the display from the child environment, in which case run 'linuxdo-mcp doctor --refresh' from a desktop shell. It never returns the cookie.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "session_status"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
ageNoThe same age as a short duration (3h32m); null when no cookie is stored.
modeYescleared when a clearance cookie is loaded and usable, anonymous when the site needs no credential at all, missing when it needs one and none is stored.
siteYesSite key this process was started for (linuxdo, idcflare).
staleNoTrue when the stored clearance is older than 30 days. Reads may still work; the transport keeps replaying it until the forum actually challenges, then refreshes.
base_urlYesOrigin every request is built from.
transportYesHow requests are sent: 'httpx' plus a Cloudflare clearance for a site that challenges anonymous callers, or 'curl_cffi' reproducing a browser TLS fingerprint for a site that judges it.
acquired_atNoISO 8601 timestamp of the browser run that obtained it.
age_secondsNoWhole seconds since that run; null when no cookie is stored.
profile_dirNoPersistent browser profile the clearance came from, home-relative (~/.cache/...); null when the site needs no browser at all.
last_challengeNoLast challenge timestamp, when the forum blocked a call.
browser_availableYesWhether a browser refresh can run in this process right now. False is normal under an MCP host that spawns the server with a filtered environment, and it is meaningless for a site that needs no clearance.
cookie_fingerprintYesFirst 4 characters and length of the clearance cookie, never its value.
browser_unavailable_reasonNoWhy the refresh cannot run: no Chromium binary, the optional Playwright extra is missing, or this process has no DISPLAY/WAYLAND_DISPLAY because an MCP host stripped it. Null when browser_available is true.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior5/5

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

Beyond the read-only, open-world, idempotent annotations, the description discloses what is shown: Cloudflare clearance presence, fingerprint, age, and browser-refresh capability. It also explains failure reasons, an environment-specific remediation command, and the important security guarantee that the cookie is never returned.

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?

The description is front-loaded with the core purpose and then adds useful failure-mode and remediation detail. It is dense but largely earns its space; the troubleshooting command and environment caveat are valuable, though the paragraph could be structured slightly more tightly.

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?

For a no-parameter diagnostic tool with an output schema, the description gives enough context to call it correctly: what status is reported, why browser refresh may fail, what field explains the reason, and that the cookie is never exposed. Nothing an agent needs for correct invocation appears 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?

There are zero parameters, so there is no parameter meaning to add, and the schema coverage is complete. The description appropriately focuses on behavior rather than parameters.

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 first sentence uses a specific verb, 'Report,' and a specific resource, 'how this server currently reaches linux.do,' then the details confirm this is a diagnostic session-status check. It is clearly different in nature from the sibling content-retrieval tools, though it does not explicitly name or contrast them.

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 description implies diagnostic usage by explaining what is reported and what to do when browser refresh is unavailable. However, it does not explicitly state when an agent should call this tool instead of the sibling content tools, nor does it give exclusions or preferred alternatives.

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