Skip to main content
Glama
Idemcore

Idemcore

Official

Verify a receipt offline

idemcore_verify_receipt

Verifies Idemcore receipts offline, checking format and Ed25519 signatures, recomputing token-log chain digests, and validating disclosed prompt or output hashes.

Instructions

Verify an Idemcore receipt without calling the API: L1 checks format and the Ed25519 signature against trusted Idemcore keys; L2 recomputes the token-log chain digests from a log; optional disclosure checks that a prompt, token ids or displayed text match the receipt's hashes.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "receipt": "<receipt>"
    },
    "name": "idemcore_verify_receipt"
  }
}

Input Schema

NameRequiredDescriptionDefault
receiptYesReceipt JSON (object, JSON string, base64url JSON, or an embed envelope {receipt, ...}).
log_pathNoPath to a per-token log file for L2.
log_textNoPer-token log text for L2.
messagesNoDisclosed prompt messages to check against prompt_hash.
salt_b64uNoSalt (base64url) for hash_only receipts; not needed for privacy=full.
extra_keysNoExtra public JWK / JWKS to trust for this call (e.g. a self-hosted signer).
output_idsNoDisclosed output token ids to check against output_token_hash.
output_textNoDisplayed answer text to check against output_text_hash (if the receipt carries it).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It does disclose valuable behavior: entirely offline execution, trust anchored to Idemcore keys plus per-call extra_keys for self-hosted signers, and the layering of checks. But it says nothing about what a verification result looks like (pass/fail per level, mismatches, errors) or what happens on signature failure, which is central for a verification tool.

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?

A single dense sentence, front-loaded with the core action and the offline constraint, with semicolons cleanly separating L1, L2 and disclosure concerns. No filler, though the layer enumeration would scan faster as a short list.

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?

Covers the three verification levels and the trust model, which is the essential conceptual frame for an 8-parameter tool with no annotations and no output schema. The notable gap is the absence of any statement about the response shape or failure reporting, which the missing output schema forces the description to carry.

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, including salt's hash_only/privacy=full distinction. The description adds connective meaning by tying the disclosure parameters to receipt hashes (prompt_hash, output_token_hash, output_text_hash) and by framing log_path/log_text as L2 inputs. It does not explain log_path vs log_text precedence or the extra_keys JWK/JWKS shape beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a specific verb+resource ('Verify an Idemcore receipt') and immediately scopes it as offline ('without calling the API'), then enumerates the concrete checks: L1 format + Ed25519 signature against trusted keys, L2 token-log chain digest recomputation, optional disclosure checks. This implicitly separates it from API-backed siblings like idemcore_get_receipt, though no sibling is named explicitly.

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?

Mentions that disclosure checks are 'optional' and that L2 requires a log, giving some implied conditionality. However, it never says when to choose this tool over idemcore_verify_audit, nor when to supply log_path versus log_text, nor what to do if L1 fails before running L2. Usage is inferable but not guided.

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