Skip to main content
Glama
Nizoka

pkinative-mcp

Inspect time-stamp (RFC 3161 response, token or TSTInfo)

inspect_timestamp
Read-onlyIdempotent

Parse and read RFC 3161 timestamp responses, tokens, or TSTInfo structures, auto-detected, to inspect status, policy, imprint, serial, and genTime; this is not verification.

Instructions

Read-only RFC 3161 report of a TimeStampResp (.tsr: status, statusStrings, failInfo, and the token when granted), a TimeStampToken (.tst) or a bare TSTInfo — auto-detected in that order unless as names one. The TSTInfo view: policy, message imprint (algorithm + hex), serial, genTime (epoch ms + ISO), accuracy (null = undeclared), ordering, nonce (decimal), the TSA name as STATED (a hint, not an identity), extensions; the token view adds its CMS envelope (signer count, embedded certificates). Parsing proves nothing — verify_timestamp is the verdict (imprint, TSA signature, chain, revocation). Refuses with the PKI_* cause when the bytes are none of the three (as:'…' shows one reading's exact refusal); strict:true escalates the first engine warning (OpenSSL tokens carry PKI_DIAG_CMS_SET_NOT_SORTED). Token-frugal: verbosity:'summary' (status, genTime, serial, imprint).

Input Schema

NameRequiredDescriptionDefault
asNoRead the input as this structure. Omitted: auto-detected in the order response, token, tstinfo (the result's `as` says which).
inputYesThe time-stamp object: a TimeStampResp (.tsr), a TimeStampToken (.tst) or a bare TSTInfo (DER, or any PEM block): exactly one of pem / derBase64 / path.
fieldsNoDot-paths to keep after verbosity (arrays map over elements); unmatched paths land in _meta.unmatchedFields.
limitsNoRaise pkinative's 22 named security bounds for this call (trusted input only; absent keys keep the engine defaults). A value above an operator ceiling (PKINATIVE_MCP_MAX_INPUT_BYTES, PKINATIVE_MCP_MAX_KDF_ITERATIONS, PKINATIVE_MCP_MAX_PATHS_EXPLORED) is LIMIT_CEILING_EXCEEDED; describe_engine lists the defaults and the ceilings.
strictNoEscalate the first engine warning to a PKI_STRICT_DIAGNOSTIC error instead of listing it in diagnostics[].
pemModeNo'strict' (RFC 7468 exactly, default) or 'lax' (tolerates whitespace, line length and RFC 1421 headers).strict
verbosityNo'summary' keeps the scalar fields only (token-frugal).full
encodingRulesNo'der' (strict X.690 DER, default) or 'ber' (indefinite / non-minimal lengths and constructed strings, as legacy CMS producers write).der

Output Schema

NameRequiredDescriptionDefault
asNoWhat the input was read as.
tokenNoThe token (of a granted response, or the input itself): what it asserts and its CMS envelope.
statusNoThe PKIStatusInfo of a response. Only granted / grantedWithMods carry a token.
genTimeNo
tstInfoNoThe bare TSTInfo (as:'tstinfo').
sizeBytesNo
imprintHexNo
statusCodeNo
diagnosticsNoNon-fatal concerns the engine raised (PKI_DIAG_*, de-duplicated, at most 200; explain_code explains one).
serialNumberNo
hashAlgorithmNo
diagnosticCountNo
diagnosticCountsNoOccurrences per diagnostic code.
diagnosticsTruncatedNotrue when distinct diagnostics beyond the 200 listed were dropped.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, yet the description still adds real behavior: the PKI_* refusal when bytes match none of the three structures, strict:true escalating the first engine warning (with the concrete PKI_DIAG_CMS_SET_NOT_SORTED case for OpenSSL tokens), and the warning that the TSA name is 'as STATED (a hint, not an identity)'. It also flags that accuracy null means undeclared, which prevents a false-negative read.

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 capability and the structure order, then verification routing, then failure modes, then the frugality hint — a sensible priority order. The prose is dense and em-dash heavy, with the TSTInfo field list packed into one long clause, but no sentence is filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an 8-parameter inspection tool with a full output schema and safety annotations, the description covers everything an agent needs: accepted input forms, auto-detection, per-view contents, failure signalling, and the hand-off to verify_timestamp. Return-value detail is legitimately left to the output schema.

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, but the description adds meaning beyond it: it clarifies what 'summary' actually keeps (status, genTime, serial, imprint) rather than the schema's vague 'scalar fields only', and reinforces that `as` overrides auto-detection and shows one reading's exact refusal. fields, limits, pemMode and encodingRules are left entirely to the schema, which is adequate given full coverage.

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?

States a specific verb and resource: a read-only RFC 3161 report over TimeStampResp, TimeStampToken, or bare TSTInfo, with the auto-detection order spelled out. It enumerates what each view surfaces (policy, imprint, serial, genTime, accuracy, nonce, TSA name, CMS envelope), so an agent knows exactly what it gets without opening the schema.

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?

Explicitly routes the agent: 'Parsing proves nothing — verify_timestamp is the verdict (imprint, TSA signature, chain, revocation)', naming the sibling and the condition that selects it. It also gives a token-frugal mode (verbosity:'summary') and the `as` override for ambiguous inputs, so both when-to-use and how-to-scope are covered.

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