Skip to main content
Glama

Solve a Cloudflare Turnstile or WAF challenge

solve_turnstile

Clear a Cloudflare Turnstile challenge and obtain a single-use token for form submission. Provide the sitekey and the exact page URL where the challenge renders.

Instructions

Clear a Cloudflare challenge and return a token. gate is "turnstile" for an embedded widget (there is a data-sitekey in the page) or "waf" for a full-page Cloudflare interstitial. sitekey and url are both required; the url must be the page the challenge actually renders on, because a sitekey is bound to its configured hostnames. Tokens are single-use and expire in minutes — request one at the moment you submit. Failed solves are never billed. Requires SOLVEGATE_API_KEY.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesThe page URL the challenge renders on
gateYesWhich challenge type to clear
proxyNoOptional egress proxy URL to solve through
actionNoOptional Turnstile action label, if the widget sets one
sitekeyYesThe target's sitekey, e.g. 0x4AAAAAAA…

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes
modeYessandbox tokens NEVER clear a real gate
tokenYesSubmit this as the cf-turnstile-response field
billedYes
statusYes
solveMsYes
summaryYes
errorCodeYes
expiresAtYesUnix seconds after which the token is worthless
Behavior5/5

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

Adds valuable behavioral context beyond annotations: tokens are single-use, expire in minutes, failed solves are never billed, and the tool needs SOLVEGATE_API_KEY. These lifecycle and billing details materially affect invocation and go beyond what readOnlyhew/openWorldHint/idempotentHint convey.

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?

Tightly written and front-loaded with purpose, then delivers the parameter nuance, token lifecycle, and billing policy in sequence. No filler or redundant repetition of schema content.

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?

Given the output schema and rich annotations, the description supplies the remaining operational context: API key requirement, token lifecycle, failure billing, and host-binding constraint. An agent has enough to select and call this tool correctly.

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?

Although all parameters are already described in the schema, the description adds meaningful semantics: it explains when each `gate` value applies, why the URL must be the real rendering page, and why sitekey/url are both required. It does not add details for proxy or action, but those are adequately covered in the schema.

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?

States a specific verb ('Clear') and resource ('Cloudflare challenge') plus the token output. It clearly identifies the two gate flavors but does not explicitly distinguish this tool from sibling tools like inspect_page or get_solve, which is the only thing preventing a 5.

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?

Provides clear context for choosing gate=turnstile vs gate=waf, and explains the URL must be the actual page where the challenge renders because sitekeys are host-bound. It does not explicitly state when not to use this tool or compare it to siblings, so it falls just short of full guidance.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/SolveGate/solvegate-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server