Skip to main content
Glama

verify_spki_key_and_csr_match

Read-onlyIdempotent

Verifies that a certificate, PKCS#10 CSR, and private key share the same SubjectPublicKeyInfo (SPKI) locally without exposing private key material.

Instructions

Verifies mathematical SubjectPublicKeyInfo (SPKI) match across Certificate, PKCS#10 CSR, and PKCS#8/PKCS#1/SEC1 Private Key locally without exposing private key scalars.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "verify_spki_key_and_csr_match"
  }
}

Input Schema

NameRequiredDescriptionDefault
csrPemNoOptional PKCS#10 Certificate Signing Request (.csr) PEM text.
keyPemNoOptional PKCS#8, PKCS#1 RSA, SEC1 EC, or SPKI PEM key text evaluated strictly in local memory.
certPemNoOptional X.509 PEM certificate text to verify against the private key and/or CSR.
csrPathNoOptional local file path to the PKCS#10 .csr file when csrPem is omitted.
keyPathNoOptional local file path to the private key file when keyPem is omitted.
certPathNoOptional local file path to the X.509 certificate file when certPem is omitted.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.9/5.0
Behavior4/5

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

The annotations already declare this as a read-only, idempotent, non-destructive, local operation. The description adds meaningful context beyond them: evaluation happens strictly locally and private key scalars are never exposed, which matters for a cryptographic verification tool. It still does not disclose what the result looks like on match versus mismatch.

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?

A single dense sentence that front-loads the action and resource with no redundant or filler wording. The technical vocabulary is necessary to distinguish the key formats supported.

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?

For a cryptographic tool with six optional parameters and no output schema, the description omits the valid input combinations and the expected result shape (match/mismatch or error). The annotations cover safety, but an agent still lacks enough guidance to call this correctly in every case.

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 each parameter is already documented in the schema, including the PEM-versus-path fallback relationship. The description adds only that key material is evaluated in local memory, with no explanation of how the six optional inputs combine or which pairings are meaningful.

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 gives a specific verb (verifies), a precise resource (mathematical SubjectPublicKeyInfo match), and names the concrete artifact types (Certificate, PKCS#10 CSR, PKCS#8/PKCS#1/SEC1 Private Key). It is clearly distinguishable from the sibling tools, which extract pins, audit chains, and check hostnames.

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?

Usage is implied by the artifact list, but the description never states when to choose this tool over the sibling verification/extraction tools. More importantly, every parameter is optional and the description gives no guidance on which input combinations are valid or required.

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