Skip to main content
Glama

fault.modify_headers

Rewrite request headers on matching requests to test or debug how a site handles altered headers. Specify a URL pattern and header values to apply changes in the active or target page.

Instructions

Rewrite request headers on matching requests.

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": {
      "url": "<url>",
      "headers": "<headers>"
    },
    "name": "fault.modify_headers"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYes
countNo
headersYes
target_idNoTarget handle (tgt_*). Omit for the active page.
browser_idNoBrowser handle (br_*). Omit to use the only running browser, or auto-launch one.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.4/5.0
Behavior2/5

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

Annotations declare readOnlyHint=false and openWorldHint=true, so the agent already knows this mutates live traffic. The description adds nothing beyond that: it does not say whether matching headers are merged or fully replaced, whether the effect persists across requests or sessions, how it is reverted, or what happens when multiple requests match.

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

Conciseness3/5

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

It is a single short sentence with no filler, but the brevity comes at the cost of substance rather than being front-loaded with useful detail. There is no wasted wording, but also almost no information.

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

Completeness2/5

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

For a traffic-mutating tool with five parameters including a nested object, no output schema, and only 40% schema coverage, this one-liner is far too thin. An agent cannot reliably invoke it without knowing match semantics, header merge behavior, and the role of 'count'.

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

Parameters2/5

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

Schema coverage is only 40%, yet the description explains none of the parameters. Crucially it does not clarify whether 'url' is an exact string, prefix, or pattern, nor does it explain the purpose of 'count' (how many matches to affect) or the shape of the 'headers' map - all of which the schema leaves undocumented.

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

Purpose3/5

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

The sentence names a verb (rewrite) and resource (request headers) but 'matching requests' is undefined, so an agent cannot tell what constitutes a match. It also fails to distinguish itself from siblings like fault.replace_response or fault.delay, which also intercept matching traffic.

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

Usage Guidelines2/5

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

There is no when-to-use guidance, no prerequisites, and no mention of alternatives such as fault.replace_response or how to undo the change with fault.remove/fault.clear. The only usage signal is implied by membership in the fault.* family.

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

Deploy Server

Other Tools