Skip to main content
Glama

SigLint — HTTP Message Signature Doctor

signcheck_gitdoctor

诊断一个坏掉的 git pack:定位第一个坏点(offset/seq/kind)、尽可能恢复对象、再用真 git 逐对象验收(cat-file / fsck),返回报告与可兑现收据。两种入参(只能给一种):pack_url=你的下载直链,本站自己 GET(≤256 MB,超了请改走本机命令);transcript=你本机跑 doctor.py 得到的 transcript.json,本站只对账、不复算包字节(结果标 self_reported=true / not_recomputed)。按 pack 计费 0.10 USD/pack(demo 账本,仅联调);付款用的是同一把登记钥匙:keyid + key_jwk + proof + ts + nonce,payer 必须等于 keyid。注意:提取码换来的 AK 是 signcheck_verify 的额度,不覆盖这一件。

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

Input Schema

NameRequiredDescriptionDefault
tsYes
keyidYes已登记钥匙的 keyid(payer 必须等于它)
nonceYes
proofYes对 signcheck-mcp/v1|signcheck_gitdoctor|参数摘要|ts|nonce 的 Ed25519 签名
key_jwkYes{kty,crv,x}:你登记过的 Ed25519 公钥
paymentYesX-PAYMENT 同形:dict 或 base64url(JSON),amount 必须是 0.10、resource=/v1/gitdoctor
pack_urlNohttp(s) 直链,本站下载后跑 doctor;≤256 MB(超过会被当场拒,不扣费)
transcriptNodoctor.py 产出的 transcript.json(对象或 JSON 原文);只对账,不倒推包内容

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/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 substantial work: it discloses per-pack billing of 0.10 USD on a demo ledger, that oversized packs are rejected without charging ("当场拒,不扣费"), the full auth scheme (keyid/key_jwk/proof/ts/nonce with payer == keyid), and that transcript mode is only reconciled and flagged self_reported=true / not_recomputed. It does not say whether a retried call re-charges or where recovered objects are written, leaving the cost/idempotency model partly implicit.

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-loaded with the purpose and the core workflow, then the input branching, then billing/auth. It is one dense paragraph with some repetition of what the schema already says (payer 必须等于 keyid), but nearly every clause carries operational information.

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 an 8-parameter, no-output-schema, paid tool, the definition covers the mode branching, size limits, billing, and auth prerequisites well. It is thin on what the returned report/receipt actually contains and on the charge semantics of repeated calls, which matter for a billed mutation-adjacent operation.

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?

Beyond the 75%-covered schema, it adds real meaning: pack_url is a direct http(s) link the server fetches itself, transcript is a locally produced transcript.json accepted as object or JSON text whose bytes are not recomputed, and payment must be amount 0.10 with resource=/v1/gitdoctor. ts and nonce are only named, not explained, and the proof domain string is the main extra detail given for proof.

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?

The description opens with a specific verb+resource ("诊断一个坏掉的 git pack") and enumerates the concrete pipeline: locate first bad offset/seq/kind, recover objects, verify per-object with real git cat-file/fsck, return report plus receipt. It also explicitly separates itself from the sibling signcheck_verify by noting that redeem-code AK quota does not cover this tool.

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

Usage Guidelines5/5

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

It states the two mutually exclusive input modes ("两种入参(只能给一种)") and the condition selecting each: pack_url for server-side download, transcript for local doctor.py runs. It also gives a concrete exclusion rule with an alternative — packs over 256 MB are rejected and the caller must use local commands instead.

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