Skip to main content
Glama
ethanolivertroy

FedRAMP Docs MCP Server

get_theme_summary

Retrieve detailed security theme guidance including indicators, impact analysis, NIST controls, and documentation links for FedRAMP compliance.

Instructions

Get comprehensive guidance for a KSI theme. Returns all indicators in the theme, impact breakdown, related NIST controls, and links to relevant documentation.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
themeYesKSI theme code

Implementation Reference

  • The core handler for the 'get_theme_summary' tool. It defines the tool including name, description, schema, and the execute function which filters KSI items by theme, calculates impact breakdown, gathers related controls, and finds related documentation via search.
    export const getThemeSummaryTool: ToolDefinition<typeof schema, ThemeSummary> =
      {
        name: "get_theme_summary",
        description:
          "Get comprehensive guidance for a KSI theme. Returns all indicators in the theme, impact breakdown, related NIST controls, and links to relevant documentation.",
        schema,
        execute: async (input) => {
          const all = getKsiItems();
          const indicators = all.filter(
            (item) => item.category?.toUpperCase() === input.theme,
          );
    
          // Count impact levels
          const impactBreakdown = { low: 0, moderate: 0, high: 0 };
          for (const item of indicators) {
            if (item.impact?.low) impactBreakdown.low++;
            if (item.impact?.moderate) impactBreakdown.moderate++;
            if (item.impact?.high) impactBreakdown.high++;
          }
    
          // Collect related controls
          const controlSet = new Set<string>();
          for (const item of indicators) {
            if (item.controlMapping) {
              for (const control of item.controlMapping) {
                controlSet.add(control);
              }
            }
          }
    
          // Search markdown for related guidance
          const themeName = THEME_NAMES[input.theme] ?? input.theme;
          const searchTerms = [themeName, input.theme];
          const relatedDocs: Array<{ path: string; snippet: string }> = [];
    
          for (const term of searchTerms) {
            try {
              const results = searchMarkdown(term, 5, 0);
              for (const hit of results.hits) {
                if (!relatedDocs.some((d) => d.path === hit.path)) {
                  relatedDocs.push({ path: hit.path, snippet: hit.snippet });
                }
              }
            } catch {
              // Search might fail for some terms, continue
            }
          }
    
          return {
            theme: input.theme,
            themeName,
            indicatorCount: indicators.length,
            indicators,
            impactBreakdown,
            relatedControls: [...controlSet].sort(),
            relatedDocs: relatedDocs.slice(0, 5),
          };
        },
      };
  • Input schema using Zod, validating the 'theme' parameter as one of the predefined KSI theme codes.
    const schema = z.object({
      theme: z
        .enum(["AFR", "CED", "CMT", "CNA", "IAM", "INR", "MLA", "PIY", "RPL", "SVC", "TPR"])
        .describe("KSI theme code"),
    });
  • Registration of all tools including getThemeSummaryTool in the registerToolDefs call within the registerTools function.
    export function registerTools(server: McpServer): void {
      registerToolDefs(server, [
        // Document discovery
        listFrmrDocumentsTool,
        getFrmrDocumentTool,
        listVersionsTool,
        // KSI tools
        listKsiTool,
        getKsiTool,
        filterByImpactTool,
        getThemeSummaryTool,
        getEvidenceExamplesTool,
        // Control mapping tools
        listControlsTool,
        getControlRequirementsTool,
        analyzeControlCoverageTool,
        // Search & lookup tools
        searchMarkdownTool,
        readMarkdownTool,
        searchDefinitionsTool,
        getRequirementByIdTool,
        // Analysis tools
        diffFrmrTool,
        grepControlsTool,
        significantChangeTool,
        // System tools
        healthCheckTool,
        updateRepositoryTool,
      ]);
    }
  • Helper constant providing human-readable names for KSI theme codes, used in the handler for descriptions and search terms.
    const THEME_NAMES: Record<string, string> = {
      AFR: "Authorization & FedRAMP Requirements",
      CED: "Customer Environment & Data",
      CMT: "Change Management & Testing",
      CNA: "Cloud Native Architecture",
      IAM: "Identity & Access Management",
      INR: "Incident Response",
      MLA: "Monitoring, Logging & Alerting",
      PIY: "Privacy & PII",
      RPL: "Resiliency & Planning",
      SVC: "Service Configuration",
      TPR: "Third Party Risk",
    };
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden. It discloses the tool's behavior by describing the return content (indicators, impact breakdown, etc.), which is helpful. However, it lacks details on potential limitations (e.g., data freshness, access permissions, error handling) or operational traits (e.g., response format, pagination). The description is informative but not comprehensive for behavioral transparency.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, well-structured sentence that front-loads the core action ('Get comprehensive guidance') and efficiently lists the return components. Every part earns its place by clarifying scope and output, with no redundant or vague language. It's appropriately sized for a tool with one parameter and clear functionality.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's low complexity (one parameter, no output schema, no annotations), the description is largely complete. It explains the purpose, input context, and return content, which suffices for basic use. However, without an output schema, it could benefit from more detail on the return structure (e.g., format of 'impact breakdown'), but the provided information is adequate for the tool's scope.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, with the parameter 'theme' well-documented as a KSI theme code with an enum. The description adds value by contextualizing the parameter as the input for retrieving comprehensive guidance, implying it's the primary selector for the summary. Since there's only one parameter and the schema covers it fully, the description compensates adequately without needing to detail syntax or format.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the verb ('Get') and resource ('comprehensive guidance for a KSI theme'), specifying what the tool does. It distinguishes from siblings by focusing on theme-level summary rather than control-level analysis (e.g., get_control_requirements) or listing functions (e.g., list_ksi). The mention of specific return content (indicators, impact breakdown, NIST controls, documentation links) further clarifies its unique purpose.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage when needing comprehensive theme guidance, but does not explicitly state when to use this tool versus alternatives like get_ksi (which might provide different KSI data) or get_control_requirements (which focuses on controls rather than themes). No exclusions or prerequisites are mentioned, leaving usage context somewhat open to interpretation.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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