update_security_finding_status
Modify the status of a security finding in RAD Security by specifying its ID and updating it to 'open', 'closed', or 'ignored' for effective security management.
Instructions
Update the status of a security finding
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Finding ID to update | |
| status | Yes | New status for the finding |
Implementation Reference
- src/operations/findings.ts:96-110 (handler)The main handler function that executes the tool logic: updates the status of a security finding group by sending a PUT request to the RAD Security API endpoint.export async function updateFindingGroupStatus( client: RadSecurityClient, id: string, status: string ): Promise<void> { const data = { status }; await client.makeRequest( `/accounts/${client.getAccountId()}/unified_findings/groups/${id}/status`, {}, { method: "PUT", body: data, } ); }
- src/operations/findings.ts:24-27 (schema)Zod schema for input validation of the tool, defining id and status parameters.export const updateFindingStatusSchema = z.object({ id: z.string().describe("Finding ID to update"), status: z.enum(statuses).describe("New status for the finding"), });
- src/index.ts:288-292 (registration)Tool registration in the list of available tools, including name, description, and input schema.{ name: "update_security_finding_status", description: "Update the status of a security finding", inputSchema: zodToJsonSchema(findings.updateFindingStatusSchema), },
- src/index.ts:693-699 (handler)Dispatch handler in the main switch statement that parses arguments, calls the core handler, and formats the response.case "update_security_finding_status": { const args = findings.updateFindingStatusSchema.parse(request.params.arguments); await findings.updateFindingGroupStatus(client, args.id, args.status); return { content: [{ type: "text", text: JSON.stringify({ success: true, message: `Finding ${args.id} status updated to ${args.status}` }, null, 2) }], }; }
- src/operations/findings.ts:5-5 (helper)Helper constant defining valid status values used in the schema.export const statuses = ["open", "closed", "ignored"] as const;