Skip to main content
Glama
rad-security

RAD Security

Official
by rad-security

list_network_connection_srcs

Identify network connection sources in Kubernetes environments with filtering by workload and cluster parameters for security analysis.

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'
offsetNoOffset to start the list from
limitNoLimit the number of items in the list
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 retrieve 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 schema defining the input parameters for the list_network_connection_srcs tool, including filters, offset, limit, and query.
    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:403-409 (registration)
    Tool registration in the ListTools response, specifying name, description, and input schema.
      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:1207-1221 (registration)
    MCP CallToolRequest handler that parses arguments, calls the listNetworkConnectionSources function, and formats the response.
    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) },
        ],
      };
    }
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure but provides minimal information. It mentions filtering capabilities but doesn't describe what 'list' means operationally - whether this is a read-only operation, what format results come in, whether there are rate limits, authentication requirements, or pagination behavior beyond the offset/limit parameters. For a tool with 4 parameters and no annotation coverage, this is inadequate.

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 communicates the core functionality without unnecessary words. It's appropriately sized for what it does convey, though it could benefit from additional context.

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 4 parameters, no annotations, and no output schema, the description is insufficiently complete. It doesn't explain what a 'network connection source' is, what data is returned, how results are structured, or any operational constraints. The agent would need to guess about the tool's behavior and output format.

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 'optional filtering by source and destination workloads' which corresponds to the 'filters' parameter, but doesn't add meaningful information beyond what's already in the schema descriptions. With 100% schema description coverage, the baseline is 3 - the description doesn't compensate for any gaps because there are none, but also doesn't add significant value beyond the schema.

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 'network connection sources', making the purpose specific and understandable. It also mentions optional filtering capabilities, which adds useful detail. However, it doesn't explicitly distinguish this tool from sibling tools like 'list_network_connections' or 'list_http_requests', which might have overlapping functionality.

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. There's no mention of prerequisites, specific contexts where this tool is appropriate, or how it differs from related tools like 'list_network_connections' or 'list_http_requests' that appear in the sibling list.

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