Skip to main content
Glama

apig__AssociateRequestThrottlingPolicyV2

Associates a request throttling policy with API publish records so all requests to those APIs are limited by that policy.

Instructions

[APIG] 将流控策略应用于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": {
      "instance_id": "<instance_id>",
      "project_id": "<project_id>",
      "publish_ids": "<publish_ids>",
      "strategy_id": "<strategy_id>"
    },
    "name": "apig__AssociateRequestThrottlingPolicyV2"
  }
}

Input Schema

NameRequiredDescriptionDefault
project_idYes项目ID,获取方式请参见[获取项目ID](apig-api-180713009.xml)。
instance_idYes实例ID,在API网关控制台的“实例信息”中获取。
publish_idsYesAPI的发布记录编号
strategy_idYes流控策略编号

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

B3.2/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It does disclose the operation's effect: binding the policy causes all API access to be throttled. However, it does not say whether an existing binding is replaced, whether the call is idempotent, or what happens when the same policy is already bound.

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 description is a single efficient sentence that front-loads the action and its consequence. It is appropriately short, though it wastes no space on the guidance an agent actually needs.

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?

This is a mutation tool with no annotations and no output schema. The description covers the purpose and the throttling consequence, and the schema fully documents the parameters. It is still missing duplicate-binding behavior and any usage conditions, which leaves gaps for an agent deciding whether to call it.

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 instance_id, project_id, publish_ids, and strategy_id are all already documented in the input schema. The description adds no additional meaning about these parameters, such as how publish_ids relate to API publication records. A 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.

Purpose4/5

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

The description states a specific verb and resource: applying a throttling policy to APIs. It is clear what the tool does, but it does not distinguish itself from the near-identical sibling apig__AssociateRequestThrottlingPolicy or the roma__ variant, so the agent gets no help choosing among them.

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?

The description gives no explicit when-to-use guidance, no prerequisites, and no named alternatives. The only implicit cue is the effect statement ('all access to that API will be limited'), which hints at the intent but never tells the agent when to pick this tool over its siblings.

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