Skip to main content
Glama
jstibal

Openterms-mcp

verify_receipt

Verify cryptographic integrity of receipts to confirm consent proof authenticity for AI agents. Public verification without API keys.

Instructions

Verify a receipt's cryptographic integrity. Public — no API key needed.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
receipt_idYes
canonical_hashYes
signatureYes
key_idYes

Implementation Reference

  • Handler for verify_receipt tool, which POSTs to /v1/receipts/verify.
    elif name == "verify_receipt":
        resp = client.post("/v1/receipts/verify", json=arguments, headers=_headers(auth=False))
        if resp.status_code == 200:
            v = resp.json()
            status = "✅ VALID" if v.get("valid") else "❌ INVALID"
            return (
                f"{status}\n"
                f"  hash_matches: {v.get('hash_matches')}\n"
                f"  signature_valid: {v.get('signature_valid')}"
            )
        return _format_error(resp)
  • Tool definition/schema for verify_receipt.
    {
        "name": "verify_receipt",
        "description": "Verify a receipt's cryptographic integrity. Public — no API key needed.",
        "inputSchema": {
            "type": "object",
            "required": ["receipt_id", "canonical_hash", "signature", "key_id"],
            "properties": {
                "receipt_id": {"type": "string"},
                "canonical_hash": {"type": "string"},
                "signature": {"type": "string"},
                "key_id": {"type": "string"},
            },
        },
    },

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jstibal/openterms-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server