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
| Name | Type | Description |
|---|---|---|
zone_id required | string | zone_id parameter |
kind required | openapi_v3 | The kind of the schema |
name required | string | A human-readable name for the schema |
source required | string | The raw schema, e.g., the OpenAPI schema, either… |
validation_enabled required | boolean | An 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:
{
"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:
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 ….