Skip to main content
Glama

Update redirect/rewrite rule priority

render_patch_route

Update the priority of a redirect or rewrite rule to control the order in which rules are applied to incoming requests.

Instructions

Update redirect/rewrite rule priority. Update the priority for a particular redirect/rewrite rule. To apply redirect/rewrite rules to an incoming request, Render starts from the rule with priority 0 and applies the first encountered rule that matches the request's path (if any). Render increments the priority of other rules by 1 as necessary to make space for the updated rule. Calls PATCH /services/{serviceId}/routes/{routeId} on the Render Public API.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
routeIdYesThe id of the route
priorityYesRedirect and Rewrite Rules are applied in priority order starting at 0. Moves this route to the specified priority and adjusts other route priorities accordingly.
serviceIdYesThe ID of the service
Behavior4/5

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

The description reveals that Render increments other rules' priorities as needed and calls a specific API endpoint. Annotations already indicate non-read-only and non-destructive behavior, and the description adds valuable behavioral detail beyond 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 four sentences, front-loaded with the action, and contains no unnecessary words. Every sentence adds value: it states the action, explains priority behavior, and mentions the API call.

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?

Given the tool's simplicity and no output schema, the description covers the essential aspects: the operation, priority mechanics, and API endpoint. It could mention return values or prerequisites, but overall it is fairly complete for an AI agent to use.

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?

With 100% schema description coverage, the baseline is 3. The description adds meaning by explaining how the priority parameter works (starting from 0, adjusting others), which provides context beyond the schema's description.

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 clearly states 'Update redirect/rewrite rule priority' and specifies it applies to a particular rule, differentiating it from sibling tools like render_add_route, render_delete_route, and render_put_routes. The verb 'update' and resource 'redirect/rewrite rule priority' are specific and unambiguous.

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?

The description explains the priority ordering and that it adjusts other rules, providing context on when to use this tool. However, it does not explicitly state when not to use it or name alternatives, leaving some gap in guidance.

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/LuSrodri/render-useful-mcp'

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