List related items
list_relatedWhat is related to an entity: ONLY headers and links, without text. The cheapest overview in tokens: look at the list, choose what you need and only then pull get_entity_context or get_thread. Links exist between issues, reviews and code (a COMMIT leads to the issues and reviews it belongs to); a conversation (CALL_TRANSCRIPT), chat and document have none, so the answer for them is always empty, and that does NOT mean "there is nothing there": for a conversation's content see get_entity_context, for a window of lines read_call_transcript
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": {
"entityType": "<entityType>"
},
"name": "list_related"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entityId | No | Entity UUID (for CHAT, DOCUMENT and CALL_TRANSCRIPT the only way; for a conversation it is sessionId, meetingId does not fit here, it is not a UUID at all; for COMMIT the id from search results) | |
| issueKey | No | Issue key instead of a UUID, e.g. C4SPACE-T-8 | |
| repoName | No | Repository name for COMMIT, together with projectKey (list_repositories) | |
| commitSha | No | For COMMIT: commitSha (7-40 hex) with projectKey and repoName; a bare sha found in several repositories returns 409 with the candidates | |
| entityType | Yes | Entity type | |
| projectKey | No | Project key; required together with reviewNumber, and with repoName for COMMIT. Also accepts org/KEY (e.g. code4space/C4SPACE), as in a new-form web address; org (case-insensitive) must be your organization's slug or a former slug of it, otherwise the call is refused | |
| tokenBudget | No | default 8000, maximum 40000 | |
| reviewNumber | No | Numeric MR number (needed together with projectKey) | |
| organizationId | No | Organization UUID: narrow the results to it. Omitted means searching across all your organizations; someone else's organization is indistinguishable from a nonexistent one (404) | |
| continuationCursor | No | Cursor from the truncation line of the previous response (together with the same parameters) |