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
| Name | Required | Description | Default |
|---|---|---|---|
| zone_id | Yes | The 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"], },
- src/cloudflare_mcp_server/__init__.py:96-109 (registration)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"], }, ),
- src/cloudflare_mcp_server/__init__.py:408-409 (registration)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)