Skip to main content
Glama

update_plugin_config

Modify plugin configurations in APISIX-MCP by updating descriptions, labels, and plugin settings to customize API gateway behavior.

Instructions

Update a plugin config

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idNoplugin config ID
pluginsNo

Implementation Reference

  • Registers and implements the handler for the update_plugin_config tool. The inline async function executes the tool logic by making a PATCH request to the admin API at `/plugin_configs/${args.id}` with the provided arguments.
    server.tool("update_plugin_config", "Update a plugin config", UpdatePluginConfigSchema.shape, async (args) => { return await makeAdminAPIRequest(`/plugin_configs/${args.id}`, "PATCH", args); });
  • Zod schema defining the input parameters for the update_plugin_config tool, including the config ID and plugins configuration (patchable).
    export const UpdatePluginConfigSchema = createNullablePatchSchema(z.object({ id: z.string().describe("plugin config ID"), plugins: PluginConfigSchema, }));
  • Location where the update_plugin_config tool is registered with the MCP server using server.tool(), specifying name, description, input shape, and handler.
    server.tool("update_plugin_config", "Update a plugin config", UpdatePluginConfigSchema.shape, async (args) => { return await makeAdminAPIRequest(`/plugin_configs/${args.id}`, "PATCH", args); });

Latest Blog Posts

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