Skip to main content
Glama
ry-ops

Cloudflare MCP Server

by ry-ops

get_zone

Retrieve detailed configuration and settings for a specific Cloudflare zone using its unique zone ID to manage DNS, security, and performance settings.

Instructions

Get detailed information about a specific zone by zone ID

Input Schema

NameRequiredDescriptionDefault
zone_idYesThe zone ID

Input Schema (JSON Schema)

{ "properties": { "zone_id": { "description": "The zone ID", "type": "string" } }, "required": [ "zone_id" ], "type": "object" }

Implementation Reference

  • The handler function for the 'get_zone' tool. It retrieves detailed information about a specific Cloudflare zone by calling the Cloudflare API endpoint /zones/{zone_id} using the shared _make_request method.
    async def _get_zone(self, args: dict) -> Any: """Get zone details.""" return await self._make_request(f"/zones/{args['zone_id']}")
  • Input schema definition for the 'get_zone' tool, specifying that a 'zone_id' string is required.
    inputSchema={ "type": "object", "properties": { "zone_id": { "type": "string", "description": "The zone ID", } }, "required": ["zone_id"], },
  • Registration of the 'get_zone' tool in the list_tools() function, including name, description, and input schema.
    Tool( name="get_zone", description="Get detailed information about a specific zone by zone ID", inputSchema={ "type": "object", "properties": { "zone_id": { "type": "string", "description": "The zone ID", } }, "required": ["zone_id"], }, ),
  • Dispatch logic in the call_tool handler that routes 'get_zone' calls to the _get_zone method.
    elif name == "get_zone": result = await self._get_zone(arguments)

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/ry-ops/cloudflare-mcp-server'

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