filter_by_impact
Filter Key Security Indicators by impact level (low, moderate, or high) to identify applicable security requirements for FedRAMP compliance analysis.
Instructions
Filter Key Security Indicators (KSI) by impact level. Returns all KSI items that apply to the specified impact level (low, moderate, or high).
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| impact | Yes | Filter KSI items by impact level | |
| limit | No | ||
| offset | No |
Implementation Reference
- src/tools/filter_by_impact.ts:23-34 (handler)The main handler function that fetches all KSI items, filters them by the specified impact level, and applies pagination using limit and offset.execute: async (input) => { const all = getKsiItems(); const filtered = all.filter((item) => { if (!item.impact) return false; return item.impact[input.impact] === true; }); return { total: filtered.length, items: filtered.slice(input.offset, input.offset + input.limit), }; },
- src/tools/filter_by_impact.ts:7-13 (schema)Zod schema defining the input parameters: impact (enum: low/moderate/high), limit (1-200, default 100), offset (default 0).const schema = z.object({ impact: z .enum(["low", "moderate", "high"]) .describe("Filter KSI items by impact level"), limit: z.number().int().min(1).max(200).default(100), offset: z.number().int().min(0).default(0), });
- src/tools/register.ts:33-33 (registration)The tool is registered in the array passed to registerToolDefs in the registerTools function.filterByImpactTool,
- src/tools/register.ts:5-5 (registration)Import of the filterByImpactTool definition.import { filterByImpactTool } from "./filter_by_impact.js";