Skip to main content
Glama

Verify a signature

crypto_verify
Read-onlyIdempotent

Verify a signature against an SPKI PEM or ML-DSA public key, or a key handle for ed25519, RSA, ECC, ML-DSA, or HMAC-SHA256 keys.

Instructions

Verify a signature against a public key (SPKI PEM or ML-DSA hex) or a key handle (also HMAC-SHA256). Pass exactly one of publicKey or keyHandle.

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": {
      "data": "<data>",
      "signature": "<signature>"
    },
    "name": "crypto_verify"
  }
}

Input Schema

NameRequiredDescriptionDefault
dataYesOriginal data string.
keyHandleNoHandle of an ed25519, rsa, ecc, ml-dsa, or hmac-sha256 key. Key handles look like 'kh_' followed by 32 hex characters.
publicKeyNoPublic key in SPKI PEM format or ML-DSA hex format. Private keys are refused.
signatureYesHex-encoded signature.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.41

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint=false and destructiveHint=false, so the safety profile is fully covered. The description's additions — HMAC-SHA256 support and 'Private keys are refused' — are already stated in the schema property descriptions, so it contributes almost no behavior beyond structured fields. Nothing contradicts the annotations, but nothing is added either.

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

Conciseness5/5

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

Two short sentences, front-loaded with the operation and followed immediately by the parameter constraint. No hedging, no restatement of the title, no wasted clauses.

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?

With 100% schema coverage, a full annotation set, and no output schema to explain, the description covers what an agent needs in order to call it. The main residual gap is that it never says what a successful or failed verification returns, though the absence of an output schema lowers that expectation.

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 100%, so the baseline is 3; the description earns above that by encoding the one-of constraint between publicKey and keyHandle, which the schema does not express (no oneOf/anyOf, additionalProperties false only). That is a real semantic rule the agent cannot derive from the schema alone.

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?

States a specific verb and resource ('Verify a signature') and enumerates the accepted key forms (SPKI PEM, ML-DSA hex, key handle, HMAC-SHA256), which separates it from crypto_sign by direction of operation. It never names a sibling explicitly, so the differentiation is implied by the verb rather than routed.

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 only guidance is the mutual-exclusion rule 'Pass exactly one of publicKey or keyHandle', which tells the agent how to fill parameters but not when to prefer this tool over crypto_sign or crypto_inspect_key. There are no prerequisites, no failure-mode notes, and no excluded cases.

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