Skip to main content
Glama

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
NameRequiredDescriptionDefault
idYesFinding ID to update
statusYesNew status for the finding

Implementation Reference

  • 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, } ); }
  • 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), },
  • 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) }], }; }
  • Helper constant defining valid status values used in the schema.
    export const statuses = ["open", "closed", "ignored"] as const;

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/rad-security/mcp-server'

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