create_global_rule
Define and deploy global rules in APISIX-MCP to configure plugins and control plugin behavior across the API gateway.
Instructions
Create a global rule
Input Schema
Name | Required | Description | Default |
---|---|---|---|
id | Yes | global rule ID | |
plugins | Yes | plugins configuration |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"id": {
"description": "global rule ID",
"type": "string"
},
"plugins": {
"additionalProperties": true,
"description": "plugins configuration",
"properties": {
"_meta": {
"additionalProperties": false,
"properties": {
"disable": {
"default": false,
"description": "control whether the plugin is enabled",
"type": "boolean"
}
},
"type": "object"
}
},
"type": "object"
}
},
"required": [
"id",
"plugins"
],
"type": "object"
}