Skip to main content
Glama

FFxF

Set the routing rules of a listener

set_rules
DestructiveIdempotent

REPLACES the http/https listener's rules: each sends a hostname and/or path prefix to an http pool (up to 25). They are evaluated most specific first, whatever the order sent; anything unmatched goes to the default pool. No wildcard hostname on https. Each https hostname gets a certificate once it points to the load balancer. Scope: network.write.

Input Schema

NameRequiredDescriptionDefault
lbYesLoad balancer id, as returned by list_load_balancers or create_load_balancer.
rulesYes
listenerYesListener id, from get_load_balancer.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

The description adds substantial behavior beyond annotations: it states that rules are replaced, evaluated most-specific-first, fall back to the default pool, are capped at 25, disallow wildcard hostnames on https, and trigger certificate provisioning. These details are highly relevant for a destructive, idempotent operation and reinforce rather than contradict the annotations.

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 dense but front-loaded: the replacement behavior comes first, followed by matching semantics, constraints, and side effects. Every sentence contributes operational information without filler.

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

Completeness5/5

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

For a destructive, idempotent rule-set replacement tool with no output schema, the description covers the essential behavior, constraints, and side effects an agent needs. It goes beyond safety annotations by explaining routing evaluation and certificate implications.

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

Parameters4/5

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

The schema documents lb, listener, and the nested rule fields reasonably well, and the description adds meaningful routing semantics for hostname, path_prefix, and pool. It explains evaluation order, default fallback, and wildcard restrictions, though lb and listener rely mostly on schema descriptions.

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?

The description uses a specific verb, 'REPLACES', and a precise resource, 'the http/https listener's rules', making the mutation scope unmistakable. It clearly distinguishes this from listener creation or pool upsert siblings by focusing on routing-rule assignment.

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?

It clearly establishes the operation as a full replacement of an existing listener's rules, which is strong usage context. However, it does not explicitly name alternatives or state when not to use this tool, such as using upsert_listener or set_targets instead.

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.

Resources