# Foundry LEI Counterparty Consistency Check

> Foundry LEI Counterparty Consistency Check is a paid API for AI agents from foundry-par007-machine-revenue-mainnet.inference-chip-index.workers.dev, paid per call via x402, $0.012/call, status unknown (last checked 2026-09-13).

Validates whether a given LEI (Legal Entity Identifier) matches an expected legal name using GLEIF reference data, returning name comparison results and registration evidence.

## Facts

- Endpoint: POST https://foundry-par007-machine-revenue-mainnet.inference-chip-index.workers.dev/v2/official/lei-counterparty-consistency
- Price: $0.012/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/foundry-lei-counterparty-consistency-check-fc3770b5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_KUpS4YdArJlvjKV5AEf3F

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-lei-counterparty-consistency-check-fc3770b5 -d '<json body>'
```

Example prompt: Can you check whether the LEI '5493001KJTIIGC8Y1R12' actually belongs to 'Bloomberg Finance L.P.' — I need to confirm this counterparty identity before we proceed with the transaction.

## When to prefer this

Choose this endpoint when you need authoritative, sourced evidence that a counterparty's LEI matches their stated legal name, with full GLEIF provenance and freshness metadata. Ideal for compliance, KYC, pre-trade verification, or audit workflows where you need a verifiable paper trail. Prefer this over general company lookup tools when the LEI is known and name consistency is the specific question. Supports up to 3 entities per call, making it suitable for small-batch counterparty checks.

## Known failure modes

- LEI not found in GLEIF registry — returns null fields with UNKNOWN comparison
- LEI format does not match 20-character alphanumeric pattern — input schema validation error
- GLEIF API upstream unavailable — may return stale cached data or error
- Expected legal name too long (over 200 characters) — schema rejection
- Batch exceeds 3 entities — request rejected by schema validation
- Mismatched casing or punctuation in legal name may yield MISMATCH even if conceptually correct
- Payment not processed (x402) — endpoint returns 402 before data is returned

## 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

Returns a per-entity result array containing: the name_comparison field (e.g. MATCH, MISMATCH, UNKNOWN), the current_legal_name from GLEIF, the expected_legal_name supplied by the caller, registration_status, entity_status, jurisdiction, source URL, freshness metadata, and GLEIF provenance details including license and attribution. Also returns a top-level observedAt timestamp.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "entities": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "lei",
     "expected_legal_name"
    ],
    "properties": {
     "lei": {
      "type": "string",
      "pattern": "^[A-Z0-9]{20}$"
     },
     "expected_legal_name": {
      "type": "string",
      "maxLength": 200,
      "minLength": 1
     }
    },
    "additionalProperties": false
   },
   "maxItems": 3,
   "minItems": 1
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "route": "lei-counterparty-consistency",
  "result": {
   "entities": [
    {
     "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": []
     },
     "name_comparison": "UNKNOWN",
     "current_legal_name": null,
     "expected_legal_name": "Bloomberg Finance L.P.",
     "registration_status": null
    }
   ],
   "observedAt": "2026-09-06T00:00:00Z",
   "limitations": [
    "Synthetic example only; missing source name is UNKNOWN."
   ]
  },
  "observed_at": "2026-09-06T00:00:00Z"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/foundry-lei-counterparty-consistency-check-fc3770b5/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)
