Skip to main content
Glama

removeValueFromGroup

Remove a specified value from a group within the Whistle MCP Server to streamline proxy management and maintain organized rule configurations.

Instructions

将值移出分组

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
valueNameYes值名称

Implementation Reference

  • The main handler function in WhistleClient that implements the logic to remove a value from its group by moving it to the top level (first value position) using Whistle's /cgi-bin/values/move-to API endpoint.
    async moveValueOutOfGroup(name: string): Promise<any> {
      const values = await this.getAllValues();
      const firstValueName = values[0].name;
      const formData = new URLSearchParams();
      formData.append("clientId", `${Date.now()}-1`);
      formData.append("from", name);
      formData.append("to", firstValueName);
      formData.append("group", "false");
      const response = await axios.post(
        `${this.baseUrl}/cgi-bin/values/move-to`,
        formData,
        {
          headers: {
            "Content-Type": "application/x-www-form-urlencoded",
          },
        }
      );
      return response.data;
    }
  • src/index.ts:303-313 (registration)
    Registers the MCP tool 'removeValueFromGroup' with schema (parameters) and execute handler that delegates to WhistleClient.moveValueOutOfGroup.
    server.addTool({
      name: "removeValueFromGroup",
      description: "将值移出分组",
      parameters: z.object({
        valueName: z.string().describe("值名称"),
      }),
      execute: async (args) => {
        const result = await whistleClient.moveValueOutOfGroup(args.valueName);
        return formatResponse(result);
      },
    });
  • Zod schema defining the input parameter 'valueName' for the tool.
    parameters: z.object({
      valueName: z.string().describe("值名称"),
    }),
Behavior1/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden of behavioral disclosure. It only states the action ('remove value from group') without explaining effects (e.g., whether this is destructive, if it requires permissions, or what happens to the value afterward). For a mutation tool with zero annotation coverage, this is a critical gap.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single phrase that is overly concise to the point of under-specification. It lacks structure and fails to convey essential details, making it inefficient rather than appropriately brief. Every word should add value, but here it merely repeats the tool name.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness1/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the complexity of a mutation tool with no annotations and no output schema, the description is severely incomplete. It doesn't explain what the tool returns, error conditions, or behavioral traits. For a tool that modifies data, this leaves the agent with insufficient context to use it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema description coverage is 100%, with the single parameter 'valueName' documented as '值名称' (value name). The description adds no additional meaning beyond this, such as format examples or constraints. With high schema coverage, the baseline score of 3 is appropriate, as the schema already provides adequate parameter information.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose2/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description '将值移出分组' (remove value from group) is a tautology that restates the tool name without adding specificity. It doesn't clarify what type of 'value' or 'group' is involved, nor does it distinguish this tool from sibling tools like 'removeRuleFromGroup' or 'deleteValue'. The purpose is stated but lacks meaningful differentiation.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines1/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance is provided on when to use this tool versus alternatives. It doesn't mention prerequisites (e.g., the value must exist in a group), exclusions, or related tools like 'addValueToGroup' or 'deleteValue'. The description offers no context for appropriate usage.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Related Tools

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