Skip to main content
Glama

PillDrops

set_egress

Replace a running or paused sandbox's outbound network rules. Entries are hostnames ("*.example.com" for subdomains), IPv4 addresses or CIDRs; deny ["0.0.0.0/0"] blocks everything not allowed. The org's policy is the ceiling: rules can narrow it, never widen it. Takes effect at once and cuts open connections. Omit both lists to return to the default.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "sandbox_id": "<sandbox_id>"
    },
    "name": "set_egress"
  }
}

Input Schema

NameRequiredDescriptionDefault
denyNo
allowNo
sandbox_idYessandbox id or slug

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses the org-policy ceiling (narrow only, never widen), the immediate effect with connection cutting, and the reset-on-omission behavior. It omits whether an attempt to widen beyond policy errors or is silently narrowed, and whether the change is reversible (e.g., restoring prior rules).

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?

Four dense sentences, front-loaded with the action and resource, then constraints, then the edge case. No filler or restatement of the title.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an unannotated mutation tool with no output schema, the description covers formats, policy limits, timing, and the default-reset path. Remaining gaps – required permissions, failure behavior on policy violation, and return value – are moderate but not blocking for correct invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is only 33% (only sandbox_id is documented), yet the description compensates substantially: it defines accepted entry formats (hostnames with "*.example.com" wildcards, IPv4, CIDR), explains the deny-all idiom, and specifies the meaning of omitting both lists. The one weak spot is that the interaction of allow and deny when both are supplied is only implied.

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?

States a specific verb and resource: "Replace a running or paused sandbox's outbound network rules." An agent immediately knows the object and scope. It stops short of distinguishing itself from the sibling set_networks, which an agent could plausibly confuse with egress rules.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives a clear precondition (sandbox must be running or paused) and an explicit usage rule for the reset case: "Omit both lists to return to the default." It does not say when to prefer this over set_networks or other network-configuration siblings, and names no exclusions.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.