Skip to main content
Glama

apig__CreateAuthorizingAppsV2

Authorizes one or more apps to access selected APIs in a specified environment, enabling API access after app creation.

Instructions

[APIG] APP创建成功后,还不能访问API,如果想要访问某个环境上的API,需要将该API在该环境上授权给APP。授权成功后,APP即可访问该环境上的这个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_ids": "<api_ids>",
      "app_ids": "<app_ids>",
      "env_id": "<env_id>",
      "instance_id": "<instance_id>",
      "project_id": "<project_id>"
    },
    "name": "apig__CreateAuthorizingAppsV2"
  }
}

Input Schema

NameRequiredDescriptionDefault
env_idYes需要授权的环境编号
api_idsYesAPI的编号列表,可以选择租户自己的API,也可以选择从云商店上购买的API。
app_idsYesAPP的编号列表
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

B3.3/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It does disclose the outcome (after success the APP can call that API in that environment), but it says nothing about required permissions, idempotency or behavior when a binding already exists, reversibility, or batch semantics even though api_ids and app_ids are arrays implying a many-to-many operation.

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?

A single compact sentence with no filler, and the outcome is stated cleanly. It leads with prerequisite context (APP created but not yet able to access) before stating the action, which slightly delays the operative point but is still coherent and short.

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

Completeness4/5

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

All five required parameters are fully described in the schema and there is no output schema to explain, so the description only needs to convey intent and effect, which it does. The remaining gap is the absence of any note on batch list behavior and duplicate handling for a pure-mutation tool with no annotations.

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%, with every one of the five required parameters documented in the schema itself, so the baseline of 3 applies. The description adds no additional meaning about env_id, project_id, instance_id, or the list semantics of api_ids/app_ids beyond what the schema already states.

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 the operation concretely: it explains that after an APP is created it cannot access an API until the API is authorized to the APP on a given environment, which makes the tool's action (create an API-to-APP authorization binding in an environment) inferable. It is framed as a concept explanation rather than a direct verb statement, and it gives no differentiation from the near-identical sibling apig__CreateAuthorizingApps (v1).

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 clearly enough: use this when an APP needs to access an API on a particular environment. There is no explicit when-not guidance, no mention of the v1 sibling or of ListAppsBindedToApiV2 for checking existing bindings, and no note about duplicate authorizations, so the agent must infer alternative-routing itself.

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