honesty-mcp

v0.4.2
io.github.lkopietz3-byte/honesty-mcp Checked 9 hours ago Published 10 days ago

MCP server exposing 15 honesty-SDK kits for checking claims, evidence and data.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

check_grounding Check citation grounding

Checks citation markers and lexical support in AI-generated text. Splits `text` into checked units and classifies each one against `evidence`: 'grounded' (cites a marker accepted by the default lexical support matcher), 'placeholder' (an honest '[TK]'/'[citation needed]' gap), 'ungrounded' (an uncited unit without a placeholder), or 'invalid' (cites a marker id that is missing from `evidence`, or whose evidence is rejected by the default support matcher; this outranks every other status). 'invalid' means the unit needs human review. It does not establish that a citation was fabricated, and it…

ParameterTypeDescription
evidence *objectMap of citation marker id -> the evidence text/span it claims to support. This is the closed world: a marker cited in `text` whose id is NOT a key here is flagged invalid, and a marker whose evidence…
text *stringThe AI-generated text to check (up to 2,000,000 characters). Citation markers use the kit's default convention `[[cite:id]]` (e.g. "The bridge opened in 1932 [[cite:source-a]]."). This tool uses the d…

corroborate_evidence Grade evidence corroboration for a claim

Grades the supplied evidence for a claim and reports two things: the evidence direction ('supports', 'contradicts', 'mixed' or 'none') and a verdict for how strong the evidence is in that direction. Read the direction first: a 'confirmed' verdict with direction 'contradicts' means the supplied evidence strongly contradicts the claim. The grade uses distinct normalized source identities and caller-assigned signal kinds. Sources are counted by independent origin, not by string: spellings of one page (host letter case, percent-escape case, a trailing host dot, an empty query, #fragment, default p…

ParameterTypeDescription
coverage *
signals *arrayThe evidence signals gathered about the claim. May be empty.
inferOriginsboolean[corroboration-kit 0.3+] Default true: pages of one site or repository, and hosts that share a registered domain, count as one source. Pass false to count by page (spellings of one page still merge, a…

check_payout_invariance Check whether a ranking engine ignores payout (static-imports only)

Checks whether payout-related identifiers (commission, payout, affiliate rate) appear in the source of a ranking/recommendation engine. Only `static-imports` mode is available: running your ranking function under payout-mutation scenarios (`runtime` mode) is turned off because it runs caller-supplied JavaScript. The server operator can turn it on by setting HONESTY_MCP_ENABLE_CODE_EXEC=1; that runs the code with the server's full filesystem, network and environment access, and the worker thread only bounds time. `static-imports` mode greps source files you supply for any reference to payout-re…

ParameterTypeDescription
mode *stringWhich check to run. Only `static-imports` is available.
caseInsensitiveMatchboolean[static-imports mode] Case-insensitive identifier matching. Default true.
files[static-imports mode, required, at least one file] Source files to scan for payout references, as a map of path -> content. A list of paths or an empty map is a tool error.
matchIdentifierPartsboolean[static-imports mode, payout-invariance-kit 0.3+] Default false (whole-word matching, so `commission` does not match `commissionRate`). When true, an identifier is also found as one part of a longer c…
payoutIdentifiersarray[static-imports mode, required, non-empty] Identifiers that must never appear in the ranking engine's source, e.g. "commission", "payout", "affiliateRate". Each is matched as a whole word (`commission…
stripCommentsboolean[static-imports mode] Strip comments before matching, so a mention in a comment doesn't count. Default true.

score_trust_identified Score an entity from known contributors

Scores one entity (or one dimension of one entity -- quality, reliability, communication, ...) from signals contributed by KNOWN, identified sources: reviewer accounts, raters, inspectors, verified buyers. Weighs each signal by tier x source x proof-strength x reputation x recency decay, sums to an effective (credibility-weighted) sample size, and shrinks the result toward a domain baseline ('prior') by a configurable dial -- thin evidence stays close to the prior, deep evidence overrides it. Signals whose combined weight is 0 contribute nothing; when no signal carries weight, confidence is 'i…

ParameterTypeDescription
now *stringISO 'now' timestamp recency decay is computed against. Pass a fixed value for determinism.
prior *numberThe domain/category baseline the score shrinks toward when evidence is thin.
signals *arrayThe identified signals to score from. May be empty (yields the prior, with insufficient confidence).
configobjectPartial override merged over the library's illustrative EXAMPLE_IDENTIFIED_CONFIG (tiers new/standard/verified/expert). Real callers should supply their own tier/source/proof vocabulary for their doma…
dialShrinkage strength: a named preset, or a raw phantom-prior-signal count. Defaults to 'balanced'.

assess_anonymous_authenticity Score how organic unattributed signals look

Scores how organic a corpus of UNATTRIBUTED, scraped sentiment signals (crawled mentions, imported reviews with no verifiable identity, aggregator feeds) looks, weighing a positive composite of consensus/diversity/volume/recency against a heuristic penalty for two specific patterns: evidence concentrated in a single source type, and unusually uniform sentiment (near-maximal with near-zero variance). Neither pattern establishes fabrication, and source types are counted without verifying that they are independent. It cannot show that sentiment is fabricated or that any reviewer is fake, and vari…

ParameterTypeDescription
now *stringISO 'now' timestamp recency decay is computed against. Pass a fixed value for determinism.
signals *arrayThe unattributed signals to assess. May be empty.
configobjectPartial override merged over the library's illustrative EXAMPLE_ANONYMOUS_CONFIG -- omit to use the example config as-is.

check_provenance_claims Check claims for unbacked certainty language

Scans reader-facing claims for certainty-implying language ("(verified)", "independently verified", "guaranteed", "fact-checked", "100% accurate", ...) that isn't backed by an appropriate provenance tier, plus tiers that require a sourceRef but don't have one, and claims carrying an unrecognized tier. Run it on any copy, marketing page, or AI-drafted content that makes factual-sounding claims before it ships. The default phrase list is a short starter list (11 phrases), not a taxonomy -- it will miss phrases it doesn't know about: compliance attestations ('SOC 2 certified', 'HIPAA-ready'), sup…

ParameterTypeDescription
claims *arrayThe claims to check.
caseSensitivebooleanCase-sensitive phrase matching. Default false.
certaintyPhrasesarrayOverride the certainty-phrase vocabulary. Defaults to a generic starter list ('(verified)', 'independently verified', 'proprietary dataset', 'guaranteed', 'fact-checked', '100% accurate', ...).
certaintyRequiresTierarrayTiers strong enough to back certainty language. Default ['verified'].
negationWindowintegerMaximum characters before a phrase match to scan for a negation word ('not', 'without', ...), cut off at the start of the clause. Default 40.
requireSourceRefForTiersarrayTiers that must carry a visibly non-empty sourceRef (not only whitespace or invisible characters). Default ['verified'].

check_claims_registry Check public claims for stale or missing evidence

Keeps public-facing product claims honest over time by checking each one against its own claimed evidence -- the SOC2-control-evidence pattern applied to marketing/product copy instead of compliance controls. Buckets every claim into 'current' (evidence present, review within policy), 'stale' (evidence present but `verifiedAt` is more than `maxAgeDays` x 24 hours before `now`, compared in exact milliseconds, or unparseable; `ageDays` is whole days rounded down and for display only, so a claim can show 90d and still be stale at `maxAgeDays: 90`), or 'unverified' (no evidenceRef, or a placeholde…

ParameterTypeDescription
claims *arrayThe claims to evaluate.
maxAgeDays *numberStaleness policy: evidence older than this many days is flagged stale. 0 is valid (every claim must have been verified today or it's stale) -- the kit requires a finite number >= 0.
nowstringThe moment to evaluate against: 'YYYY-MM-DD' (UTC midnight) or a timestamp with an explicit zone ('2026-02-01T09:30:00Z', '+hh:mm'). A zoneless timestamp is a tool error, not local time. Defaults to t…

append_audit_entry Append a tamper-evident audit-chain entry

Appends one entry to an append-only, hash-chained audit log and returns the new (longer) chain. Each entry's hash binds its payload, index, createdAt, a fixed format tag (formatVersion, currently "audit-chain-kit/v1"), and the previous entry's hash together, so any later tampering with an earlier entry -- or an entry produced by an incompatible version of audit-chain-kit -- breaks the chain in a way verify_audit_chain will detect. Use this wherever you need a tamper-evident record of events (agent actions, approvals, state transitions) that a skeptical third party can later verify independentl…

ParameterTypeDescription
chain *arrayThe existing chain, in order, exactly as previously returned/stored. Pass [] to start a new chain.
payload *Caller data for the new entry -- any JSON-serializable value.

verify_audit_chain Verify a tamper-evident audit chain

Independently re-verifies a hash chain from genesis: recomputes every entry's hash and confirms each entry's prevHash matches the preceding entry's entryHash. Detects a mutated payload (stored entryHash no longer matches recomputed hash) and a severed link or spliced-out middle entry (prevHash mismatch) with no options at all. Two DIFFERENT truncation attacks need two DIFFERENT options, and neither is on by default: (1) entries deleted from the end and NOT replaced -- pass `expectedMinLength` to catch a chain that's simply shorter than it should be (a tail deletion alone leaves no broken point…

ParameterTypeDescription
chain *arrayThe chain to verify, exactly as stored/received.
anchorobjectA checkpoint obtained earlier from somewhere the chain's writer cannot change (your own log, a separate append-only store) -- e.g. `{ index: chain.length - 1, entryHash: chain[chain.length - 1].entryH…
expectedMinLengthintegerIf you know how long the chain should be, pass it to catch entries deleted from the end and NOT replaced. Does NOT catch truncate-and-re-append (see `anchor`) -- a chain shortened and then extended ba…

grade_decision Grade a decision against what happened after it

Grades one recommendation-and-decision pair against a before/after observation log. Compares a pre-decision BASELINE window to a post-decision, exposure-aligned RESULT window on the same subjectId + checkKey, and returns 'holding' (the exposed post-decision window stayed under `refuteThreshold` bad observations AND its bad rate is lower than the baseline's), 'not-holding' (EITHER the exposed post-decision window hit `refuteThreshold` bad observations, OR its bad rate is not lower than the baseline's, even below that count -- 1 bad of 10 before, 1 bad of 3 exposed since is 'not-holding', and so…

ParameterTypeDescription
decision *objectThe human's call on the recommendation.
observations *arrayEvery observation available. This tool does the filtering by subjectId + checkKey itself, so passing the whole ledger (observations for other subjects/checks too) is fine.
recommendation *objectThe advice being graded.
configobjectFloors and thresholds, every field optional with a library default (see advice-ledger-kit's DEFAULT_GRADE_CONFIG). Omit entirely to use the library's defaults.

compute_divergence Measure where two judges disagree, and who was right

Computes how often two independent judges (e.g. an automated engine and a human override) rated the same object differently, and -- where a later outcome exists to settle it -- reports engineRight and humanRight as two SEPARATE counts, never combined into one blended accuracy number (a system can be right most of the time overall and still wrong every single time a human bothers to overrule it, and that second fact is the one worth acting on). Divergence needs BOTH a count floor (minDivergentCount) and a rate floor (minDivergentRate) before it's 'reportable' -- either alone lets noise through.…

ParameterTypeDescription
pairs *arrayEvery occasion both judges could have spoken on. Pairs missing one judgment are still counted, just not comparable.
configobjectFloors, thresholds, and optional custom grouping, every field optional with a library default (see advice-ledger-kit's DEFAULT_DIVERGENCE_CONFIG). Omit entirely to use the library's defaults.

trace_numbers Trace numbers in an answer to evidence

Checks whether numbers in an answer appear in the supplied evidence, allowing recognized rounding. The report preset can match derived values such as sums, using operands anywhere in the evidence. It cannot check whether the numbers are true, appear in the right sentence, or belong to the right table row. Numbers written as words are not read. Read the per-number statuses and skipped list even when the kit returns 'clean', since it can return that verdict with no numbers checked. With evidence 'North: 12 orders. South: 15 orders.', 'North: 12 orders.' traces, 'North: 13 orders.' is untraced, a…

ParameterTypeDescription
answer *stringThe answer text to check.
evidence *stringEvidence as plain text.
optionsobjectOptional tracing settings. Omit to use the kit's strict preset.

assess_accuracy_claim Assess an accuracy claim against its counts

Judges a claimed accuracy or related rate against the supplied counts and returns the kit's verdict, reasons and suggested statement. It takes the caller's word on who labeled the items and how they were sampled. It cannot determine whether the system is accurate, the labels are right or the sample represents production. For a random sample with human labels and 990 of 1,000 correct, an accuracy claim of '98%' is supported and '99.5%' is contradicted.

ParameterTypeDescription
claim *object
provenance *object
sampling *stringHow the items were selected.
benchmarkobjectThe named set for complete or held-out-split sampling.
evaluatedAtstringEvaluation date in YYYY-MM-DD form.
optionsobjectOptional assessment policy. Omit to use the kit defaults.
populationobjectIdentifiers for the population claimed and the population evaluated.
retractionsobjectKnown retractions and whether the sample included them.
sampleobjectCounts. Omit if they were not disclosed.
strataarrayRequired for stratified samples. Counts must add up to the sample.

check_parity Compare a mirror or audit review stamps

With mode 'mirror', compares caller-supplied canonical and mirror records for missing, extra or changed data. With mode 'review-stamps', compares before and after snapshots for date changes with no visible evidence of a recheck. A changed value, source or reviewer can count as evidence even if no one reviewed anything. List automatic edits in ignoreFields. The stamp audit does not flag value changes by themselves. The kit cannot tell which copy is right, whether its data is true or current, or whether a recheck took place. Look-alike key detection covers only a limited set of characters. Suppl…

ParameterTypeDescription
check *

check_freshness Check which review dates are overdue

Classifies each supplied review date as fresh, aging or stale at the caller's required as-of date. The whole-day age must exceed a threshold to reach the next level. The dataset level is the worst record's level. This measures time since the supplied dates. It cannot tell whether a review happened or whether the data is accurate. As of 2026-08-02T12:00:00Z with thresholds of 14 and 45 days, a 2026-07-20 review is fresh at 13 days and a 2026-06-01 review is stale at 62 days.

ParameterTypeDescription
config *object
now *stringRequired as-of date (YYYY-MM-DD at UTC midnight) or zoned ISO timestamp with seconds.
records *arrayRecords with review dates. An empty array has no dates to check.

scaffold_agent_receipts Scaffold the agent-receipt-kit authorization pattern

agent-receipt-kit is a RUNTIME LIBRARY your own agent-orchestration code imports and calls at two specific moments (issue a WorkPacket before an agent runs, verify its AgentClaim after) -- it is not something this MCP server can 'check' on demand the way it checks a document's citations, because the packet only exists inside your application's own runtime. Call this tool to get the pattern explained, an install step, a copy-pasteable starter snippet for wiring issuePacket/verifyReceipt into your own agent loop, and (optionally) a live worked example run against the real kit -- one accepted cla…

ParameterTypeDescription
includeWorkedExamplebooleanAlso run a live accepted/rejected example against the real issuePacket/verifyReceipt, not just show a snippet.

scaffold_cost_governor Scaffold the cost-governor-kit spend-safety pattern

cost-governor-kit is a RUNTIME LIBRARY your app installs and calls at the moment it's about to make an AI API call -- it is not something this MCP server can 'check' on demand the way it checks a document's citations. Its advisory check-then-commit piece (withReserveConfirm) needs a live UsageLedger backed by YOUR database and an async callback making the real call, neither of which exist as content to hand this tool. Call this to get all three pieces explained (estimated pre-call spend check, cache-aware pricing math, advisory successful-call usage counting), an install step, a copy-pasteable…

ParameterTypeDescription
includeWorkedExamplebooleanAlso run live examples against the real checkPreCallCeiling/withReserveConfirm, not just show a snippet.