Skip to main content
Glama

SigLint — HTTP Message Signature Doctor

signcheck_redeem

把爱发电订单上的提取码换成 AK(entitlement):带可用次数与有效期,由卖家私钥签名,可直接用 /seller-key.jwk 自验。不收费;一张码只能换一次,AK 绑到你这次签证明的 keyid。换到后把 entitlement 单独传给 signcheck_verify 即可(bearer,不需要再签 proof)。标准 MCP host 不会生成钥匙,用 /signcheck/try 页面换码:浏览器里生成钥匙并贴码,AK 直接复制进客户端。

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": {
      "code": "<code>",
      "keyid": "<keyid>",
      "key_jwk": "<key_jwk>",
      "proof": "<proof>",
      "ts": "<ts>",
      "nonce": "<nonce>"
    },
    "name": "signcheck_redeem"
  }
}

Input Schema

NameRequiredDescriptionDefault
tsYes
codeYes提取码(SC1.… 整段复制,别只抄一半)
keyidYes已登记钥匙的 keyid(AK 绑到它)
nonceYes
proofYes对 signcheck-mcp/v1|signcheck_redeem|参数摘要|ts|nonce 的 Ed25519 签名
key_jwkYes{kty,crv,x}

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses that redemption is free, that one code can be exchanged only once (irreversible), that the AK is bound to the keyid proven in this signature, and that the entitlement is used downstream as a bearer token needing no further proof. It omits failure modes such as invalid or already-used codes and the shape of the returned AK.

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?

Front-loads the core action and the one-code-one-exchange constraint, then the downstream usage, then the host workaround. Dense but every sentence carries information; the closing browser-workflow sentence is long but earns its place as the practical fallback.

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

Completeness4/5

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

For a six-required-parameter mutation with no annotations and no output schema, the description covers the flow, the binding semantics, the downstream handoff, and the host limitation. It stops short of describing the returned entitlement format or error behavior, which an agent would still need to infer.

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 coverage is 67%, and the description adds real meaning for keyid (the AK binds to it) and for the proof payload structure. However, ts and nonce have no schema description and the description does not explain them beyond appearing in the signed string, leaving part of the parameter set undocumented in both places.

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

Purpose5/5

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

States a specific verb and resource: exchange an Afdian order's extraction code for an AK (entitlement) with usage count and validity, signed by the seller's private key. It also distinguishes itself from the sibling by noting the resulting entitlement is then passed to signcheck_verify, so an agent can tell the two apart without opening either schema.

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?

Explains the precondition (you hold an Afdian code) and gives an explicit alternative path: standard MCP hosts cannot generate keys, so use the /signcheck/try page to generate a key in the browser and paste the code. It does not state when-not-to-use or what to do if the code was already redeemed, but the routing guidance is clear.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources