Skip to main content
Glama

apig__CreateSignatureKeyV2

Creates a signature key for API Gateway to authenticate request sources and block unverified API access.

Instructions

[APIG] 为了保护API的安全性,建议租户为API的访问提供一套保护机制,即租户开放的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": {
      "instance_id": "<instance_id>",
      "name": "<name>",
      "project_id": "<project_id>"
    },
    "name": "apig__CreateSignatureKeyV2"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes签名密钥的名称。支持汉字,英文,数字,下划线,且只能以英文和汉字开头。
sign_keyNo签名密钥的key。
sign_typeNo签名密钥类型:
project_idYes项目ID,获取方式请参见[获取项目ID](apig-api-180713009.xml)。
instance_idYes实例ID,在API网关控制台的“实例信息”中获取。
sign_secretNo签名密钥的密钥。
sign_algorithmNo签名算法。默认值为空,仅aes类型签名密钥支持选择签名算法,其他类型签名密钥不支持签名算法。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

D1.9/5.0
Behavior1/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, and it discloses nothing about the operation. It does not say a key is created, whether the name must be unique, what happens on duplicate names, which permissions are required, or that the response returns key material.

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 compact sentence with no padding, so nothing is verbose. However, the one sentence spent on background is not front-loaded with the action, so the brevity comes at the cost of the information an agent actually needs.

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

Completeness1/5

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

This is a 7-parameter mutating creation tool with no annotations and no output schema, so the description must explain what is created and the consequences. Instead it supplies only background motivation, leaving the creation semantics, uniqueness constraints, and permission requirements entirely undisclosed.

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 every parameter, including the two enums for sign_type and sign_algorithm, is documented inline, so the schema does the heavy lifting. The description adds no meaning about name, sign_key, sign_secret, or sign_algorithm, which is exactly the baseline-3 case for high schema coverage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose2/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states the rationale for signature keys in general ('to protect API security, tenants should provide an authentication mechanism for request sources'), but never says that this tool creates a signature key. The only signal about the verb comes from the tool name itself; the text would apply equally to Update, Delete, or Associate siblings.

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?

It gives a general recommendation that API sources should be authenticated, which weakly implies this is the tool for setting up such protection, but there is no explicit when-to-use, no prerequisites, and no mention of the Create/Update/Delete/Associate alternatives that exist as siblings.

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