Skip to main content
Glama
rad-security

RAD Security

Official
by rad-security

radql_list_data_types

Discover available data types for security queries in Kubernetes and cloud environments. Use this tool first to identify what security data you can analyze.

Instructions

List all available RadQL data types (discovery). ALWAYS call this FIRST before using other RadQL tools to discover what data is available to query. Returns data types like 'containers', 'kubernetes_resources', 'inbox_items', 'vulnerabilities', etc. with descriptions.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • src/index.ts:581-586 (registration)
    Tool registration in listTools handler: defines name 'radql_list_data_types' with description and schema reference
    {
      name: "radql_list_data_types",
      description:
        "List all available RadQL data types (discovery). ALWAYS call this FIRST before using other RadQL tools to discover what data is available to query. Returns data types like 'containers', 'kubernetes_resources', 'inbox_items', 'vulnerabilities', etc. with descriptions.",
      inputSchema: zodToJsonSchema(radql.RadQLListDataTypesSchema),
    },
  • Dispatch handler in callToolRequest: calls radql.executeListDataTypes(client) for this tool
    case "radql_list_data_types": {
      const response = await radql.executeListDataTypes(client);
      return {
        content: [
          { type: "text", text: JSON.stringify(response, null, 2) },
        ],
      };
    }
  • src/index.ts:582-586 (registration)
    Tool listed with name and schema in ListToolsRequest handler
      name: "radql_list_data_types",
      description:
        "List all available RadQL data types (discovery). ALWAYS call this FIRST before using other RadQL tools to discover what data is available to query. Returns data types like 'containers', 'kubernetes_resources', 'inbox_items', 'vulnerabilities', etc. with descriptions.",
      inputSchema: zodToJsonSchema(radql.RadQLListDataTypesSchema),
    },
  • Zod schema definition for the tool input (empty object, no params)
    /**
     * Schema for listing available data types (discovery)
     */
    export const RadQLListDataTypesSchema = z.object({}).describe(
      "List all available RadQL data types. Returns data types with descriptions. ALWAYS call this FIRST to discover what data is available."
    );
  • Tool handler function: executeListDataTypes, calls core listDataTypes
     */
    export async function executeListDataTypes(
      client: RadSecurityClient
    ): Promise<any> {
      return await listDataTypes(client);
    }
  • Core handler logic: listDataTypes makes API request to /data/types and formats response
    /**
     * List all available data types that can be queried
     */
    export async function listDataTypes(
      client: RadSecurityClient
    ): Promise<any> {
      const response = await client.makeRequest(
        `/accounts/${client.getAccountId()}/data/types`
      );
    
      return {
        available_types: Array.isArray(response) ? response : response.available_types || [],
        hint: "Use radql_get_type_metadata with a specific data_type to see available fields and filtering options"
      };
    }

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