APISIX-MCP

Official
by api7

create_or_update_consumer

Create or update a consumer in the APISIX-MCP server by specifying a username, description, group ID, labels, and plugins. Ensures consumers are managed efficiently.

Instructions

Create a consumer, if the consumer already exists, it will be updated

Input Schema

NameRequiredDescriptionDefault
descNoconsumer description
group_idNoconsumer group id
labelsNoconsumer labels
pluginsNoconsumer plugins
usernameYesconsumer username

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "desc": { "description": "consumer description", "type": "string" }, "group_id": { "description": "consumer group id", "type": "string" }, "labels": { "additionalProperties": { "type": "string" }, "description": "consumer labels", "type": "object" }, "plugins": { "additionalProperties": {}, "description": "consumer plugins", "type": "object" }, "username": { "description": "consumer username", "type": "string" } }, "required": [ "username" ], "type": "object" }
ID: s62o271u37