Skip to main content
Glama
NSLSolver MCP Server

NSLSolver MCP Server

Official
by NSLSolver

Solve Cloudflare Challenge (cf_clearance)

solve_cloudflare_challenge

Solves Cloudflare managed challenges and returns the cf_clearance cookie with its bound user agent for replay through the required proxy.

Instructions

Solve a Cloudflare managed challenge / "Just a moment..." interstitial and return the cf_clearance cookie plus the user_agent it is bound to (~2.5 s, $1.00 per 1,000). site_key is the challenge widget id (0x...): in the browser Network tab, find the request to challenges.cloudflare.com ending in /new/normal and copy the path segment after /rch/xxxxx/. A proxy is required; replay cf_clearance through the same proxy with the returned user_agent.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "url": "<url>",
      "site_key": "<site_key>",
      "proxy": "<proxy>"
    },
    "name": "solve_cloudflare_challenge"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesFull URL of the page where the protection is loaded.
proxyYesRequired. cf_clearance is bound to this proxy exit IP.
site_keyYesChallenge widget id (0x...).
user_agentNoOptional override; use the UA you will replay the cookie with.
accept_languageNoOptional Accept-Language override, e.g. en-US,en;q=0.9

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the annotations: discloses latency (~2.5 s), price ($1.00 per 1,000), the proxy requirement, and the crucial binding constraint that cf_clearance is tied to the proxy exit IP and user_agent. This is exactly the kind of replay-critical context annotations cannot convey.

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-loads what the tool does, then the site_key derivation, then the replay constraint — a sensible order with no filler. Sentences are dense and long, and the embedded quoting of the interstitial text and URL fragments makes it slightly harder to scan, but nothing is redundant.

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?

With no output schema, the description carries the burden of describing returns and does so precisely (cf_clearance cookie plus bound user_agent). Combined with cost, latency, proxy requirement, and replay instructions, an agent has everything needed to invoke and correctly use the result.

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 already 100%, so the baseline would be 3, but the description adds real meaning for site_key by explaining how to extract it from the /rch/xxxxx/ path in the challenges.cloudflare.com request. It also reinforces the proxy/user_agent coupling that the schema descriptions only state tersely.

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 and resource ('Solve a Cloudflare managed challenge / "Just a moment..." interstitial') and names the exact artifact returned (cf_clearance cookie plus bound user_agent). The Cloudflare-specific framing distinguishes it from siblings like solve_turnstile or solve_akamai without needing to enumerate them.

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 concrete operational conditions: a proxy is required, and the returned cf_clearance must be replayed through the same proxy with the returned user_agent. It also explains how to obtain site_key. It stops short of explicitly contrasting when to pick this over solve_turnstile for a Turnstile widget, leaving that inference to the agent.

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