Skip to main content
Glama

waf__UpdateGeoipRule

Updates a WAF geo-location control rule to change blocked regions, protection action, or metadata for a specific policy and rule ID.

Instructions

[WAF] 更新地理位置控制防护规则

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": {
      "geoip": "<geoip>",
      "policy_id": "<policy_id>",
      "project_id": "<project_id>",
      "rule_id": "<rule_id>",
      "white": "<white>"
    },
    "name": "waf__UpdateGeoipRule"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNo地理位置控制规则名称
geoipYes地理位置封禁区域,选择区域对应的字母代号:
whiteYes防护动作:
rule_idYes地理位置控制规则id,规则id从查询地理位置规则列表(ListGeoipRule)接口获取,响应体的id字段
policy_idYes防护策略id,您可以通过调用查询防护策略列表(ListPolicy)获取策略id,响应体的id字段
project_idYes项目ID,对应华为云控制台用户名->我的凭证->项目列表->项目ID
descriptionNo描述
enterprise_project_idNo您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.5/5.0
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 behavioral burden, and it discloses almost nothing. 'Update' implies mutation, but the description does not say whether this is a full or partial replacement, whether changes are reversible, what permissions are required, or what happens to omitted fields.

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

Conciseness3/5

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

The single bracketed sentence is minimal and front-loaded with the verb and resource, with no padding. It is concise, but only because it says almost nothing; the terseness reflects under-specification rather than an efficient summary.

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?

This is a mutation tool with 8 parameters, 5 required, no annotations, and no output schema, so the description must carry the behavioral context — yet it is one line. For an agent to call it safely it needs to know the update semantics, required id provenance, and the mutating effect, none of which appear.

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 every parameter (including geoip, white, and the path ids with their List* discovery hints) is already documented in the schema. The description adds no meaning beyond what the schema provides, which is the expected baseline of 3 when the schema does the heavy lifting.

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

Purpose3/5

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

The description names a specific verb (更新/update) and resource (地理位置控制防护规则/geo-location control protection rule), so an agent can tell it apart from Create/Delete/List/Show siblings on the same resource. However, it is essentially a translation of the tool name with no added scope, such as what aspect of the rule is updated or which fields take effect.

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?

No when-to-use guidance is given: nothing states prerequisites (an existing rule id and policy id), when an update is preferable to delete-and-recreate, or how it relates to waf__UpdatePolicyRuleStatus or the other Update* siblings. The agent must infer everything from the name alone.

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