find_related_cis
Retrieve configuration items (CIs) related to a specified CI by relationship type, with direction filters and pagination.
Instructions
Find CIs related to a given CI by a specific relationship type.
Filters relationships to only those matching the specified type. The rel_type can be a sys_id or a relationship type name (e.g., "Runs on::Runs"). If a name is provided, it is resolved to a sys_id first.
Args: ci_sys_id: The sys_id of the CI to find related CIs for. rel_type: Relationship type — either a sys_id or a name like "Runs on::Runs". direction: "upstream", "downstream", or "both". Defaults to "both". limit: Maximum results to return (1-1000, default 25). offset: Pagination offset.
Returns: JSON object with "ci_sys_id", "rel_type", "direction", "count", and "relationships" list.
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": {
"ci_sys_id": "<ci_sys_id>",
"rel_type": "<rel_type>"
},
"name": "find_related_cis"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ci_sys_id | Yes | ||
| rel_type | Yes | ||
| direction | No | both | |
| limit | No | ||
| offset | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |