Skip to main content
Glama

List related items

list_related
Read-onlyIdempotent

What 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

NameRequiredDescriptionDefault
entityIdNoEntity 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)
issueKeyNoIssue key instead of a UUID, e.g. C4SPACE-T-8
repoNameNoRepository name for COMMIT, together with projectKey (list_repositories)
commitShaNoFor COMMIT: commitSha (7-40 hex) with projectKey and repoName; a bare sha found in several repositories returns 409 with the candidates
entityTypeYesEntity type
projectKeyNoProject 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
tokenBudgetNodefault 8000, maximum 40000
reviewNumberNoNumeric MR number (needed together with projectKey)
organizationIdNoOrganization UUID: narrow the results to it. Omitted means searching across all your organizations; someone else's organization is indistinguishable from a nonexistent one (404)
continuationCursorNoCursor from the truncation line of the previous response (together with the same parameters)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnly, idempotent and non-destructive, so the safety profile is covered. The description adds genuinely non-obvious behavior: links exist only between issues, reviews and code, a COMMIT resolves to its issues and reviews, and an empty answer for chat/document/transcript does NOT mean nothing exists. That last point is the kind of context annotations cannot provide, though return formatting and truncation behavior are left to the schema.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core output contract, then alternatives — the ordering is right and nothing is padded. The nested parentheticals and long comma-chained sentence make it denser than it needs to be, but every clause carries information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 10-parameter tool with no output schema, the description compensates well by describing exactly what is returned (headers and links, no text) and by explaining the empty-result semantics per entity type. An agent has enough to decide whether to call it and how to interpret the response.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents all ten parameters, including the entityId/issueKey/commitSha alternatives and the tokenBudget default of 8000. The description adds no parameter-level detail beyond the vague "cheapest in tokens" framing, so the baseline of 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb+resource ("What is related to an entity") and defines scope precisely: "ONLY headers and links, without text." It also distinguishes itself from siblings by naming get_entity_context and get_thread as follow-ups, so an agent can tell it apart without opening a schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly frames this as the first step ("cheapest overview in tokens: look at the list, choose what you need and only then pull...") and routes the agent elsewhere when it would be useless — for CHAT, DOCUMENT and CALL_TRANSCRIPT content it points to get_entity_context or read_call_transcript. Both when-to-use and when-not-to-use are covered.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.