Skip to main content
Glama

apig__AssociateRequestThrottlingPolicy

Binds a throttling policy to specified API publish records and environments, rejecting excessive requests to protect backend APIs from abnormal traffic.

Instructions

[APIG] 将流控策略应用于API,则所有对该API的访问将会受到该流控策略的限制。当一定时间内的访问次数超过流控策略设置的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": {
      "publish_ids": "<publish_ids>",
      "strategy_id": "<strategy_id>"
    },
    "name": "apig__AssociateRequestThrottlingPolicy"
  }
}

Input Schema

NameRequiredDescriptionDefault
publish_idsYesAPI的发布记录编号
strategy_idYes流控策略编号

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A3.5/5.0
Behavior4/5

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

With no annotations supplied, the description must carry the full behavioral burden, and it does disclose real traits: once bound, access is rate-limited and excess requests are rejected, which protects the backend. It also states the key constraint that an API published to a specific environment can hold only one default throttling policy. Gaps remain on permissions required, whether re-binding overwrites or errors, and idempotency.

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 first half is generic background on why rate limiting protects the backend and does not earn its place ahead of the action statement. The useful parts — environment scoping and the one-policy-per-environment rule — are buried at the end rather than front-loaded.

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 two-parameter mutation with no annotations and no output schema, the description covers the effect and one hard constraint but omits error cases, required authorization, and whether binding is idempotent or replaces an existing policy. Adequate to invoke, incomplete for confident use.

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 publish_ids and strategy_id, making 3 the baseline. The description adds marginal meaning by explaining that the environment is effectively selected through the publish record ('在哪个环境上生效'), but it does not clarify whether multiple publish_ids may span different environments or how batch binding behaves.

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+resource: applying a throttling policy to an API by binding a strategy to a publish record in a given environment. It is clear what the tool does, but it never distinguishes itself from the sibling apig__AssociateRequestThrottlingPolicyV2, so an agent must guess which variant to pick.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage context is implied: '为指定的共享版-API绑定流控策略,绑定时,需要指定在哪个环境上生效' tells the agent binding happens per environment. However, there is no explicit when-to-use versus when-not guidance, no mention of the Disassociate counterpart, and no statement of what happens if the API already has a policy bound in that environment.

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