Fetch Related Entities
fetch_relatedGet related entities for a list of known entities. Use when you HAVE specific entities and want their connected entities.
Examples: "What drugs does Pfizer have?", "What targets does pembrolizumab hit?", "Which companies are developing ADCs?", "Which companies/mechanisms/indications are linked to adagrasib?", "What indications/targets does NCT12345678 cover?"
Accepts up to 25 input entities. Results are grouped by input entity. Unresolved entities are reported separately in the unresolved array. In a mixed batch, inputs whose type cannot traverse to related_type are skipped and reported in a top-level errors array while the valid inputs are still processed; the call only errors outright when no input can traverse.
Supports modality as an input type for modality-based queries (e.g., ADC -> companies). This is an input-only type and cannot be used as related_type.
For DISCOVERING entities by criteria or attributes, use search_entities instead.
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": {
"entities": "<entities>",
"related_type": "<related_type>"
},
"name": "fetch_related"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number (1-indexed). | |
| fields | No | Optional list of field names to include on each related record. Must be display columns of `related_type`; an unknown name returns an error listing the valid ones. Defaults to the standard display columns if omitted. | |
| entities | Yes | List of entities to find relations for. Each dict has 'name' (str) and 'type' (company|drug|trial|mechanism|target|indication|modality). Max 25 entities. | |
| page_size | No | Results per entity per page (max 25). | |
| related_type | Yes | Type of related entity to retrieve. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||