akf
v1.6.2Trust metadata for AI agents — check files before building on them, stamp verified work.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
replay_file
Replay-verify a stamp's falsifiable probe recipe. Default inspects only: shows the recorded command and whether the claim's inputs drifted since issuance. With run=true, EXECUTES the recorded command (arbitrary code — only for files you trust) and returns CONFIRMED / CONFIRMED_DRIFTED (succeeded against diverged inputs) / REFUTED / UNREPLAYABLE.
| Parameter | Type | Description |
|---|---|---|
path * | string | Path to the stamped file |
run | boolean | Execute the recorded command (review it first) |
check_file
One-line trust check before building on a file. Returns OK (fresh stamp, trust above threshold — skip re-verification), LOW (trust below threshold), STALE (modified after stamping or claims expired — re-verify), or UNSTAMPED (no metadata). Use this before re-reading, re-testing, or re-deriving work another agent already verified.
| Parameter | Type | Description |
|---|---|---|
path * | string | Path to the file to check |
threshold | number | Trust threshold for OK vs LOW |
create_claim
Create an AKF claim with trust metadata. Returns a JSON object with the claim, trust score, and provenance.
| Parameter | Type | Description |
|---|---|---|
confidence * | number | Trust score 0.0-1.0 |
content * | string | The factual claim to create |
ai_generated | boolean | Whether this claim is AI-generated |
source | string | Information source (e.g., 'SEC 10-Q') |
validate_file
Validate an .akf file against the AKF specification. Returns validity status, validation level (0-3), errors, and warnings.
| Parameter | Type | Description |
|---|---|---|
path * | string | Path to the .akf file to validate |
scan_file
Security scan any file for AKF trust metadata. Works with .akf, .docx, .pdf, .html, .md, .json, images, and any format with a sidecar.
| Parameter | Type | Description |
|---|---|---|
path * | string | Path to the file to scan |
trust_score
Compute the effective trust score for a claim using AKF's trust computation engine. Factors in confidence, authority tier, and temporal decay.
| Parameter | Type | Description |
|---|---|---|
confidence * | number | Base confidence score |
content * | string | The claim to score |
authority_tier | integer | Authority tier 1-5 (1=official records, 5=AI inference) |
stamp_file
Stamp AKF trust metadata onto any file. Supports DOCX, PDF, images, Markdown, code, and 20+ formats. Use this after creating or modifying files.
| Parameter | Type | Description |
|---|---|---|
path * | string | Path to the file to stamp |
agent | string | Agent identity (e.g., 'claude-code', 'copilot') |
classification | string | Security classification: public, internal, confidential, restricted |
confidence | number | Confidence score |
evidence | string | Comma-separated evidence (e.g., 'tests pass, docs reviewed') |
audit_file
Run compliance audit on an AKF file against regulatory frameworks (EU AI Act, SOX, HIPAA, GDPR, NIST AI RMF, ISO 42001).
| Parameter | Type | Description |
|---|---|---|
path * | string | Path to the .akf file to audit |
regulation | string | Target regulation: eu_ai_act, sox, hipaa, gdpr, nist_ai, iso_42001 |
embed_file
Embed AKF trust metadata into any supported file format (DOCX, PDF, HTML, images, Markdown, etc.).
| Parameter | Type | Description |
|---|---|---|
content * | string | The factual claim to embed |
path * | string | Path to the file to embed metadata into |
classification | string | Security classification |
confidence | number | Confidence score |
source | string | Information source |
extract_file
Extract AKF trust metadata from any supported file format. Returns claims, classification, provenance, and trust scores.
| Parameter | Type | Description |
|---|---|---|
path * | string | Path to the file to extract metadata from |
detect_threats
Run 10 AI-specific security detections on an AKF file: hallucination risk, knowledge laundering, classification downgrade, trust degradation, and more.
| Parameter | Type | Description |
|---|---|---|
path * | string | Path to the .akf file to analyze |