Skip to main content
Glama

APISIX-MCP

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" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/api7/apisix-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server