Skip to main content
Glama

waf__CreateGeoipRule

Create a geographic location control rule in WAF to block or allow traffic from specified regions based on a policy.

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>",
      "white": "<white>"
    },
    "name": "waf__CreateGeoipRule"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNo地理位置控制规则名称
geoipYes地理位置封禁区域,选择区域对应的字母代号,用中划线|分隔:
whiteYes防护动作:
statusNo规则状态,0:关闭,1:开启
policy_idYes防护策略id,您可以通过调用查询防护策略列表(ListPolicy)获取策略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 supplied, so the description carries the full burden and it discloses almost nothing: it does not say the call mutates state, that it is non-idempotent, what happens on duplicate or overlapping regions, whether required permissions/policy ownership apply, or what the response contains. Only the bare implication of 'create' is conveyed.

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?

One short clause, zero wasted words and well front-loaded, but it is under-specified rather than concise: there is no structure to speak of and no second sentence carrying any of the information an agent would need.

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 an 8-parameter destructive create operation with no annotations and no output schema, a single title-like phrase is not enough. At minimum it should state that this creates a persistent rule in an existing policy, that policy_id and project_id must be resolved beforehand, and what the call returns.

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% (8 of 8 parameters documented, including policy_id, project_id, white, status, and enterprise_project_id), so the schema does the heavy lifting. The description adds no meaning beyond it — notably it does not clarify the semantics of the required 'white' action flag or the geoip region-code format, both of which remain ambiguous in the schema alone.

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 phrase "创建地理位置控制规则" does give a verb (create) and a resource (geo-location control rule), and it expands the abbreviation 'Geoip' into something readable. But beyond that translation it is essentially a restatement of the tool name, with no indication of scope or how it differs from adjacent rule-creation siblings like CreateWhiteblackipRule or CreateCustomRule.

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 at all: no prerequisites (policy must exist), no statement of when a geo-location rule is the right choice versus a white/black IP or custom rule, and no mention of how it relates to UpdateGeoipRule or ListGeoipRule. The agent must infer everything from the name.

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