Skip to main content
Glama

Get a compliance receipt

get_compliance_receipt
Read-onlyIdempotent

Returns an order's signed compliance receipt: an ES256 JWS with its decoded claims and a PDF link, covering records delivered, suppression removals, subscriber classes, TPS screening, Article 14 status, the licence and the file hash. Use it to prove to the user, a colleague or another agent that a list is licensed and screened; anyone can verify it with POST /v1/compliance/receipts/verify. Free; it needs orders:read. Lawful basis is UK GDPR Article 6(1)(f) legitimate interests; email audiences include corporate subscribers only by default (PECR), so sole traders and ordinary partnerships are left out unless the toggle is changed.

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": {
      "order_id": "<order_id>"
    },
    "name": "get_compliance_receipt"
  }
}

Input Schema

NameRequiredDescriptionDefault
order_idYesThe order the receipt covers.

Output Schema

NameRequiredDescriptionDefault
idYesFormat: a compliance receipt id: rcpt_ followed by a 26 character ULID in upper case Crockford base32, such as rcpt_01JB4NA2Q5W8ZAK8Q2V7XN3M9R.
algYes
jwsYesThe receipt as a compact JWS signed with ES256.
kidYesThe signing key id in jwks_url.
claimsYes
pdf_urlYesThe PDF twin at mydatahub.emailmovers.com/receipts/{id}.
jwks_urlYes
order_idYesFormat: an order id: ord_ followed by a 26 character ULID in upper case Crockford base32, such as ord_01JB4N9S3W2X6Y7Z8A1B2C3D4E.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedOutput schema / $defs / ReceiptChecks
      Added value: +{
      +  "description": "Four checks over the delivered records: privacy notice sent, email checked within 6 months, contact confirmed in role and company active. Shares are percentages to one decimal.",
      +  "properties": {
      +    "company_active": {
      +      "description": "Company active as of the register snapshot. Audiences hold active companies only unless they ask for other statuses.",
      +      "properties": {
      +        "active": {
      +          "description": "Delivered records whose company is active on the register on that date.",
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        "active_share": {
      +          "description": "active as a share of records delivered.",
      +          "maximum": 100,
      +          "minimum": 0,
      +          "type": "number"
      +        },
      +        "register_as_of": {
      +          "anyOf": [
      +            {
      +              "format": "date",
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "The company register snapshot date (provenance.company.as_of), the same for every record of a dataset version: the latest date when records differ, null with no records."
      +        }
      +      },
      +      "required": [
      +        "register_as_of",
      +        "active",
      +        "active_share"
      +      ],
      +      "type": "object"
      +    },
      +    "confirmed_in_role": {
      +      "description": "Contact confirmed in role, over the delivered records.",
      +      "properties": {
      +        "confirmed": {
      +          "description": "Delivered records whose contact was confirmed still at the company (provenance.contact.last_verified_at is set).",
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        "confirmed_share": {
      +          "description": "confirmed as a share of records delivered.",
      +          "maximum": 100,
      +          "minimum": 0,
      +          "type": "number"
      +        },
      +        "confirmed_within": {
      +          "description": "Of the confirmed records, those confirmed within within_days of the receipt.",
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        "confirmed_within_share": {
      +          "description": "confirmed_within as a share of records delivered.",
      +          "maximum": 100,
      +          "minimum": 0,
      +          "type": "number"
      +        },
      +        "not_checked": {
      +          "description": "Delivered records whose contact has not been confirmed in role yet.",
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        "not_checked_share": {
      +          "description": "not_checked as a share of records delivered.",
      +          "maximum": 100,
      +          "minimum": 0,
      +          "type": "number"
      +        },
      +        "within_days": {
      +          "description": "The window in days for confirmed_within: 180, 6 months before the receipt.",
      +          "exclusiveMinimum": 0,
      +          "type": "integer"
      +        }
      +      },
      +      "required": [
      +        "confirmed",
      +        "confirmed_share",
      +        "not_checked",
      +        "not_checked_share",
      +        "within_days",
      +        "confirmed_within",
      +        "confirmed_within_share"
      +      ],
      +      "type": "object"
      +    },
      +    "email_checked": {
      +      "description": "Email checked within 6 months, over the delivered emails.",
      +      "properties": {
      +        "checked": {
      +          "description": "Of those, emails whose latest verification (provenance.email.verified_at) is within within_days of the receipt.",
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        "emails": {
      +          "description": "Delivered records with an email.",
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        "share": {
      +          "description": "checked as a share of emails.",
      +          "maximum": 100,
      +          "minimum": 0,
      +          "type": "number"
      +        },
      +        "within_days": {
      +          "description": "The window in days: 180, 6 months before the receipt.",
      +          "exclusiveMinimum": 0,
      +          "type": "integer"
      +        }
      +      },
      +      "required": [
      +        "within_days",
      +        "emails",
      +        "checked",
      +        "share"
      +      ],
      +      "type": "object"
      +    },
      +    "privacy_notice": {
      +      "description": "Privacy notice sent, over the delivered records.",
      +      "properties": {
      +        "other": {
      +          "description": "The rest: records notified publicly under the disproportionate effort exemption, or marked notified with no notice date.",
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        "pending_share": {
      +          "description": "pending_within_window as a share of records delivered.",
      +          "maximum": 100,
      +          "minimum": 0,
      +          "type": "number"
      +        },
      +        "pending_within_window": {
      +          "description": "Delivered records inside the one month Article 14 window, not yet sent the notice.",
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        "sent": {
      +          "description": "Delivered records sent the Article 14 privacy notice: status notified, with a notice date.",
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        "sent_share": {
      +          "description": "sent as a share of records delivered.",
      +          "maximum": 100,
      +          "minimum": 0,
      +          "type": "number"
      +        }
      +      },
      +      "required": [
      +        "sent",
      +        "sent_share",
      +        "pending_within_window",
      +        "pending_share",
      +        "other"
      +      ],
      +      "type": "object"
      +    }
      +  },
      +  "required": [
      +    "privacy_notice",
      +    "email_checked",
      +    "confirmed_in_role",
      +    "company_active"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / $defs / ReceiptClaims / properties / checks
      Added value: +{
      +  "$ref": "#/$defs/ReceiptChecks",
      +  "description": "The four checks over the delivered records. On every receipt signed since 29 November 2026; absent on an older receipt, which still verifies."
      +}
  2. Changed1 schema field changed
    • addedOutput schema / $defs / ReceiptClaims / properties / test
      Added value: +{
      +  "const": true,
      +  "description": "The receipt of a test mode order (a test key, or a demo organisation): its records are invented and it grants no licence. Absent on a live order's receipt.",
      +  "type": "boolean"
      +}
  3. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already cover read-only, idempotent, non-destructive, closed-world, but the description adds materially new behavior: it is free, requires the orders:read scope, carries a stated lawful basis, and — critically — discloses that email audiences include only corporate subscribers by default under PECR, so sole traders and ordinary partnerships are excluded unless a toggle is changed. That caveat directly affects how an agent should interpret the receipt's subscriber-class claims.

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 return shape, which is the right ordering, and every clause carries information. It is a dense single paragraph, though, and the legal-basis/PECR tail could be split or trimmed for scanability.

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?

An output schema exists so return values need not be explained, yet the description still orients the agent to the artifact's structure. With one required parameter fully documented, plus auth scope, cost, and verification path, nothing an agent needs to call this correctly is missing.

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 coverage is 100% and the single order_id parameter already documents its purpose, pattern, and example. The description only restates that the receipt covers an order, adding no format or edge-case detail beyond the schema, so the baseline 3 applies.

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 (returns an order's signed compliance receipt) and then enumerates exactly what the artifact contains: an ES256 JWS, decoded claims, a PDF link, plus the specific claim topics (delivery records, suppression removals, subscriber classes, TPS screening, Article 14, licence, file hash). This is far beyond restating the name, and it clearly separates itself from get_order by being the proof artifact rather than the order itself.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit use case (prove to a user, colleague, or another agent that a list is licensed and screened) and the follow-on verification path via POST /v1/compliance/receipts/verify. It does not state when NOT to use it or name a sibling alternative, which keeps it short of a 5.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources