Skip to main content
Glama

Preview sample records

preview_records
Read-onlyIdempotent

Returns up to 25 masked sample rows (10 by default) for an audience or a count id, each with verification badges, why it matches and a provenance card. Use it after count_audience to show the user what the records look like before quoting. Free: emails and phones are masked on the server, a repeat returns the same rows, and no rows come back when the count is under 25. Call quote_order next to price the records. 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.

Input Schema

NameRequiredDescriptionDefault
limitNoRows to return, 1 to 25. Default 10.
shuffleNoDraw a new seed. Counts against your rate budget and is logged. Default false, so a repeat returns the same rows.
audienceNo
count_idNoA count id instead of an audience.

Output Schema

NameRequiredDescriptionDefault
idYesFormat: a preview id: prv_ followed by a 26 character ULID in upper case Crockford base32, such as prv_01JB4H3M7Q2V7XN3M9R6T1Y5W8.
rowsYes
seedYesThe seed the rows came from; the same audience gives the same seed.
countYesThe count the rows were drawn from, rounded as disclosure says.
maskedYes
count_idYesFormat: a count id: cnt_ followed by 20 base32 characters (A to Z and 2 to 7), such as cnt_7K2PQ4MAXN3R6TBY5WDZ.
withheldYesRows held back: all of them when the count is under 25, or rows whose title fewer than 10 people hold.
watermarkYesThe account id watermarked into sample CSVs; null when signed out.
created_atYes
disclosureYes
dataset_versionYesThe immutable weekly build a count is bound to, such as 2026-W39. The last 52 stay queryable.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / $defs / SinceFilter / properties / field / enum
      Previous value: -[
      -  "contact.last_validated_at",
      -  "email.last_verified_at",
      -  "signal.type",
      -  "signal.observed_at"
      -]New value: +[
      +  "contact.last_validated_at",
      +  "contact.last_confirmed_at",
      +  "contact.privacy_notice_last_sent_at",
      +  "contact.privacy_notice_first_sent_at",
      +  "email.last_verified_at",
      +  "signal.type",
      +  "signal.observed_at"
      +]
    • changedOutput schema / $defs / ComplianceObject / examples
      Previous value: -[
      -  {
      -    "article14_notified_at": "2026-06-14",
      -    "article14_status": "notified",
      -    "attribution": "Contains public sector information licensed under the Open Government Licence v3.0",
      -    "corporate_subscriber": true,
      -    "email_marketing_basis": "pecr_corporate_subscriber",
      -    "lawful_basis": "legitimate_interests_art6_1_f",
      -    "lia_ref": "EM-LIA-2026-03",
      -    "notice_version": "2026-02",
      -    "provenance": {
      -      "company": {
      -        "as_of": "2026-09-21",
      -        "source": "companies_house"
      -      },
      -      "contact": {
      -        "compiled_at": "2026-05-02",
      -        "last_verified_at": "2026-08-30",
      -        "method": "telephone",
      -        "source": "emailmovers_research"
      -      },
      -      "email": {
      -        "provider_location": "EU",
      -        "result": "ok",
      -        "verified_at": "2026-09-10"
      -      }
      -    },
      -    "record_age_days": 147,
      -    "subscriber_class": "ltd",
      -    "subscriber_evidence": {
      -      "companies_house_number": "05046417",
      -      "company_type": "ltd"
      -    },
      -    "suppression_status": "none",
      -    "tps_ctps_screened_at": "2026-09-12",
      -    "tps_ctps_status": "clear",
      -    "tps_ctps_valid_until": "2026-10-10"
      -  }
      -]New value: +[
      +  {
      +    "article14_first_notified_at": "2025-01-14",
      +    "article14_notified_at": "2026-06-14",
      +    "article14_status": "notified",
      +    "attribution": "Contains public sector information licensed under the Open Government Licence v3.0",
      +    "corporate_subscriber": true,
      +    "email_marketing_basis": "pecr_corporate_subscriber",
      +    "lawful_basis": "legitimate_interests_art6_1_f",
      +    "lia_ref": "EM-LIA-2026-03",
      +    "notice_version": "2026-02",
      +    "provenance": {
      +      "company": {
      +        "as_of": "2026-09-21",
      +        "source": "companies_house"
      +      },
      +      "contact": {
      +        "compiled_at": "2026-05-02",
      +        "last_verified_at": "2026-08-30",
      +        "method": "telephone",
      +        "source": "emailmovers_research"
      +      },
      +      "email": {
      +        "provider_location": "EU",
      +        "result": "ok",
      +        "verified_at": "2026-09-10"
      +      }
      +    },
      +    "record_age_days": 147,
      +    "subscriber_class": "ltd",
      +    "subscriber_evidence": {
      +      "companies_house_number": "05046417",
      +      "company_type": "ltd"
      +    },
      +    "suppression_status": "none",
      +    "tps_ctps_screened_at": "2026-09-12",
      +    "tps_ctps_status": "clear",
      +    "tps_ctps_valid_until": "2026-10-10"
      +  }
      +]
    • addedOutput schema / $defs / ComplianceObject / properties / article14_first_notified_at
      Added value: +{
      +  "anyOf": [
      +    {
      +      "format": "date",
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "The earliest privacy notice on record: the earliest Article 14 notice date we hold for the person, never after article14_notified_at (the latest). Null while pending or when not known."
      +}
  2. Changed2 schema fields changed
    • changedOutput schema / $defs / OtherBadge / description
      Previous value: -"Re-checking, unverified or suppressed."New value: +"Re-checking, unverified or suppressed, or premium_list: on the premium list as of the dataset version's as-of date (the date), on a version that records no per-record check date."
    • changedOutput schema / $defs / OtherBadge / properties / badge / enum
      Previous value: -[
      -  "re_checking",
      -  "unverified",
      -  "suppressed"
      -]New value: +[
      +  "re_checking",
      +  "unverified",
      +  "suppressed",
      +  "premium_list"
      +]
  3. Changed1 schema field changed
    • addedInput schema / properties / audience / type
      Added value: +[
      +  "string",
      +  "object"
      +]
  4. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description still adds material behavior: server-side masking of emails and phones, deterministic repeats, and no rows returned when the count is under 25. It also discloses the PECR default that excludes sole traders and ordinary partnerships from email audiences — a real caveat an agent would otherwise miss.

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-loads purpose, then usage, then behavior, then compliance — a sensible order with no filler. The final compliance sentence is long and carries two separate ideas (lawful basis and PECR subscriber scope), which costs a little readability but each clause is substantive.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Output schema exists, so return shape need not be explained, and the description fills the remaining gaps: masking, empty-result condition, determinism, and the pricing step. It stops short of stating error behavior or whether the referenced count must be current, which keeps it from a 5.

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 75% and the schema already documents limit (1–25, default 10), shuffle and the audience/count_id exclusivity. The prose restates the 25 cap and 10 default and implies determinism when shuffle is off, adding little syntax or meaning beyond the structured fields, 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 concrete verb and resource ('Returns up to 25 masked sample rows'), names the two sources it samples from (an audience or a count id), and describes the row payload (verification badges, match reason, provenance card). An agent can tell this apart from count_audience and fetch_order_records without opening a schema.

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

Usage Guidelines5/5

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

Gives explicit sequencing ('Use it after count_audience ... before quoting') and names the follow-on alternative ('Call quote_order next to price the records'). It is clear when this tool is the right step and which sibling comes next, which is the full burden for a sampling tool.

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