Skip to main content
Glama

apig__CreateRequestThrottlingPolicy

Creates an API request throttling policy to cap calls per interval by API, user, app, and source IP, helping control API load and protect published APIs.

Instructions

[APIG] 当API上线后,系统会默认给每个API提供一个流控策略,API提供者可以根据自身API的服务能力及负载情况变更这个流控策略。 流控策略即限制API在一定长度的时间内,能够允许被访问的最大次数。

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>",
      "name": "<name>",
      "time_interval": "<time_interval>",
      "time_unit": "<time_unit>"
    },
    "name": "apig__CreateRequestThrottlingPolicy"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes流控策略名称。支持汉字,英文,数字,下划线,且只能以英文和汉字开头,3 ~ 64字符。
typeNo流控策略的类型,取值如下:
remarkNo流控策略描述字符长度不超过255。
time_unitYes流控的时间单位:
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.3/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. It only gives conceptual background about throttling and default policies, without stating what creation does, whether it requires existing APIs, what permissions are needed, or what happens on failure.

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 description is short and readable, but it spends both sentences on conceptual background rather than front-loading the create action. The opening tag '[APIG]' and the policy definition are not wasteful in isolation, but they do not help an agent invoke this tool correctly.

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 ten-parameter create operation with four required fields, no output schema, and no annotations. The description does not compensate for missing operational detail: it never explains creation, required-field meaning, or how the time interval and call-limit parameters interact, leaving significant gaps for an agent.

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 schema already documents all ten parameters in detail. The description adds only the general meaning of throttling and does not clarify parameter relationships, such as the constraint that user_call_limits must not exceed api_call_limits. Baseline 3 is appropriate 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.

Purpose2/5

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

The description never states that this tool creates a throttling policy; instead it says an API provider can '变更' (change) the default policy. It explains the concept of throttling but the verb and resource for this specific tool are absent, making it misleading for selection.

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 explicit guidance on when to use this create tool versus siblings such as CreateRequestThrottlingPolicyV2, UpdateRequestThrottlingPolicy, or AssociateRequestThrottlingPolicy. The background about default policies does not tell an agent what conditions should trigger this tool.

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