Skip to main content
Glama

createValuesGroup

Creates a new values group to organize and manage proxy settings efficiently within the Whistle MCP Server, enabling structured rule management and network monitoring.

Instructions

创建新的值分组

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYes分组名称

Implementation Reference

  • Core handler function that creates a values group by sending a POST request to Whistle's `/cgi-bin/values/add` endpoint, prefixing the group name with '\r' to denote it as a group.
    async createValueGroup(name: string): Promise<any> {
      const formData = new URLSearchParams();
      formData.append("clientId", `${Date.now()}-1`);
      formData.append("name", `\r${name}`);
    
      const response = await axios.post(
        `${this.baseUrl}/cgi-bin/values/add`,
        formData,
        {
          headers: {
            "Content-Type": "application/x-www-form-urlencoded",
          },
        }
      );
      return response.data;
    }
  • src/index.ts:197-207 (registration)
    Registers the MCP tool 'createValuesGroup' with the FastMCP server, defining its name, description, input schema, and execute handler that delegates to WhistleClient.
    server.addTool({
      name: "createValuesGroup",
      description: "创建新的值分组",
      parameters: z.object({
        name: z.string().describe("分组名称"),
      }),
      execute: async (args) => {
        const result = await whistleClient.createValueGroup(args.name);
        return formatResponse(result);
      },
    });
  • Zod schema defining the input parameter 'name' for the createValuesGroup tool.
    parameters: z.object({
      name: z.string().describe("分组名称"),
    }),
Behavior2/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. '创建新的值分组' (Create new value group) implies a write/mutation operation, but it doesn't disclose any behavioral traits: no information about permissions required, whether creation is idempotent, what happens on conflicts, rate limits, or what the response contains. For a mutation tool with zero annotation coverage, this is a significant gap.

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

Conciseness4/5

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

The description is extremely concise - a single phrase in Chinese. While this avoids waste, it's arguably under-specified rather than optimally concise. It front-loads the core action but lacks necessary detail. Given the tool's complexity (a mutation operation), more content would be justified, but what's there is structured efficiently.

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

Completeness2/5

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

Given this is a mutation tool with no annotations, no output schema, and multiple similar sibling tools, the description is incomplete. It doesn't explain what a 'value group' is, how it relates to other entities (values, rules), what happens after creation, or provide any context for proper usage. The agent would struggle to use this tool correctly without additional information.

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 description adds no parameter information beyond what the schema provides. With 100% schema description coverage (the 'name' parameter is documented in the schema as '分组名称' - group name), the baseline is 3. The description doesn't explain what constitutes a valid 'name', provide examples, or add any semantic context, so it meets but doesn't exceed the minimum.

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 '创建新的值分组' (Create new value group) is a tautology that essentially restates the tool name 'createValuesGroup' in Chinese. It doesn't specify what a 'value group' is, what resource it operates on, or how it differs from similar sibling tools like 'createGroup' or 'createValue'. The purpose is stated but lacks differentiation and specificity.

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?

The description provides no guidance on when to use this tool versus alternatives. With sibling tools like 'createGroup', 'createValue', 'addValueToGroup', and 'addRuleToGroup', there's no indication of when this specific tool is appropriate, what prerequisites exist, or what context it operates in. This leaves the agent guessing about tool selection.

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