# fhir-validate-resource

`station__reg-intel__fhir-validate-resource` · external (needs EXECUTION_BACKEND_URL configured) · domain `reg-intel` · pv-relevance `pv-core`

Validate a FHIR resource JSON structure (checks required fields, resourceType).

> **Note:** This tool routes through an external execution backend. If `EXECUTION_BACKEND_URL` is unset on the server, calls return JSON-RPC error `-32603 "Tool execution backend not configured"`. Tools with `backend: native` execute in-process and are always callable.

## Agent metadata

- `idempotent`: unknown
- `read_only`: unknown
- `expected_latency_ms`: unknown (not yet contract-tested)
- `cost_tokens_estimate`: unknown

## Input schema

- `expected_type` *string* — Expected resource type (e.g. "AdverseEvent", "Patient", "Medication").
- `resource_json` *string* (required) — FHIR resource as JSON string.

## Example call

```json
POST /api/mcp
Content-Type: application/json

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "station__reg-intel__fhir-validate-resource",
    "arguments": {
      "resource_json": ""
    }
  }
}
```

## Related

- [/tools](/tools) — all 3062 tools
- [/tools/reg-intel__fhir-validate-resource](/tools/reg-intel__fhir-validate-resource) — HTML page
- [/tools/reg-intel__fhir-validate-resource/json](/tools/reg-intel__fhir-validate-resource/json) — JSON form (agent-friendly)
- [/api/mcp](/api/mcp) — endpoint
- [/AGENTS.md](/AGENTS.md) — agent guide
