Skip to main content
Glama

list_network_connection_srcs

Identify and filter network connection sources by workloads and clusters using query parameters. Retrieve security insights for Kubernetes and cloud environments with customizable pagination.

Instructions

List network connection sources with optional filtering by source and destination workloads

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filtersNoFilter string for filtering results.Filter options: source_workload_name, source_workload_namespace, destination_workload_name, destination_workload_namespace, cluster_id.Example: 'source_workload_name:my-workload,destination_workload_name:my-workload,cluster_id:my-cluster'
limitNoLimit the number of items in the list
offsetNoOffset to start the list from
qNoQuery to filter the list of network connection sources

Implementation Reference

  • The main handler function that validates input using the schema and makes an API request to the RAD Security backend to list network connection sources.
    export async function listNetworkConnectionSources( client: RadSecurityClient, params: z.infer<typeof listNetworkConnectionSourcesSchema> ): Promise<any> { const validatedParams = listNetworkConnectionSourcesSchema.parse(params); const response = await client.makeRequest( `/accounts/${client.getAccountId()}/container_runtime_insights/network_connection_sources`, validatedParams ); return response; }
  • Zod input schema defining parameters: filters, offset, limit, q for the list_network_connection_srcs tool.
    export const listNetworkConnectionSourcesSchema = z.object({ filters: z.string().optional().describe("Filter string for filtering results." + "Filter options: source_workload_name, source_workload_namespace, destination_workload_name, destination_workload_namespace, cluster_id." + "Example: 'source_workload_name:my-workload,destination_workload_name:my-workload,cluster_id:my-cluster'"), offset: z.number().optional().describe("Offset to start the list from"), limit: z.number().optional().default(20).describe("Limit the number of items in the list"), q: z.string().optional().describe("Query to filter the list of network connection sources"), });
  • src/index.ts:268-270 (registration)
    Tool registration in the listTools handler, including name, description, and schema reference.
    name: "list_network_connection_srcs", description: "List network connection sources with optional filtering by source and destination workloads", inputSchema: zodToJsonSchema(runtimeNetwork.listNetworkConnectionSourcesSchema),
  • src/index.ts:658-663 (registration)
    Dispatch case in the callTool handler that invokes the tool's handler function.
    case "list_network_connection_srcs": { const args = runtimeNetwork.listNetworkConnectionSourcesSchema.parse(request.params.arguments); const response = await runtimeNetwork.listNetworkConnectionSources(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