Home / Servers / Cloudflare API / ai_audit_get_robots

Get robots.txt rules

An MCP tool from the Cloudflare API server, hosted on mcp.hjlabs.in.

Get robots.txt rules Fetches and parses the robots.txt file for a zone or a specific subdomain within the zone. Returns… [GET /zones/{zone_id}/ai-audit/robots]

Name on the gateway: cloudflare_api__ai_audit_get_robots · read-only.

Parameters

NameTypeDescription
zone_id requiredstringzone_id parameter
subdomainstringOptional subdomain to fetch robots.txt for. If…

How to call it

Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:

call_tool arguments
{
  "name": "cloudflare_api__ai_audit_get_robots",
  "arguments": {
    "zone_id": "…"
  }
}

Or connect the Cloudflare API server directly, which lists 3,127 tools including this one:

Run in your terminal
claude mcp add --transport http hj-cloudflare-api https://mcp.hjlabs.in/mcp/cloudflare-api \
  --header "Authorization: Bearer YOUR_API_KEY"

Try asking

Use the get robots.txt rules tool with zone_id set to ….

More from Cloudflare API