Skip to main content
Glama

dws__AddWorkloadRule

Adds a workload exception rule to a specified DWS cluster so teams can define how abnormal workload conditions are handled.

Instructions

[DWS] 添加异常规则。

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "cluster_id": "<cluster_id>",
      "project_id": "<project_id>"
    },
    "name": "dws__AddWorkloadRule"
  }
}

Input Schema

NameRequiredDescriptionDefault
cluster_idYes**参数解释**:
project_idYes**参数解释**:

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

D1.7/5.0
Behavior1/5

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

No annotations are supplied, so the description carries the full behavioral burden and delivers none of it. It does not state that this is a mutating operation, what permissions or cluster state are required, whether the rule takes effect immediately, or whether it can be undone.

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?

It is short, but shortness here is under-specification rather than conciseness: a bracketed product tag plus a four-character verb phrase is all the agent gets. There is no front-loaded explanation of effect or scope.

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?

For a two-required-parameter mutation tool with no annotations and no output schema, the description omits everything an agent would need: object created, target scope, side effects, and result. Nothing beyond the title is communicated.

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

Parameters2/5

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

Coverage is reported at 100%, but the actual schema entries contain only the label '**参数解释**:' with no explanatory text, so the schema effectively provides no meaning for cluster_id or project_id. The description adds nothing about which cluster/project scope applies or whether the rule is cluster-wide or project-scoped, so it fails to compensate.

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 is a near-restatement of the tool name: 'AddWorkloadRule' becomes '添加异常规则' ('add exception rule'). It adds a slight nuance ('exception/anomaly rule' rather than 'workload rule'), but never says what a rule is, what it attaches to, or how it differs from siblings like dws__AddWorkloadQueue or dws__AddWorkloadPlanStage.

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?

There is no when-to-use guidance, no prerequisites, and no exclusion criteria. The sibling list contains several other 'Add*' workload tools (AddWorkloadQueue, AddWorkloadPlanStage), yet nothing indicates which one an agent should pick for a given intent.

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

Deploy Server

Other Tools