search
Query multiple FHIR resources by resource type and parameters, returning matching bundles or lists; optionally filter response fields to only the data needed.
Instructions
Executes a standard FHIR search interaction on a given resource type, returning a bundle or list of matching resources. Use this when you need to query for multiple resources based on one or more search-parameters. Do not use this tool for create, update, or delete operations, and be aware that large result sets may be paginated by the FHIR server. Optionally specify fields to filter the response to only the data your task needs (e.g., Patient.birthDate, Observation.valueQuantity).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"type": "<type>",
"searchParam": "<searchParam>"
},
"name": "search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | The FHIR resource type name. Must exactly match one of the resource types supported by the server | |
| searchParam | Yes | A mapping of FHIR search parameter names to their values. Only include parameters supported for the resource type, as listed by `get_capabilities`. | |
| response_filter_fhirpaths | No | Specify FHIRPath expressions to filter the response to only the data you need. Omitting returns the full resource. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | A dictionary containing the full FHIR resource instance matching the search criteria. |