get_ksi
Retrieve a specific KSI entry by its ID from FedRAMP documentation to access compliance requirements and security controls.
Instructions
Retrieve a single KSI entry by id.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes |
Implementation Reference
- src/tools/get_ksi.ts:17-20 (handler)The execute handler function for the get_ksi tool. It takes an input with 'id' and calls the helper getKsiItem to retrieve and return the KSI item.execute: async (input) => { const item = getKsiItem(input.id); return { item }; },
- src/tools/get_ksi.ts:6-8 (schema)Zod input schema for the tool, requiring a string 'id' parameter.const schema = z.object({ id: z.string(), });
- src/tools/get_ksi.ts:10-21 (registration)Local tool definition and export of getKsiTool with name 'get_ksi', description, schema, and execute handler.export const getKsiTool: ToolDefinition< typeof schema, { item: ReturnType<typeof getKsiItem> } > = { name: "get_ksi", description: "Retrieve a single KSI entry by id.", schema, execute: async (input) => { const item = getKsiItem(input.id); return { item }; }, };
- src/tools/register.ts:32-32 (registration)Global registration: inclusion of getKsiTool in the array passed to registerToolDefs(server) for MCP server.getKsiTool,
- src/frmr.ts:108-117 (helper)Helper function getKsiItem(id) that retrieves a single KSI item from the cached list via getKsiItems() or throws NOT_FOUND.export function getKsiItem(id: string): KsiItem { const match = getKsiItems().find((item) => item.id === id); if (!match) { throw createError({ code: "NOT_FOUND", message: `KSI item not found for id ${id}`, }); } return match; }