Skip to main content
Glama

apig__CreateAuthorizingApps

Authorize specified APIs to apps within a chosen environment so those apps can access the APIs. Provide API IDs, app IDs, and environment ID to grant access.

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>"
    },
    "name": "apig__CreateAuthorizingApps"
  }
}

Input Schema

NameRequiredDescriptionDefault
env_idYes需要授权的环境编号
api_idsYesAPI的编号列表,可以选择租户自己的API,也可以选择从云市场上购买的API。
app_idsYesAPP的编号列表

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.8/5.0
Behavior2/5

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

With no annotations, the description must carry the full behavioral burden. It does disclose the resulting state change (APP can then access that API in that environment), which is genuinely useful. But it omits operational traits an agent needs for a permission-granting mutation: whether calls are idempotent, whether re-authorizing replaces or duplicates existing bindings, required IAM permissions, partial-failure behavior when some api_ids/app_ids are invalid, and what the response contains.

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 text is a single coherent paragraph with no filler, but it is written as background context rather than front-loaded action — the agent must read to the end to infer that this tool performs the authorization. A leading verb phrase would make it materially more scannable.

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 3-parameter, fully-required batch authorization tool with no annotations and no output schema, the entry is complete on the conceptual level and parameter documentation is handled by the schema. Missing are the mutation semantics (idempotency, overwrite vs. additive, error/partial-success handling) that an agent needs to call a grant operation safely.

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 each of env_id, api_ids and app_ids already documented (including that api_ids may reference the tenant's own APIs or marketplace-purchased APIs). The description adds no parameter-level meaning beyond that, so the baseline 3 is appropriate.

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?

The description explains the domain concept — an APP gains access to an API in an environment only after that API is authorized to it there — so the intended effect is inferable as "create an API-to-APP authorization in an environment." However, it never states the action directly ("this tool grants/authorizes..."), and it does not distinguish itself from the sibling apig__CreateAuthorizingAppsV2, which shares the same apparent purpose.

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?

It implies the trigger condition well: use this after an APP is created and before it can call an API in a specific environment. But there is no explicit when-to-use vs. when-not, no mention of the V2 alternative in the sibling list, and no stated preconditions (app and API must already exist, environment must be valid).

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