get_capabilities
Retrieves metadata for a specified FHIR resource type, including supported search parameters and custom operations, so you can validate allowed actions before search, read, create, update, or delete.
Instructions
Retrieves metadata about a specified FHIR resource type, including its supported search parameters and custom operations. This tool MUST always be invoked before performing any resource operation (such as search, read, create, update, or delete) to discover the valid searchParams and operations permitted for that resource type. Do not use this tool to fetch actual resources.
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>"
},
"name": "get_capabilities"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | The FHIR resource type name. Must exactly match one of the core or profile-defined resource types as per the FHIR specification. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | A dictionary containing: 'type': The requested resource type (if supported by the system) or empty. 'searchParam': A mapping of FHIR search parameter names to their descriptions. Each key is a parameter name (e.g., family, _id, _lastUpdated), and each value is a string describing the parameter's meaning and usage constraints. 'operation': A mapping of custom FHIR operation names to their descriptions. Each key is an operation name (e.g., $validate), and each value is a string explaining the operation's purpose and usage. 'interaction': A list of supported interactions for the resource type (e.g., read, search-type, create). 'searchInclude': A list of supported _include parameters for the resource type, indicating which related resources can be included. 'searchRevInclude': A list of supported _revinclude parameters for the resource type, indicating which reverse-included resources can be included. |