# Foundry Clinical Study Date Contract

> Foundry Clinical Study Date Contract is a paid API for AI agents from foundry-par007-machine-revenue-mainnet.inference-chip-index.workers.dev, paid per call via x402, $0.015/call, status unknown (last checked 2026-09-14).

Validates expected clinical trial milestone dates against official ClinicalTrials.gov records and returns match/mismatch evidence per NCT ID and date field.

## Facts

- Endpoint: POST https://foundry-par007-machine-revenue-mainnet.inference-chip-index.workers.dev/v2/official/clinical-study-date-contract
- Price: $0.015/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/foundry-clinical-study-date-contract-46acb876
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_aWWbPvzpHqSiPieKo6XtJ

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-clinical-study-date-contract-46acb876 -d '<json body>'
```

Example prompt: Check whether NCT00110383's completionDate is 2026-09 according to ClinicalTrials.gov — I need to know if the date matches, and if not, what the official record actually says.

## When to prefer this

Choose this endpoint when you need authoritative, evidence-backed comparison of expected clinical trial milestone dates against the live ClinicalTrials.gov registry — especially for compliance audits, regulatory filings, or data reconciliation workflows where source provenance and freshness metadata matter. Prefer this over manual ClinicalTrials.gov lookups when you need structured JSON output with explicit match/mismatch status and bounded factual records rather than free-text scraping.

## Known failure modes

- Invalid NCT ID format (not matching ^NCT\d{8}$) causes validation error
- Unknown or unrecognized NCT ID returns UNKNOWN status for all date comparisons
- ClinicalTrials.gov upstream unavailability may result in null reported values
- More than 3 studies or more than 3 date fields per study exceeds schema limits
- Unsupported date field enum values cause request rejection
- Payment not received causes 402 response before processing

## 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-study array with the NCT ID, each date field comparison (status: MATCH, MISMATCH, or UNKNOWN), the expected date interval (earliest/latest/precision), the reported date from ClinicalTrials.gov, full source provenance including license and attribution, freshness metadata indicating retrieval time, and any applicable limitations.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "studies": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "nct_id",
     "dates"
    ],
    "properties": {
     "dates": {
      "type": "array",
      "items": {
       "type": "object",
       "required": [
        "field",
        "expected"
       ],
       "properties": {
        "field": {
         "enum": [
          "startDate",
          "completionDate",
          "lastUpdatePostDate"
         ],
         "type": "string"
        },
        "expected": {
         "type": "string",
         "maxLength": 10
        }
       },
       "additionalProperties": false
      },
      "maxItems": 3,
      "minItems": 1
     },
     "nct_id": {
      "type": "string",
      "pattern": "^NCT\\d{8}$"
     }
    },
    "additionalProperties": false
   },
   "maxItems": 3,
   "minItems": 1
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "route": "clinical-study-date-contract",
  "result": {
   "studies": [
    {
     "nct_id": "NCT00110383",
     "evidence": {
      "query": {
       "nct_id": "NCT00110383"
      },
      "source": "ClinicalTrials.gov",
      "freshness": {
       "state": "CURRENT_RETRIEVAL",
       "retrievedAt": "2026-09-06T00:00:00Z",
       "cacheAgeSeconds": 0,
       "maximumCacheSeconds": 0,
       "recordAgeIsNotRetrievalAge": true
      },
      "sourceUrl": "https://clinicaltrials.gov",
      "observedAt": "2026-09-06T00:00:00Z",
      "provenance": {
       "license": "ClinicalTrials.gov terms; bounded factual study metadata only",
       "termsUrl": "https://clinicaltrials.gov/about-site/terms-conditions",
       "truncated": false,
       "attribution": "ClinicalTrials.gov, US National Library of Medicine",
       "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://clinicaltrials.gov/data-api/api"
      },
      "sourceUpdatedAt": null,
      "normalizedResult": [
       {
        "nctId": "NCT00110383",
        "title": null,
        "phases": [],
        "sourceUrl": "https://clinicaltrials.gov/study/NCT00110383",
        "startDate": null,
        "studyType": null,
        "overallStatus": null,
        "completionDate": null,
        "lastUpdatePostDate": null
       }
      ],
      "sourceProcessedAt": null,
      "rawSourceIdentifiers": []
     },
     "comparisons": [
      {
       "field": "completionDate",
       "status": "UNKNOWN",
       "expected": "2026-09",
       "reported": null,
       "expected_interval": {
        "latest": "2026-09-30",
        "earliest": "2026-09-01",
        "precision": "MONTH"
       },
       "reported_interval": null
      }
     ]
    }
   ],
   "limitations": [
    "Synthetic date comparison only. Actual versus estimated milestone status is not provided."
   ],
   "observed_at": "2026-09-06T00:00:00Z"
  },
  "observed_at": "2026-09-06T00:00:00Z"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/foundry-clinical-study-date-contract-46acb876/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)
