Skip to main content
Glama

apig__CreateCustomAuthorizerV2

Create a custom authorizer for an API Gateway instance to enforce your own authentication logic on APIs, using the project ID and instance ID.

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": {
      "instance_id": "<instance_id>",
      "project_id": "<project_id>"
    },
    "name": "apig__CreateCustomAuthorizerV2"
  }
}

Input Schema

NameRequiredDescriptionDefault
project_idYes项目ID,获取方式请参见[获取项目ID](apig-api-180713009.xml)。
instance_idYes实例ID,在API网关控制台的“实例信息”中获取。

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 provided, so the description carries the full behavioral burden, and it discloses nothing: not what configuration an authorizer requires, whether the identity source or function is needed at creation time, whether permissions are required on the instance, or whether the operation is reversible. The only signal is the write implication of "创建," which merely restates the tool name.

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?

It is a single short phrase with no wasted wording and the action is front-loaded, but the brevity reflects under-specification rather than economy. There is essentially no structure to speak of beyond a bracketed service tag and the verb-object.

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 a mutation tool with zero annotations and no output schema, the description is far too thin: an agent cannot learn what body or configuration the creation requires, what happens on success, or what errors are possible. The only real guidance available is the parameter schema, leaving the behavioral surface undocumented.

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 the two required parameters (project_id, instance_id) are documented in the schema with examples and lookup instructions. The description adds no parameter meaning whatsoever, so this defaults to the baseline of 3.

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?

"创建自定义认证" states a specific verb (create) and resource (custom authorizer), so the core action is identifiable. However, there is no scope detail, no mention of what an authorizer consists of, and nothing that distinguishes it from sibling tools such as UpdateCustomAuthorizerV2 beyond the verb itself. It is clearer than a bare tautology but stops short of a discriminating definition.

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, no prerequisites, and no routing to alternatives (Update/Delete/ListCustomAuthorizersV2). An agent must infer entirely from the verb that this is the tool for creating a new authorizer rather than modifying one.

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