Skip to main content
Glama

CipherHUB Cryptography Toolkit

ecc_key_verify

[ecc] ECC 公钥验签(SECP* 用 ECDSA,ED25519 用 EdDSA)。 【参数】

  • ecc_public_key_in_pem:PEM 公钥

  • plain_data_in_hex:原始数据 Hex

  • signature_in_hex:签名 Hex

  • sign_raw_data_mode:必须与签名时一致

  • hash_algorithm:必须与签名时一致 【输出】verified(bool,True=验签通过)、curve_name。 【曲线限制】X25519 不可用于验签。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
data_in_hexNo数据的十六进制字符串。RAW 模式为消息原文 Hex,DIGEST 模式为哈希摘要 Hex
hash_algorithmNo哈希算法名称,可选值:Sha1 / Sha224 / Sha256 / Sha384 / Sha512(ECC 不支持 Sm3)Sha512
signature_in_hexNo签名的十六进制字符串
sign_raw_data_modeNoTrue=对原文签名(服务端内部先哈希),False=data_in_hex 已是哈希摘要的 Hex
ecc_public_key_in_pemNoECC 公钥的 PEM 文本(含 BEGIN/END 头尾的 Base64 编码文本)

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations provided, the description carries the behavioral disclosure burden. It discloses the output (verified bool, curve_name), algorithm behavior (ECDSA for SECP*, EdDSA for ED25519), and the constraint that sign_raw_data_mode and hash_algorithm must match the signing parameters. It also notes the X25519 limitation. However, it does not describe error scenarios or failure behavior, which prevents a perfect score.

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 well-structured with clear sections (purpose, parameters, output, limitation), and the purpose is front-loaded. It is concise but includes a parameter list that duplicates schema information and contains an inconsistency (plain_data_in_hex vs data_in_hex), which is a structural flaw. Overall, it is effectively organized but not flawless.

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?

The description covers purpose, parameter constraints, output format, and a curve restriction, which is a good level of detail for a tool with no output schema. However, the parameter name mismatch (plain_data_in_hex vs data_in_hex) creates a completeness gap that could lead to incorrect invocation. The tool has 5 parameters and moderate complexity, and the description should be more accurate to be fully complete.

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%, so the baseline is 3. The description adds some meaning (e.g., parameters must match signing values) but also introduces a critical mismatch: it lists 'plain_data_in_hex' while the schema defines 'data_in_hex'. This discrepancy undermines the added value and could mislead the agent. The description does not significantly enhance the parameter understanding beyond what the schema already provides.

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 clearly states the tool's function: 'ECC 公钥验签' (ECC public key signature verification). It distinguishes this from sibling tools like ecc_key_sign by focusing on verification, and adds algorithm-specific context (SECP* uses ECDSA, ED25519 uses EdDSA), making the purpose unambiguous and well-scoped.

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

Usage Guidelines3/5

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

The description implies usage (verify an ECC signature) but does not explicitly state when to use this tool versus alternatives like rsa_verify or sm2_verify. The curve limitation (X25519 not usable) provides a limited exclusion, but there is no clear guidance on when to prefer this tool over other verification tools. The 'must be consistent with signing' notes hint at usage context but do not fully address alternative selection.

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.

TDQS

A3.9/5.0
Disambiguation4/5

Most tools target a distinct algorithm+operation pair (e.g., rsa_sign vs sm2_sign vs ml_dsa_sign), and descriptions are detailed. However, block_cipher and stream_cipher both perform symmetric encryption, and ecc_key_exchange and hybrid_kex overlap as key exchange, requiring careful reading to distinguish.

Naming Consistency3/5

Naming is inconsistent across algorithm families: key generation mixes generate_ecc/generate_rsa with ml_dsa_keygen/ml_kem_keygen, and encryption mixes rsa_encryption/sm2_encryption with block_cipher/stream_cipher. Within each family (e.g., rsa_sign/rsa_verify, ml_dsa_sign/ml_dsa_verify), names are predictable, but the overall pattern is not uniform.

Tool Count2/5

32 tools is far above the typical 3-15 range for a well-scoped server. While every tool has a distinct function, the large surface makes the set heavy and harder to navigate, especially with multiple algorithm families and niche utilities.

Completeness5/5

The toolkit gives comprehensive coverage: key generation, encryption/decryption, signing/verification for RSA, ECC, SM2, ML-DSA, ML-KEM, plus symmetric ciphers, hashing, and key exchange. Full workflows are supported with no dead ends, and even helper tools for debugging are included.