Skip to main content
Glama

get_item_references

Retrieve upstream and downstream traceability references for Codebeamer items to understand requirements derivation and test case relationships.

Instructions

Get upstream and downstream traceability references for a Codebeamer item. Upstream references point to items this one is derived from (e.g. requirements). Downstream references point to items derived from this one (e.g. test cases).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
itemIdYesNumeric item ID

Implementation Reference

  • The handler and registration for 'get_item_references' which fetches item relations via the client and formats them using 'formatReferences'.
    server.registerTool(
      "get_item_references",
      {
        title: "Get Item References",
        description:
          "Get upstream and downstream traceability references for a Codebeamer item. " +
          "Upstream references point to items this one is derived from (e.g. requirements). " +
          "Downstream references point to items derived from this one (e.g. test cases).",
        inputSchema: {
          itemId: z
            .number()
            .int()
            .positive()
            .describe("Numeric item ID"),
        },
      },
      async ({ itemId }) => {
        const page = await client.getItemRelations(itemId);
        return { content: [{ type: "text", text: formatReferences(page) }] };
      },
    );

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/3KniGHtcZ/codebeamer-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server