Skip to main content
Glama

apig__UpdateRequestThrottlingPolicyV2

Updates an APIG request throttling policy's name, type, time interval, and call limits to control API, user, app, and IP request rates.

Instructions

[APIG] 修改指定流控策略的详细信息。

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": {
      "api_call_limits": "<api_call_limits>",
      "instance_id": "<instance_id>",
      "name": "<name>",
      "project_id": "<project_id>",
      "throttle_id": "<throttle_id>",
      "time_interval": "<time_interval>",
      "time_unit": "<time_unit>"
    },
    "name": "apig__UpdateRequestThrottlingPolicyV2"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes流控策略名称。支持汉字,英文,数字,下划线,且只能以英文和汉字开头,3 ~ 64字符。
typeNo流控策略的类型
remarkNo流控策略描述字符长度不超过255。
time_unitYes流控的时间单位
project_idYes项目ID,获取方式请参见[获取项目ID](apig-api-180713009.xml)。
instance_idYes实例ID,在API网关控制台的“实例信息”中获取。
throttle_idYes流控策略的编号
time_intervalYes流量控制的时长单位。与“流量限制次数”配合使用,表示单位时间内的API请求次数上限。输入的值不超过2147483647。正整数。
ip_call_limitsNo源IP流量限制是指一个API在时长之内被每个IP访问的次数上限,该数值不超过API流量限制值。输入的值不超过2147483647。正整数。
api_call_limitsYesAPI流量限制是指时长内一个API能够被访问的次数上限。该值不超过系统默认配额限制,系统默认配额为200tps,用户可根据实际情况修改该系统默认配额。输入的值不超过2147483647。正整数。
app_call_limitsNoAPP流量限制是指一个API在时长之内被每个APP访问的次数上限,该数值不超过用户流量限制值。输入的值不超过2147483647。正整数。
user_call_limitsNo用户流量限制是指一个API在时长之内每一个用户能访问的次数上限,该数值不超过API流量限制值。输入的值不超过2147483647。正整数。
enable_adaptive_controlNo是否开启动态流控:

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are present, so the description carries the full burden here. It does not state whether this is a full replacement or a partial update, what happens to the ten optional parameters when they are omitted, whether changes affect APIs already bound to the policy, or what permissions are required. 'Modify detailed information' is essentially a restatement of the mutation implied by the name.

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

Conciseness4/5

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

The definition is a single front-loaded clause with no filler or redundancy, which is efficient. Its brevity, however, reflects under-specification rather than disciplined concision; nothing beyond the name is communicated.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 13-parameter mutation tool with no annotations and no output schema, the description is far thinner than the complexity warrants. The schema compensates by documenting all parameters, which keeps it from failing outright, but the agent still lacks confirmation of update semantics and mutation side effects.

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%, and every one of the 13 parameters carries its own description, including constraints on name length, enum values for time_unit and type, and relationships between call-limit fields. The description adds nothing beyond that, so baseline 3 applies; it neither clarifies which fields are optional-and-reset versus left unchanged nor explains the interplay among the limits.

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

Purpose4/5

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

The description states a specific verb (修改, modify) and a specific resource (指定流控策略, a specified throttling policy), so the core action is unambiguous. It does not distinguish this V2 operation from closely-named siblings such as UpdateRequestThrottlingPolicy (V1) or UpdateSpecialThrottlingConfigurationV2, and says nothing about which fields are modifiable.

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 guidance is given about when to use this tool, when to use the V1 variant or SpecialThrottlingConfiguration instead, or what prerequisites (for example, an existing throttle_id from Create/List) are needed. The agent must infer the correct choice of tool 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