Skip to main content
Glama

apig__AssociateSignatureKey

Binds a signature key to one or more published API Gateway APIs so requests to backend services are signed and their origins can be verified.

Instructions

[APIG] 签名密钥创建后,需要绑定到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": {
      "publish_ids": "<publish_ids>",
      "sign_id": "<sign_id>"
    },
    "name": "apig__AssociateSignatureKey"
  }
}

Input Schema

NameRequiredDescriptionDefault
sign_idYes签名密钥编号
publish_idsYesAPI的发布记录编号

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A3.7/5.0
Behavior3/5

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

No annotations are supplied, so the description must carry the full behavioral burden. It explains the downstream effect: Gateway signs requests to the backend, and the backend verifies the signature to authenticate the caller. That is valuable context beyond the schema. However, it does not state whether binding a second key to the same API-environment fails or silently replaces the existing one, nor does it mention permissions, idempotency, 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 front-loaded with the purpose, then the mechanism, then the binding rules, which is a logical order. The first sentence (the key must be bound before it takes effect) and the third sentence (the effects of signing) overlap somewhat, but the total length remains proportionate to the operation's complexity, so there is no significant waste.

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?

Given two required parameters, no annotations, and no output schema, the description covers the purpose, the effect, and the key environment constraint. It still leaves open what the response contains and how the system handles a key/API-environment conflict. This is adequate rather than complete for a mutation tool with zero annotation support.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is already 100%, so both parameters are self-documenting. The description still adds meaning: sign_id is a single key, while publish_ids accepts multiple publish records of already-published APIs, and the binding is scoped per published environment. This clarifies cardinality and the environment-scoping semantics that the schema alone does not convey.

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 uses a specific verb/resource pair: it binds (绑定) a designated signature key (签名密钥) to one or more published APIs (已发布的API), identified by publish records. That is much more precise than the tool name alone. However, it never explicitly contrasts itself with its close siblings (DisassociateSignatureKey, AssociateSignatureKeyV2, or the roma_ variants), so the agent must infer that distinction from the names.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It states the precondition for use, namely that a signature key takes effect only after binding, and it sets a clear operational constraint: the same API published to different environments may bind different keys, but one API in one environment can hold only one key. The description does not explicitly say when not to use it, or name an alternative tool for unbinding or re-binding, so it falls short of a 5.

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