Skip to main content
Glama

delete_plugin_metadata

Remove plugin metadata from the APISIX-MCP server by specifying the plugin name, ensuring streamlined backend configuration and resource management.

Instructions

Delete plugin metadata

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesplugins name

Implementation Reference

  • Inline handler function for the 'delete_plugin_metadata' tool. It performs a DELETE request to the admin API endpoint `/plugin_metadata/${name}`.
    server.tool("delete_plugin_metadata", "Delete plugin metadata", DeletePluginMetadataSchema.shape, async (args) => { return await makeAdminAPIRequest(`/plugin_metadata/${args.name}`, "DELETE"); });
  • Zod schema for input validation of the 'delete_plugin_metadata' tool, requiring a 'name' string.
    export const DeletePluginMetadataSchema = z.object({ name: z.string().describe("plugins name"), });
  • Registration of the 'delete_plugin_metadata' tool on the MCP server, including description, input shape from schema, and inline handler.
    server.tool("delete_plugin_metadata", "Delete plugin metadata", DeletePluginMetadataSchema.shape, async (args) => { return await makeAdminAPIRequest(`/plugin_metadata/${args.name}`, "DELETE"); });

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