Skip to main content
Glama
hzbhzb

whistle-mcp

by hzbhzb

whistle_rule_set

Create or update a Whistle rule with a unique name and content using Whistle rule syntax, and optionally enable it immediately for API mocking.

Instructions

创建或更新规则。规则内容使用 whistle 规则语法,如:pattern resBody://{valueName}

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYes规则名称(唯一标识)
enableNo是否立即启用该规则
contentYes规则内容,如:api.example.com/user resBody://{mock_data}
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It only states that it creates or updates rules, but does not mention side effects (e.g., overwriting existing rules), required permissions, idempotency, or response behavior. The example given shows syntax but does not clarify what happens on conflict or failure.

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

Conciseness5/5

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

The description is a single, concise sentence that immediately states the purpose and gives a representative example. It is front-loaded with the action and resource, and every word contributes to understanding. No unnecessary filler or repetition exists.

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?

For a mutation tool with no annotations and no output schema, the description is quite thin. It fails to explain behavior on update (e.g., whether it replaces existing rules), validation rules for content, or what the tool returns after creation/update. Given the absence of additional structured metadata, the description leaves significant gaps for an agent to safely invoke the tool.

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%, so the baseline for this dimension is 3. The description adds an example of content syntax ('pattern resBody://{valueName}'), but this is nearly redundant with the schema's own example for the content parameter. No additional semantic meaning is provided for name or enable parameters beyond what the schema already describes.

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

Purpose5/5

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

The description clearly states the tool's function with a specific verb-resource pair: '创建或更新规则' (create or update rules). It distinguishes itself from sibling tools like whistle_rule_list, whistle_rule_get, whistle_rule_remove, and whistle_rule_enable/disable by indicating that this tool handles the create/update action.

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

Usage Guidelines2/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 does not mention that this should be used for new rule creation or modifying existing rules, nor does it reference sibling tools like list/get/remove for other operations. Usage context is only implicitly inferred from the verb 'create or update'.

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

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

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