Skip to main content
Glama

deleteValueGroup

Remove specified value groups in the Whistle MCP Server to manage proxy rules effectively and optimize network request handling.

Instructions

删除值分组

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
groupNameYes分组名称

Implementation Reference

  • src/index.ts:275-285 (registration)
    Registration of the 'deleteValueGroup' tool using server.addTool, including name, description, input schema, and thin handler that delegates to WhistleClient.
    server.addTool({ name: "deleteValueGroup", description: "删除值分组", parameters: z.object({ groupName: z.string().describe("分组名称"), }), execute: async (args) => { const result = await whistleClient.deleteValueGroup(args.groupName); return formatResponse(result); }, });
  • The tool's execute handler: extracts groupName arg, calls WhistleClient.deleteValueGroup, and returns formatted response.
    execute: async (args) => { const result = await whistleClient.deleteValueGroup(args.groupName); return formatResponse(result); },
  • Zod input schema requiring a 'groupName' string parameter.
    parameters: z.object({ groupName: z.string().describe("分组名称"), }),
  • Core implementation in WhistleClient: sends POST request to Whistle's /cgi-bin/values/remove endpoint with the group name prefixed by carriage return (\r{name}) to identify it as a group.
    async deleteValueGroup(name: string): Promise<any> { const formData = new URLSearchParams(); formData.append("clientId", `${Date.now()}-1`); formData.append("list[]", `\r${name}`); // Adding carriage return to denote a group const response = await axios.post( `${this.baseUrl}/cgi-bin/values/remove`, formData, { headers: { "Content-Type": "application/x-www-form-urlencoded", }, } ); return response.data; }

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