Skip to main content
Glama

create_static_route

Creates a static route on a Tier-0 or Tier-1 gateway to reach destinations not covered by connected or advertised routes, such as VPN subnets.

Instructions

[WRITE] Create a static route on a Tier-0 or Tier-1 gateway via the Policy API.

Use for destinations not covered by connected or advertised routes (e.g. reaching a VPN or external subnet). Note: for the Tier-0 to advertise this route upstream, the gateway needs TIER1_STATIC_ROUTES route advertisement (set via update_tier1_gateway). Re-running with the same route_id overwrites it (PUT semantics). Returns the created route dict; on failure returns {"error", "hint"}. Recorded in the audit log (~/.vmware/audit.db).

Args: tier1_id: Gateway ID (Tier-0 or Tier-1, per gateway_type), as returned by list_tier0_gateways / list_tier1_gateways. route_id: Unique route identifier (alphanumerics, hyphens, underscores only). network: Destination network in CIDR notation, e.g. "10.0.0.0/8". next_hop: Next-hop IPv4 address, e.g. "192.168.1.254". gateway_type: Either "tier0" or "tier1" (default "tier1"). target: NSX Manager name from config.yaml. Uses the default target if omitted.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
targetNo
networkYes
next_hopYes
route_idYes
tier1_idYes
gateway_typeNotier1
Behavior4/5

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

Beyond annotations (readOnlyHint false, etc.), description discloses PUT semantics (overwrite on re-run), return format (dict or error), and audit logging. No contradictions.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Well-structured with [WRITE] tag, purpose, usage, notes, and Args list. Front-loaded but slightly verbose; could be tighter without losing meaning.

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?

Covers all parameters, output/error format, audit log, and gateway advertising condition. Lacks full return structure but acceptable given no output schema.

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 has 0% description coverage; description compensates fully by explaining each parameter, including constraints (route_id format, network CIDR, next_hop IPv4, gateway_type default).

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Description clearly states it creates a static route on a Tier-0 or Tier-1 gateway via the Policy API, distinguishing it from sibling tools like create_nat_rule or create_segment.

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?

Explicitly says use for destinations not covered by connected/advertised routes and notes overwrite semantics. Lacks explicit when-not-to-use but provides sufficient context.

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/zw008/VMware-NSX'

If you have feedback or need assistance with the MCP directory API, please join our Discord server