Skip to main content
Glama

radql_batch_query

Execute multiple RadQL queries in parallel to fetch related security data simultaneously, improving efficiency for Kubernetes and cloud environment analysis.

Instructions

Execute multiple RadQL queries in parallel for efficiency. Useful for fetching related data from different data types simultaneously (e.g., container details + vulnerabilities + network connections).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queriesYesArray of queries to execute in parallel (max 10)

Implementation Reference

  • Handler function that executes the batch query by mapping over queries, calling executeRadQLQuery for each, handling errors, and returning Promise.all results.
    export async function executeBatchQueries( client: RadSecurityClient, args: z.infer<typeof RadQLBatchQuerySchema> ): Promise<any[]> { const promises = args.queries.map(query => executeRadQLQuery(client, query).catch(err => ({ error: err.message, query: query })) ); return await Promise.all(promises); }
  • Zod schema defining input for radql_batch_query: an object with 'queries' array of up to 10 RadQLQuerySchema objects.
    export const RadQLBatchQuerySchema = z.object({ queries: z.array(RadQLQuerySchema).max(10) .describe("Array of queries to execute in parallel (max 10)") });
  • src/index.ts:644-648 (registration)
    Tool registration in the ListToolsRequest handler: defines name, description, and inputSchema from RadQLBatchQuerySchema.
    name: "radql_batch_query", description: "Execute multiple RadQL queries in parallel for efficiency. Useful for fetching related data from different data types simultaneously (e.g., container details + vulnerabilities + network connections).", inputSchema: zodToJsonSchema(radql.RadQLBatchQuerySchema), },
  • src/index.ts:1585-1594 (registration)
    Dispatch handler in CallToolRequest switch statement: parses arguments using RadQLBatchQuerySchema and calls executeBatchQueries.
    case "radql_batch_query": { const args = radql.RadQLBatchQuerySchema.parse( request.params.arguments ); const response = await radql.executeBatchQueries(client, args); return { content: [ { type: "text", text: JSON.stringify(response, null, 2) }, ], };

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