---
name: "xpay-clinical-trials-get-field-statistics"
description: "Get statistical information about field values.

This tool retrieves statistical information about the values of specified fields in the ClinicalTrials.gov database.

Input:
  - `field_names`: A list of field names to get statistics for.
  - `field_types`: A list of field types to filter by.
                   Example: `['ENUM', 'STRING']`"
version: "1.0.0"
price: "$0.01/call"
provider: "Clinical Trials"
---

# Get Field Statistics

Get statistical information about field values.

This tool retrieves statistical information about the values of specified fields in the ClinicalTrials.gov database.

Input:
  - `field_names`: A list of field names to get statistics for.
  - `field_types`: A list of field types to filter by.
                   Example: `['ENUM', 'STRING']`

**Provider:** Clinical Trials
**Price:** $0.01/call
**Pricing model:** Flat rate per call

## When to Use

Use this tool when you need to get statistical information about field values.

this tool retrieves statistical information about the values of specified fields in the clinicaltrials.gov database.

input:
  - `field_names`: a list of field names to get statistics for.
  - `field_types`: a list of field types to filter by.
                   example: `['enum', 'string']`. This is part of the Clinical Trials provider on xpay✦.

## MCP Connection

Connect to xpay✦ to access this tool (and 11+ others):

```json
{
  "mcpServers": {
    "xpay": {
      "url": "https://mcp.xpay.sh/mcp?key=YOUR_API_KEY"
    }
  }
}
```

For Claude Code:
```bash
claude mcp add --transport http xpay "https://mcp.xpay.sh/mcp?key=YOUR_API_KEY"
```

## How to Execute

Use the xpay✦ meta-tools to run this tool:

1. **`xpay_details`** — Get full input schema: `xpay_details("clinical-trials/get_field_statistics")`
2. **`xpay_run`** — Execute: `xpay_run("clinical-trials/get_field_statistics", { ...inputs })`

## Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `field_types` | string | No | Field types to filter by (ENUM, STRING, DATE, INTEGER, NUMBER, BOOLEAN) |
| `field_names` | string | No | Field names to get statistics for |

## Pricing

- **Cost:** $0.01/call
- **Balance check:** Use `xpay_balance` to check remaining credits
- Get your API key at [xpay.tools](https://xpay.tools/account/settings/api-keys/) — $5 free credits included

## Related Skills

- [Clinical Trials (all tools)](https://xpay.tools/skills/clinical-trials/SKILL.md) — 12 tools
- [Search Trials By Condition](https://xpay.tools/skills/clinical-trials/search-trials-by-condition/SKILL.md) — $0.01/call
- [Search Trials By Intervention](https://xpay.tools/skills/clinical-trials/search-trials-by-intervention/SKILL.md) — $0.01/call
- [Search Trials By Sponsor](https://xpay.tools/skills/clinical-trials/search-trials-by-sponsor/SKILL.md) — $0.01/call
- [Search Trials By Acronym](https://xpay.tools/skills/clinical-trials/search-trials-by-acronym/SKILL.md) — $0.01/call
- [Search Trials By Nct Ids](https://xpay.tools/skills/clinical-trials/search-trials-by-nct-ids/SKILL.md) — $0.01/call

## Links

- Tool page: https://xpay.tools/clinical-trials/get-field-statistics/
- Provider: https://xpay.tools/clinical-trials/
- All tools: https://xpay.tools/explore
