Skip to main content
Glama

deleteValue

Remove specific values from the Whistle MCP Server to manage and streamline proxy configurations effectively. Ensures precise control over Whistle proxy settings.

Instructions

删除值

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYes值名称

Implementation Reference

  • src/index.ts:263-273 (registration)
    Registration of the 'deleteValue' MCP tool, including name, description, input schema, and handler function that delegates to WhistleClient.deleteValue and formats the response.
    server.addTool({
      name: "deleteValue",
      description: "删除值",
      parameters: z.object({
        name: z.string().describe("值名称"),
      }),
      execute: async (args) => {
        const result = await whistleClient.deleteValue(args.name);
        return formatResponse(result);
      },
    });
  • Input schema for deleteValue tool: requires 'name' string parameter.
    parameters: z.object({
      name: z.string().describe("值名称"),
    }),
  • Handler function for deleteValue tool: calls whistleClient.deleteValue with args.name and returns formatted response.
    execute: async (args) => {
      const result = await whistleClient.deleteValue(args.name);
      return formatResponse(result);
    },
  • Core implementation of deleteValue: sends POST request to Whistle's /cgi-bin/values/remove endpoint with the value name to delete it.
    async deleteValue(name: string): Promise<any> {
      const formData = new URLSearchParams();
      formData.append("clientId", `${Date.now()}-0`);
      formData.append("list[]", name);
    
      const response = await axios.post(
        `${this.baseUrl}/cgi-bin/values/remove`,
        formData,
        {
          headers: {
            "Content-Type": "application/x-www-form-urlencoded",
          },
        }
      );
      return response.data;
    }
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. '删除值' only indicates a destructive deletion action but reveals nothing about side effects (e.g., whether deletion is permanent, affects dependencies), authentication needs, error conditions, or response format. For a mutation tool with zero annotation coverage, this is critically inadequate.

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 '删除值', which is extremely concise but under-specified rather than efficiently informative. It lacks any structure (e.g., front-loaded purpose, usage notes) and fails to convey necessary details for a deletion tool. Conciseness should not come at the cost of clarity, making this score low.

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 tool's complexity (a destructive deletion with no annotations or output schema), the description is completely inadequate. It doesn't explain what 'value' refers to, the consequences of deletion, error handling, or return values. Sibling tools like 'getAllValues' suggest a value management system, but the description provides no context to integrate this tool meaningfully.

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?

Schema description coverage is 100%, with the single parameter 'name' documented as '值名称' (value name) in the schema. The description adds no additional meaning about the parameter (e.g., format constraints, examples, or relationship to other tools). Since the schema fully describes the parameter, the baseline score of 3 is appropriate, but the description doesn't compensate or enhance understanding.

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 '删除值' (delete value) is a tautology that merely restates the tool name 'deleteValue' in Chinese. It doesn't specify what kind of value is being deleted (e.g., configuration value, database entry), what resource it operates on, or how it differs from sibling tools like 'deleteGroup' or 'deleteValueGroup'. While the verb is clear, the object is too vague for 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?

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention prerequisites (e.g., whether the value must exist), exclusions (e.g., cannot delete system values), or relationships to sibling tools like 'deleteValueGroup' or 'getAllValues'. Without any context, an agent would struggle to choose this tool appropriately.

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