Skip to main content
Glama

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
NameRequiredDescriptionDefault
idYes

Implementation Reference

  • 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 }; },
  • Zod input schema for the tool, requiring a string 'id' parameter.
    const schema = z.object({ id: z.string(), });
  • 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 }; }, };
  • Global registration: inclusion of getKsiTool in the array passed to registerToolDefs(server) for MCP server.
    getKsiTool,
  • 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; }

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