mark_inbox_item_as_false_positive
Mark an inbox item as a false positive in RAD Security's MCP server by specifying the item ID and providing a reason, ensuring accurate security alerts in Kubernetes and cloud environments.
Instructions
Mark an inbox item as a false positive with a reason
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| inbox_item_id | Yes | ID of the inbox item to mark as false positive | |
| reason | Yes | Reason for marking the item as false positive | |
| value | No | Whether to mark the item as false positive (true) or not (false) |
Implementation Reference
- src/operations/inbox.ts:20-33 (handler)Core handler function that executes the tool logic by sending a PUT request to mark the inbox item as false positive.export async function markInboxItemAsFalsePositive( client: RadSecurityClient, inboxItemId: string, value: boolean = true, reason: string ): Promise<any> { const payload: Record<string, any> = { value, reason }; return client.makeRequest( `/accounts/${client.getAccountId()}/inbox_items/${inboxItemId}/mark_false_positive`, {}, { method: "PUT", body: payload } ); }
- src/operations/inbox.ts:4-8 (schema)Zod schema defining the input parameters for the tool.export const MarkInboxItemAsFalsePositiveSchema = z.object({ inbox_item_id: z.string().describe("ID of the inbox item to mark as false positive"), value: z.boolean().default(true).describe("Whether to mark the item as false positive (true) or not (false)"), reason: z.string().describe("Reason for marking the item as false positive"), });
- src/index.ts:326-330 (registration)Tool registration in the list of available tools, including name, description, and input schema.{ name: "mark_inbox_item_as_false_positive", description: "Mark an inbox item as a false positive with a reason", inputSchema: zodToJsonSchema(inbox.MarkInboxItemAsFalsePositiveSchema), },
- src/index.ts:737-748 (registration)MCP server request handler case that parses arguments and calls the core handler function.case "mark_inbox_item_as_false_positive": { const args = inbox.MarkInboxItemAsFalsePositiveSchema.parse(request.params.arguments); const response = await inbox.markInboxItemAsFalsePositive( client, args.inbox_item_id, args.value, args.reason ); return { content: [{ type: "text", text: JSON.stringify(response, null, 2) }], }; }