# Foundry GLEIF Record Baseline Change Detector

> Foundry GLEIF Record Baseline Change Detector is a paid API for AI agents from foundry-par007-machine-revenue-mainnet.inference-chip-index.workers.dev, paid per call via x402, $0.006/call, status unknown (last checked 2026-09-14).

Compares a caller-supplied baseline snapshot of GLEIF LEI record fields against the current live GLEIF data and reports which fields match, mismatch, or are unknown.

## Facts

- Endpoint: POST https://foundry-par007-machine-revenue-mainnet.inference-chip-index.workers.dev/v2/official/gleif-record-baseline-change
- Price: $0.006/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/foundry-gleif-record-baseline-change-detector-3e04750b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_cLu0SnGzLrh2262XuNN_F

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability foundry-gleif-record-baseline-change-detector-3e04750b -d '<json body>'
```

Example prompt: Check whether the GLEIF record for LEI 5493001KJTIIGC8Y1R12 still shows registrationStatus as ISSUED and legalName as 'Acme Holdings GmbH' — flag any fields that have changed or are unknown.

## When to prefer this

Use this endpoint when you need to detect drift between a previously recorded GLEIF LEI snapshot and the current live GLEIF data — ideal for compliance workflows, KYC/KYB refresh, pre-trade checks, and audit trails. Prefer this over the simple LEI lookup endpoint when you already have a baseline and need a structured diff rather than just the raw current record. Not suitable for medical, safety, ownership guarantees, or high-frequency monitoring.

## Known failure modes

- Invalid LEI format (must match ^[A-Z0-9]{18}\d{2}$) returns a validation error
- LEI not found in GLEIF registry returns null current values and UNKNOWN status for all fields
- baseline_fields array empty or exceeds 6 items causes schema rejection
- Field values longer than 200 characters are rejected
- GLEIF upstream API unavailable causes retrieval failure
- Stale cache may return data up to 60 seconds old

## How this service works

Pay-per-request evidence and data tools: CSV validation and reconciliation, DNS/email configuration evidence, and bounded official weather, earthquake, vehicle, company and study records. Exact USDC prices, explicit JSON contracts and source provenance. No mailbox, ownership, medical or safety guarantees.

## Output

A JSON object containing per-field comparison results (status: MATCHED, MISMATCHED, or UNKNOWN), the current normalised GLEIF record values, source provenance (GLEIF LEI reference data, CC0 1.0 license), freshness metadata including retrieval timestamp and cache age, and lists of mismatched and unknown fields.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "lei": {
   "type": "string",
   "pattern": "^[A-Z0-9]{18}\\d{2}$"
  },
  "baseline_fields": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "field",
     "value"
    ],
    "properties": {
     "field": {
      "enum": [
       "legalName",
       "jurisdiction",
       "entityStatus",
       "registrationStatus",
       "lastUpdated",
       "nextRenewal"
      ],
      "type": "string"
     },
     "value": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 200,
        "minLength": 1
       },
       {
        "type": "null"
       }
      ]
     }
    },
    "additionalProperties": false
   },
   "maxItems": 6,
   "minItems": 1
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "route": "gleif-record-baseline-change",
  "result": {
   "lei": "5493001KJTIIGC8Y1R12",
   "evidence": {
    "query": {
     "lei": "5493001KJTIIGC8Y1R12"
    },
    "source": "GLEIF LEI reference data",
    "freshness": {
     "state": "CURRENT_RETRIEVAL",
     "retrievedAt": "2026-09-06T00:00:00Z",
     "cacheAgeSeconds": 0,
     "maximumCacheSeconds": 60,
     "recordAgeIsNotRetrievalAge": true
    },
    "sourceUrl": "https://api.gleif.org",
    "observedAt": "2026-09-06T00:00:00Z",
    "provenance": {
     "license": "CC0 1.0 LEI/LE-RD",
     "termsUrl": "https://www.gleif.org/en/meta/lei-data-terms-of-use",
     "truncated": false,
     "attribution": "GLEIF LEI reference data; no endorsement",
     "limitations": [
      "Synthetic example only; identifiers and null values illustrate fields, not a live observation."
     ],
     "modifications": "Selected factual fields, normalized names and bounded result count; no source ownership claimed.",
     "upstreamCalls": 1,
     "documentationUrl": "https://www.gleif.org/en/lei-data/gleif-api"
    },
    "sourceUpdatedAt": null,
    "normalizedResult": [
     {
      "lei": "5493001KJTIIGC8Y1R12",
      "legalName": null,
      "sourceUrl": null,
      "lastUpdated": null,
      "nextRenewal": null,
      "entityStatus": null,
      "jurisdiction": null,
      "registrationStatus": null
     }
    ],
    "sourceProcessedAt": null,
    "rawSourceIdentifiers": []
   },
   "comparisons": [
    {
     "field": "registrationStatus",
     "status": "UNKNOWN",
     "current": null,
     "baseline": "ISSUED",
     "normalization": "NFKC_CASE_WHITESPACE"
    }
   ],
   "limitations": [
    "Synthetic comparison only. The caller baseline is not authenticated historical evidence."
   ],
   "observed_at": "2026-09-06T00:00:00Z",
   "unknown_fields": [
    "registrationStatus"
   ],
   "mismatched_fields": []
  },
  "observed_at": "2026-09-06T00:00:00Z"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/foundry-gleif-record-baseline-change-detector-3e04750b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from foundry-par007-machine-revenue-mainnet.inference-chip-index.workers.dev](https://www.zero.xyz/host/foundry-par007-machine-revenue-mainnet.inference-chip-index.workers.dev/llms.txt)
