Skip to main content
Glama
rad-security

RAD Security

Official
by rad-security

get_compliance_control

Retrieve detailed information about specific compliance controls for cloud and Kubernetes environments using datasource IDs to verify security requirements.

Instructions

Get detailed information about a specific compliance control

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
control_nameYesName of the compliance control
datasource_idsYesComma-separated datasource IDs (e.g. AWS Account IDs)

Implementation Reference

  • The main handler function that implements the core logic for the 'get_compliance_control' tool by calling the RAD Security API to fetch details for a specific compliance control.
    export async function getComplianceControl(
      client: RadSecurityClient,
      controlName: string,
      datasourceIds: string
    ): Promise<any> {
      const params: Record<string, any> = { datasource_ids: datasourceIds };
      return client.makeRequest(
        `/accounts/${client.getAccountId()}/compliance/cloud/controls/${encodeURIComponent(controlName)}`,
        params
      );
    }
  • Zod schema defining the input parameters for the 'get_compliance_control' tool: control_name and datasource_ids.
    // Schema for get_compliance_control
    export const GetComplianceControlSchema = z.object({
      control_name: z.string().describe("Name of the compliance control"),
      datasource_ids: z.string().describe("Comma-separated datasource IDs (e.g. AWS Account IDs)"),
    });
  • src/index.ts:263-269 (registration)
    Tool registration in the MCP server's ListTools handler, defining the tool name, description, and input schema for get_compliance_control.
      name: "get_compliance_control",
      description:
        "Get detailed information about a specific compliance control",
      inputSchema: zodToJsonSchema(
        cloudCompliance.GetComplianceControlSchema
      ),
    },
  • src/index.ts:970-983 (registration)
    Tool invocation handler in the MCP server's CallTool request handler, which parses arguments using the schema and calls the getComplianceControl function.
    case "get_compliance_control": {
      const args = cloudCompliance.GetComplianceControlSchema.parse(
        request.params.arguments
      );
      const response = await cloudCompliance.getComplianceControl(
        client,
        args.control_name,
        args.datasource_ids
      );
      return {
        content: [
          { type: "text", text: JSON.stringify(response, null, 2) },
        ],
      };
Behavior2/5

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

With no annotations provided, the description carries full burden but reveals minimal behavior. It states it's a read operation ('Get') but doesn't disclose authentication requirements, rate limits, error conditions, response format, or whether it's idempotent. For a tool with required parameters and no output schema, this leaves significant gaps in understanding how it behaves.

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 states the core purpose without unnecessary words. It's appropriately sized for a simple retrieval tool, though it could be slightly more informative about what 'detailed information' entails to better justify its place.

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?

For a tool with 2 required parameters, no annotations, and no output schema, the description is insufficient. It doesn't explain what 'detailed information' returns, how datasource filtering affects results, or any behavioral constraints. The agent lacks critical context to use this tool effectively beyond basic parameter passing.

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

Parameters3/5

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

Schema description coverage is 100%, providing complete parameter documentation. The description adds no additional parameter semantics beyond implying 'control_name' identifies which control and 'datasource_ids' filters results. Since the schema already fully describes both parameters, the baseline score of 3 is appropriate.

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

Purpose4/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 'compliance control' with the qualifier 'detailed information about a specific' one. It distinguishes from sibling 'list_compliance_controls' by focusing on a single control rather than listing multiple. However, it doesn't specify what 'detailed information' includes or how it differs from other get_* tools.

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?

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention prerequisites, compare with 'list_compliance_controls' for overview vs detail, or indicate when datasource filtering is needed. The agent must infer usage from the tool name and parameters alone.

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/rad-security/mcp-server'

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