Skip to main content
Glama

apig__CreateSignatureKey

Creates a signature key and secret for API Gateway to authenticate request sources and sign API requests, so backend services can reject traffic not sent by the gateway.

Instructions

[APIG] 为了保护API的安全性,建议租户为API的访问提供一套保护机制,即租户开放的API,需要对请求来源进行认证,不符合认证的请求直接拒绝访问。 其中,签名密钥就是API安全保护机制的一种。 租户创建一个签名密钥,并将签名密钥与API进行绑定,则API网关在请求这个API时,就会使用绑定的签名密钥对请求参数进行数据加密,生成签名。当租户的后端服务收到请求时,可以校验这个签名,如果签名校验不通过,则该请求不是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": {
      "name": "<name>",
      "sign_key": "<sign_key>",
      "sign_secret": "<sign_secret>"
    },
    "name": "apig__CreateSignatureKey"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes签名密钥的名称。支持汉字,英文,数字,下划线,且只能以英文和汉字开头,3 ~ 64字符。
sign_keyYes签名密钥的key。支持英文,数字,下划线,中划线,且只能以英文字母开头,8 ~ 32字符。未填写时后台自动生成。
sign_secretYes签名密钥的密钥。支持英文,数字,下划线,中划线,!,@,#,$,%,且只能以英文字母开头,16 ~ 64字符。未填写时后台自动生成。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.4/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 burden. It explains the security mechanism but says nothing about permissions required, whether the generated sign_key/sign_secret are returned in the response, whether the key is usable only after binding, or whether duplicate names are rejected. The only behavioral hint (auto-generation) actually comes from the schema, not the description.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Nearly the whole text is background on API signature authentication rather than on invoking this tool; the actual operation is never front-loaded or summarized in a leading sentence. Substantial wording does not earn its place for an agent trying to decide whether to call the tool.

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 3-required-parameter creation tool with no annotations and no output schema, the description is missing the things an agent most needs: that binding is a separate call, what the response contains (especially any auto-generated secret), and how it differs from the V2 sibling.

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 per-field examples and character constraints, so the schema already documents all three parameters thoroughly. The description adds no parameter-specific meaning beyond it, which is the baseline-3 case.

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 does contain a specific verb+resource ("租户创建一个签名密钥"), but it is buried in a paragraph about the general concept of API signature authentication. It also conflates creation with a separate step ("将签名密钥与API进行绑定"), which is actually a sibling tool, so an agent could believe this call also performs the binding. No differentiation from the V2 variant is given.

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 explicit when-to-use / when-not-to-use guidance and no mention of the sibling alternatives. The text describes the security rationale for signature keys in general rather than when an agent should pick this tool over apig__CreateSignatureKeyV2 or follow it with an Associate call.

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