Skip to main content
Glama

deleteGroup

Remove a specific group from the Whistle MCP Server by specifying the group name. This tool helps manage proxy configurations and streamline network request operations.

Instructions

删除分组

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
groupNameYes分组名称

Implementation Reference

  • The core handler function for deleting a group. It sends a POST request to Whistle's `/cgi-bin/rules/remove` endpoint with the group name prefixed by a carriage return (`\r${groupName}`) in the form data to identify it as a group.
    async deleteGroup(groupName: string): Promise<any> { const formData = new URLSearchParams(); formData.append("list[]", `\r${groupName}`); const response = await axios.post( `${this.baseUrl}/cgi-bin/rules/remove`, formData, { headers: { "Content-Type": "application/x-www-form-urlencoded", }, } ); return response.data; }
  • src/index.ts:147-157 (registration)
    Registers the 'deleteGroup' tool with the FastMCP server. Defines the tool's name, description, input schema using Zod, and the execute function that calls the WhistleClient handler and formats the response.
    server.addTool({ name: "deleteGroup", description: "删除分组", parameters: z.object({ groupName: z.string().describe("分组名称"), }), execute: async (args) => { const result = await whistleClient.deleteGroup(args.groupName); return formatResponse(result); }, });
  • Zod input schema for the deleteGroup tool, specifying a single required string parameter 'groupName'.
    parameters: z.object({ groupName: z.string().describe("分组名称"), }),

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/7gugu/whistle-mcp'

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