Home / Servers / Cloudflare API / schema_validation_create_schema

Upload a schema

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

Upload a schema Uploads an OpenAPI schema that defines expected request formats for API operations. [POST /zones/{zone_id}/schema_validation/schemas]

Name on the gateway: cloudflare_api__schema_validation_create_schema · may change things.

Parameters

NameTypeDescription
zone_id requiredstringzone_id parameter
kind requiredopenapi_v3The kind of the schema
name requiredstringA human-readable name for the schema
source requiredstringThe raw schema, e.g., the OpenAPI schema, either…
validation_enabled requiredbooleanAn indicator if this schema is enabled

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__schema_validation_create_schema",
  "arguments": {
    "zone_id": "…",
    "kind": "…",
    "name": "…",
    "source": "…",
    "validation_enabled": true
  }
}

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 upload a schema tool with zone_id set to ….

More from Cloudflare API