Skip to main content
Glama

apig__DeleteGatewayResponseTypeV2

Deletes a custom API Gateway error response configuration for a specified error type in a group and restores the default response.

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": {
      "group_id": "<group_id>",
      "instance_id": "<instance_id>",
      "project_id": "<project_id>",
      "response_id": "<response_id>",
      "response_type": "<response_type>"
    },
    "name": "apig__DeleteGatewayResponseTypeV2"
  }
}

Input Schema

NameRequiredDescriptionDefault
group_idYes分组的编号
project_idYes项目ID,获取方式请参见[获取项目ID](apig-api-180713009.xml)。
instance_idYes实例ID,在API网关控制台的“实例信息”中获取。
response_idYes响应编号
response_typeYes错误类型

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full behavioral burden, and it does disclose the key semantic that the custom config is removed and the default takes over rather than the error type being disabled. It does not address reversibility, required permissions, or what happens if no custom response exists for that type.

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 tight sentence with the effect front-loaded and zero filler. Only the bracketed '[APIG]' vendor tag is non-informative overhead.

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 five-required-path-parameter mutation with no annotations and no output schema, the definition covers the core effect but leaves out the mutation profile (irreversibility, idempotency, permission needs). Adequate to call correctly, incomplete for reasoning about consequences.

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 all five path parameters, including the response_type enum, are documented in the schema. The description's phrase '分组指定错误类型' loosely maps to group_id and response_type but adds no format, identifier-source, or enum guidance beyond what the schema already 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+resource: deleting the custom response configuration for a given error type within a group. It also states the post-condition (the setting reverts to the default value), which separates it from a plain 'delete response' sibling. It stops short of naming UpdateGatewayResponseTypeV2 or DeleteGatewayResponseV2 as the alternatives, so it is clear but not sibling-differentiating.

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 is implied rather than stated: an agent can infer this is the tool to call when it wants to reset one error type back to defaults instead of updating it. There is no explicit when-to-use/when-not-to-use guidance and no mention of prerequisites such as the response having been customized first.

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