Skip to main content
Glama

apig__UpdateApi

Modify an existing API Gateway API's settings, including backend service details, authentication type, request and response configuration, and policies.

Instructions

[APIG] 修改指定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_id": "<api_id>",
      "auth_type": "<auth_type>",
      "backend_type": "<backend_type>",
      "group_id": "<group_id>",
      "name": "<name>",
      "req_method": "<req_method>",
      "req_protocol": "<req_protocol>",
      "req_uri": "<req_uri>",
      "type": "<type>"
    },
    "name": "apig__UpdateApi"
  }
}

Input Schema

NameRequiredDescriptionDefault
corsNo是否支持跨域
nameYesAPI名称长度。
tagsNo标签。
typeYesAPI类型
api_idYesAPI的编号,可通过查询API信息获取该编号。
remarkNoAPI描述。字符长度不超过255
req_uriYesAPI的访问地址
versionNoAPI的版本。字符长度不超过16
auth_optNo认证方式参数
group_idYesAPI所属的分组编号
auth_typeYesAPI的认证方式
func_infoNo
mock_infoNomock后端详情
match_modeNoAPI的匹配方式
req_methodYesAPI的请求方式:GET、POST、PUT、DELETE、HEAD、PATCH、OPTIONS、ANY
req_paramsNoAPI的请求参数列表
backend_apiNoweb后端详情
body_remarkNoAPI请求体描述,可以是请求体示例、媒体类型、参数等信息。字符长度不超过20480
response_idNo分组自定义响应ID
backend_typeYes后端类型
policy_httpsNoweb策略后端列表
policy_mocksNomock策略后端列表
req_protocolYesAPI的请求协议
authorizer_idNo前端自定义认证对象的ID
backend_paramsNoAPI的后端参数列表
policy_functionsNo函数工作流策略后端列表
result_normal_sampleNo正常响应示例,描述API的正常返回信息。字符长度不超过20480
result_failure_sampleNo失败返回示例,描述API的异常返回信息。字符长度不超过20480

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description must carry the full behavioral burden for a 28-parameter mutation. It states only that API information and backend service information are modified, without explaining update semantics, whether unspecified fields are preserved or reset, permission requirements, or error behavior.

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 front-loaded sentence with no wasted wording. Its brevity is efficient structurally, though it leaves the complex tool under-explained.

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 highly complex mutation with 28 parameters, 9 required fields, nested objects, and no annotations or output schema, this one-sentence description is inadequate. It should clarify update semantics and the relationship between top-level fields and nested backend/policy objects.

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 96%, so the input schema already documents the parameters in detail and the baseline is 3. The description mentions backend service information, which maps to backend_* fields, but adds no syntax, constraints, or meaning beyond what the schema provides.

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 names a specific verb (modify) and resource (the specified API) and notes that backend service information is included. It is clear enough for an agent to understand the operation, but it does not differentiate this tool from the closely named sibling apig__UpdateApiV2.

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 guidance on when to use this tool versus apig__UpdateApiV2 or other update/create alternatives, and no prerequisites or exclusions are stated. Usage is only implied by the word 'modify'.

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