get_inbox_item_details
Retrieve detailed information about a specific inbox item by providing its unique ID, enabling precise monitoring and analysis of security findings within RAD Security's Kubernetes and cloud environments.
Instructions
Get detailed information about a specific inbox item
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| inbox_item_id | Yes | ID of the inbox item to get details for |
Implementation Reference
- src/operations/inbox.ts:53-79 (handler)The core handler function that retrieves detailed information for an inbox item, including fetching comments and preparing the response.export async function getInboxItemDetails( client: RadSecurityClient, inboxItemId: string ): Promise<any> { var details = await client.makeRequest( `/accounts/${client.getAccountId()}/data/inbox_items/${inboxItemId}` ); // Remove fields to reduce context window size when used with LLMs data.fields delete details.fields; // fetch all comments for the inbox item const comments_params: Record<string, any> = { "filters_query": `inbox_item_id:"${inboxItemId}"` }; var comments = await client.makeRequest( `/accounts/${client.getAccountId()}/data/inbox_item_comments`, comments_params ); delete comments.fields; // add comments to the details details.comments = comments; return details; }
- src/operations/inbox.ts:16-18 (schema)Zod schema defining the input parameters for the get_inbox_item_details tool.export const GetInboxItemDetailsSchema = z.object({ inbox_item_id: z.string().describe("ID of the inbox item to get details for"), });
- src/index.ts:336-340 (registration)Tool registration in the MCP server's listTools handler, defining the tool's name, description, and input schema.{ name: "get_inbox_item_details", description: "Get detailed information about a specific inbox item", inputSchema: zodToJsonSchema(inbox.GetInboxItemDetailsSchema), },
- src/index.ts:761-770 (registration)Dispatch handler in the MCP server's CallToolRequest handler that validates input and invokes the tool implementation.case "get_inbox_item_details": { const args = inbox.GetInboxItemDetailsSchema.parse(request.params.arguments); const response = await inbox.getInboxItemDetails( client, args.inbox_item_id ); return { content: [{ type: "text", text: JSON.stringify(response, null, 2) }], }; }