Skip to main content
Glama

Add or update a request-modification rule (idempotent upsert)

proxy_update_request_transform

Create or replace a rule to transform matching HTTP requests by setting or removing headers, query parameters, or body in the proxy.

Instructions

Idempotently upsert a request transform rule by (method + url + regex) key. If a rule with the same key exists, its properties are replaced.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesURL pattern (glob/substring by default, regex=true for raw regex).
bodyNoReplace the request body.
regexNoTreat 'url' as a raw regex (default false).
methodYesHTTP method: GET, POST, PUT, DELETE, PATCH, HEAD, or OPTIONS.
setQueryNoQuery params to add or override.
setHeadersNoHeaders to add or override.
removeQueryNoQuery params to strip from the URL.
removeHeadersNoHeaders to strip from the outgoing request.
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It discloses the idempotent upsert semantics and that existing same-key properties are replaced, which is valuable. However, it does not disclose mutation effects, whether existing rules get destroyed, auth/permission requirements, or any side effects on other rules sharing the same method+url.

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?

The description is just two sentences and both earn their place: the first explains what the tool does, the second clarifies the idempotent replacement semantics. Efficient and front-loaded with the primary action.

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

Completeness3/5

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

With 8 parameters, 2 required, nested objects, and no annotations or output schema, the description is reasonably complete for purpose but could clarify relationships to sibling transform tools and explain the upsert key more. The core behavior is clear, though behavioral side-effects and return value expectations are undocumented.

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?

Schema description coverage is 100%, so all 8 parameters are already documented in the schema. The description adds the 'idempotent upsert' key concept that ties method+url+regex together but does not add per-parameter meaning beyond schema. Baseline 3 is appropriate given the full schema coverage.

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 title and description state a specific verb+resource ('Add or update a request-modification rule'), and the description names the exact key ('method + url + regex') used for upsert semantics. It clearly distinguishes from siblings like proxy_mock_transform (mocking) and proxy_update_transform (transforms generally) by specifying it handles REQUEST transforms specifically.

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

Usage Guidelines3/5

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

The description explains the idempotent upsert behavior and the uniqueness key, which conveys when this replaces versus inserts. However, it does not explicitly name sibling alternatives or state when NOT to use this tool versus proxy_request_transform, proxy_update_transform, or proxy_save_transforms. The differentiation from siblings is implied rather than explicit.

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/shahfazliz/proxy-mcp'

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