Explain a code (errors, reasons, diagnostics, wrapper codes)
explain_codeExplain or list PKI error, verdict, diagnostic, and wrapper codes with cause, severity, and remedy, letting you branch on stable codes instead of message text.
Instructions
Explain any code this server can emit, from the registries vendored at the pkinative v1.0.0 tag: the 57 PKI_* engine error codes (coarse class, PkiError subclass, when raised, CWE, the engine's remedy and the MCP input that lifts it), the 43 PKI_REASON_* codes a verdict returns, the 97 PKI_DIAG_* diagnostics (with severity) and the wrapper's own codes (VALIDATION_ERROR, SECURITY_VIOLATION, LIMIT_CEILING_EXCEEDED, SECRET_REQUIRED, …). list:true enumerates (kind filters one vocabulary). Branch on codes, never on message text.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | The code to explain (PKI_*, PKI_REASON_*, PKI_DIAG_* or a wrapper code such as SECURITY_VIOLATION). Omit with list:true to enumerate. | |
| kind | No | Restrict a listing to one vocabulary. | |
| list | No | List the codes (optionally of one kind) instead of explaining one. | |
| fields | No | Dot-paths to keep after verbosity (arrays map over elements); unmatched paths land in _meta.unmatchedFields. | |
| verbosity | No | 'summary' keeps the scalar fields only (token-frugal). | full |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwe | No | ||
| code | No | ||
| kind | No | ||
| codes | No | ||
| count | No | ||
| since | No | ||
| remedy | No | ||
| summary | No | When the code is raised / returned. | |
| severity | No | ||
| standard | No | ||
| errorClass | No | The coarse class (usage, input, parse, security, limit, unsupported, crypto, password, check, internal). | |
| engineClass | No | The PkiError subclass. |