Skip to main content
Glama
rad-security

RAD Security

Official
by rad-security

list_security_findings

Retrieve security findings from Kubernetes environments with filtering by type, severity, source, and status to identify vulnerabilities and threats.

Instructions

List security findings with optional filtering by types, severities, sources, and status

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoNumber of findings to return
typesNoList of finding types to filter by
severitiesNoList of severity levels to filter by
source_kindsNoList of source kinds to filter by. i.e. Deployment,Pod,Container,Node,etc.
source_typesNoList of source types to filter by
source_namesNoList of source names to filter by
source_namespacesNoList of source namespaces to filter by
statusNoStatus of the findings to filter byopen
from_timeNoFrom time in RFC3339 or relative format, i.e. now-7dnow-7d
to_timeNoTo time in RFC3339 or relative format, i.e. now-7d

Implementation Reference

  • The core handler function implementing the logic for listing security findings. It constructs filter parameters and queries the RAD Security API's unified_findings/groups endpoint.
    export async function listFindings(
      client: RadSecurityClient,
      limit: number = 20,
      types?: string[],
      severities?: string[],
      source_types?: string[],
      source_kinds?: string[],
      source_names?: string[],
      source_namespaces?: string[],
      status: string = "open",
      from_time: string = "now-7d",
      to_time?: string
    ): Promise<any> {
      const filterParam = makeFilter({
        type: types,
        severity: severities,
        source_type: source_types,
        source_kind: source_kinds,
        source_name: source_names,
        source_namespace: source_namespaces,
        status: status,
      });
    
      const params: Record<string, any> = {
        limit,
        filters: filterParam,
        from: from_time,
      };
    
      if (to_time) {
        params.to = to_time;
      }
    
      const response = await client.makeRequest(
        `/accounts/${client.getAccountId()}/unified_findings/groups`,
        params
      );
    
      return {
        size: response.length,
        entries: response,
        has_more: response.length === limit,
      };
    }
  • Zod input schema defining parameters for filtering and paginating security findings, used by the tool.
    export const listFindingsSchema = z.object({
      limit: z.number().optional().default(20).describe("Number of findings to return"),
      types: z.array(z.enum(types)).optional().describe("List of finding types to filter by"),
      severities: z.array(z.enum(severities)).optional().describe("List of severity levels to filter by"),
      source_kinds: z.array(z.string()).optional().describe("List of source kinds to filter by. i.e. Deployment,Pod,Container,Node,etc."),
      source_types: z.array(z.enum(source_types)).optional().describe("List of source types to filter by"),
      source_names: z.array(z.string()).optional().describe("List of source names to filter by"),
      source_namespaces: z.array(z.string()).optional().describe("List of source namespaces to filter by"),
      status: z.enum(statuses).optional().default("open").describe("Status of the findings to filter by"),
      from_time: z.string().optional().default("now-7d").describe("From time in RFC3339 or relative format, i.e. now-7d"),
      to_time: z.string().optional().describe("To time in RFC3339 or relative format, i.e. now-7d"),
    });
  • src/index.ts:426-429 (registration)
    Tool registration in the MCP server's ListToolsRequest handler, defining the tool name, description, and input schema.
    name: "list_security_findings",
    description:
      "List security findings with optional filtering by types, severities, sources, and status",
    inputSchema: zodToJsonSchema(findings.listFindingsSchema),
  • src/index.ts:1242-1264 (registration)
    Dispatch registration in the MCP server's CallToolRequest handler that validates input with the schema and invokes the listFindings handler function.
    case "list_security_findings": {
      const args = findings.listFindingsSchema.parse(
        request.params.arguments
      );
      const response = await findings.listFindings(
        client,
        args.limit,
        args.types,
        args.severities,
        args.source_types,
        args.source_kinds,
        args.source_names,
        args.source_namespaces,
        args.status,
        args.from_time,
        args.to_time
      );
      return {
        content: [
          { type: "text", text: JSON.stringify(response, null, 2) },
        ],
      };
    }
  • Utility function used by the handler to build comma-separated filter strings from array or single value parameters.
    function makeFilter(filterObj: Record<string, string | string[] | undefined>): string {
      const filters: string[] = [];
    
      for (const [key, value] of Object.entries(filterObj)) {
        if (!value) continue;
    
        if (Array.isArray(value)) {
          for (const item of value) {
            if (item) {
              filters.push(`${key}:${item}`);
            }
          }
        } else {
          filters.push(`${key}:${value}`);
        }
      }
    
      return filters.join(",");
    }
Behavior2/5

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

With no annotations provided, the description carries full burden for behavioral disclosure. While 'List' implies a read operation, it doesn't address important behavioral aspects: whether results are paginated (the 'limit' parameter suggests they might be), default sorting, rate limits, authentication requirements, or what the response structure looks like. For a tool with 10 parameters and no output schema, this is a significant gap.

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, efficient sentence that states the core functionality upfront. Every word earns its place: 'List security findings' establishes the purpose, and 'with optional filtering by types, severities, sources, and status' adds necessary context without redundancy. No wasted words or unnecessary elaboration.

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 10 parameters, no annotations, and no output schema, the description is insufficient. While concise, it doesn't address critical context: response format, pagination behavior, error conditions, or how the various filter parameters interact. The agent would need to guess about the return structure and operational characteristics despite the tool's complexity.

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?

The description mentions filtering by 'types, severities, sources, and status' which maps to some parameters (types, severities, source_kinds/source_types/source_names/source_namespaces, status). However, with 100% schema description coverage, the schema already documents all 10 parameters thoroughly. The description adds minimal value beyond what's in the schema - it doesn't explain parameter interactions, precedence, or provide usage examples.

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 ('List') and resource ('security findings'), making the purpose unambiguous. It also mentions optional filtering capabilities, which adds specificity. However, it doesn't explicitly differentiate this tool from sibling tools like 'list_threat_vectors' or 'list_k8s_resource_misconfigs' that might overlap in security domain.

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. With many sibling tools in the security/compliance domain (like list_threat_vectors, list_k8s_resource_misconfigs, list_image_vulnerabilities), there's no indication of scope boundaries, prerequisites, or comparative use cases. The agent must infer usage context from tool names 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