Skip to main content
Glama
hackIDLE

FedRAMP Docs MCP Server

by hackIDLE

list_controls

Retrieve flattened control mappings across FedRAMP security control sets to analyze compliance requirements and regulatory relationships.

Instructions

Return flattened control mappings across FRMR sets.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
familyNo
controlNo
sourceNo

Implementation Reference

  • The execute handler function for the 'list_controls' tool, which invokes listControlMappings with the input parameters and returns the mappings.
    execute: async (input) => {
      const mappings = listControlMappings({
        family: input.family,
        control: input.control,
        source: input.source,
      });
      return { mappings };
    },
  • Zod schema defining the input parameters for the list_controls tool: optional family, control, and source enum.
    const schema = z.object({
      family: z.string().optional(),
      control: z.string().optional(),
      source: z
        .enum([
          "KSI", "MAS", "VDR", "SCN", "FRD", "ADS",
          "CCM", "FSI", "ICP", "PVA", "RSC", "UCM",
          "unknown",
        ])
        .optional(),
    });
  • Registration of all tools including listControlsTool in the registerTools function, which is called by the MCP server.
    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,
      ]);
  • Core helper function that filters and returns control mappings based on family, control, and source options.
    export function listControlMappings(
      options: ListControlOptions,
    ): ControlMapping[] {
      return getControlMappings().filter((mapping) => {
        if (options.source && mapping.source !== options.source) {
          return false;
        }
        if (options.family) {
          const family = mapping.control.split("-")[0];
          if (!family.startsWith(options.family.toUpperCase())) {
            return false;
          }
        }
        if (options.control) {
          const expected = options.control.toUpperCase();
          const controlId = mapping.control.toUpperCase();
          if (
            !(
              controlId === expected ||
              controlId.startsWith(`${expected}-`) ||
              expected.startsWith(controlId)
            )
          ) {
            return false;
          }
        }
        return true;
      });
    }
Behavior2/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 of behavioral disclosure. It mentions 'return' which implies a read operation, but doesn't specify whether this is a query, search, or list operation, nor does it describe output format, pagination, rate limits, or authentication requirements. For a tool with no annotations, this leaves significant behavioral gaps.

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

Conciseness4/5

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

The description is a single, efficient sentence that gets straight to the point without unnecessary words. It's appropriately sized for what it communicates, though what it communicates is limited. The structure is clear but could benefit from more detail given the tool's apparent complexity.

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

Completeness2/5

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

Given 3 parameters with 0% schema coverage, no annotations, no output schema, and multiple sibling tools in the same domain, the description is insufficiently complete. It doesn't explain what 'FRMR sets' are, what 'flattened control mappings' look like, or how the parameters filter results. For a tool that appears to query a specialized compliance/control system, more context is needed.

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

Parameters2/5

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

With 0% schema description coverage and 3 parameters (family, control, source), the description provides no information about what these parameters mean or how they affect the query. The schema shows 'source' has an enum with 13 values, but the description doesn't explain what these sources represent or how they relate to 'FRMR sets'. The description fails to compensate for the complete lack of schema documentation.

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

Purpose3/5

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

The description states the action ('Return') and target ('flattened control mappings across FRMR sets'), which gives a general purpose. However, it's somewhat vague about what 'flattened control mappings' means in practice and doesn't clearly distinguish this tool from siblings like 'get_control_requirements' or 'search_definitions' that might also retrieve control-related information.

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

Usage Guidelines2/5

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

No guidance is provided on when to use this tool versus alternatives. With many sibling tools like 'get_control_requirements', 'search_definitions', and 'list_ksi', there's no indication of how this tool differs in context or when it's the appropriate choice. The description lacks any 'when-to-use' or 'when-not-to-use' information.

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

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