Skip to main content
Glama

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
NameRequiredDescriptionDefault
impactYesFilter KSI items by impact level
limitNo
offsetNo

Implementation Reference

  • 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), }; },
  • 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), });
  • The tool is registered in the array passed to registerToolDefs in the registerTools function.
    filterByImpactTool,
  • Import of the filterByImpactTool definition.
    import { filterByImpactTool } from "./filter_by_impact.js";

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/ethanolivertroy/fedramp-docs-mcp'

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