Skip to main content
Glama
NSLSolver MCP Server

NSLSolver MCP Server

Official
by NSLSolver

Solve Cloudflare Turnstile

solve_turnstile

Solves a Cloudflare Turnstile widget and returns a single-use token for submitting as the cf-turnstile-response field. Provide the page URL and site key; tokens expire after about 300 seconds.

Instructions

Solve a Cloudflare Turnstile widget and return a token (~250 ms, $0.80 per 1,000). site_key is the data-sitekey attribute (starts with 0x4AAAA...) of the .cf-turnstile element, or the sitekey passed to turnstile.render(). Submit the returned token as the cf-turnstile-response form field (or wherever the site sends it). Tokens are single-use and expire after ~300 s. No proxy needed.

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>"
    },
    "name": "solve_turnstile"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesFull URL of the page where the protection is loaded.
cdataNoOnly if the widget sets data-cdata. Must match exactly.
proxyNoOptional. Turnstile is solved proxyless by default.
actionNoOnly if the widget sets data-action. Must match exactly.
site_keyYesTurnstile data-sitekey, e.g. 0x4AAAAAAA...
user_agentNoOptional User-Agent to solve with.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.7/5.0
Behavior5/5

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

Annotations cover only the safety profile (non-read-only, non-idempotent, open-world), and the description adds substantial behavior beyond that: ~250 ms latency, $0.80 per 1,000 solves, single-use tokens with a ~300 s expiry, and that no proxy is required. The post-solve instruction (submit the token as the cf-turnstile-response field) is exactly the kind of downstream behavior an agent needs and cannot infer from structured fields.

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 core action, cost, and latency are front-loaded, followed by input identification, then the token's downstream use and lifecycle constraints. Every sentence carries operative information — cost, timing, site_key location, token submission, single-use/expiry, proxy — with no filler or repetition.

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 6-parameter, output-less solver, the description covers everything an agent needs: what it does, the input source for the critical site_key, the cost/latency tradeoff, and — crucially — how long the returned token remains valid and where to send it. No output schema exists, and the token's nature and usage are explained in prose instead.

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 100%, so a baseline of 3 applies, but the description genuinely enriches site_key by identifying it as the data-sitekey attribute on the .cf-turnstile element or the value passed to turnstile.render(), plus the 0x4AAAA prefix. It does not explain the optional cdata, action, user_agent, or proxy parameters, but those are already documented in-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 opening clause states a specific verb and resource ("Solve a Cloudflare Turnstile widget and return a token"), which unambiguously separates it from siblings like solve_recaptcha_v3, solve_akamai, or solve_cloudflare_challenge. It also states the output artifact (a token), so an agent knows what it gets back without opening any 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?

Usage context is clear: the page must host a Turnstile widget, and "No proxy needed" pre-empts the obvious proxy question and implicitly contrasts with proxy-requiring solvers. What is missing is explicit routing against the sibling solve_cloudflare_challenge — the description never says when to pick one over the other.

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