Skip to main content
Glama
BurpSuite MCP

BurpSuite MCP

by Steph-ux

add_proxy_match_replace_rule

Create Burp Proxy match-and-replace rules that automatically modify matching requests or responses, including headers, bodies, or request lines.

Instructions

Add a Burp Proxy match-and-replace rule to automatically modify matching requests or responses.

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": {
      "match_condition": "<match_condition>",
      "match_type": "<match_type>",
      "replace_string": "<replace_string>",
      "enabled": "<enabled>"
    },
    "name": "add_proxy_match_replace_rule"
  }
}

Input Schema

NameRequiredDescriptionDefault
commentNoOptional comment / label for the rule.
enabledYesWhether the rule is active immediately after creation.
is_regexNoTreat match_condition as a regular expression (default false).
match_typeYesWhere to apply the match: request_header, response_header, request_body, response_body, or request_first_line.
replace_stringYesThe string to substitute in place of the matched content.
match_conditionYesThe string or regex to match against.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden and provides almost none of it. It does not say whether rules persist across sessions or restarts, whether they apply retroactively to already-captured traffic, whether they require the Proxy to be running, what happens on duplicate rules, or what the call returns; only the word 'automatically' hints at ongoing behavior.

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?

A single front-loaded sentence with the verb, resource, and effect stated in order and zero filler. Nothing is repeated from the schema and nothing needs trimming.

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?

This is a six-parameter mutation tool with no annotations and no output schema, so the description is the only place to learn about persistence, activation timing, and return value, and it covers none of them. The schema alone tells an agent how to fill fields but not what creating the rule actually changes in the target.

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% and every parameter is individually documented, including the match_type enum and the is_regex default, so the baseline of 3 applies. The description adds no parameter-level meaning such as regex flavor, case sensitivity, or how replace_string interacts with regex capture groups.

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

Purpose4/5

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

The description names a specific verb and resource ('Add a Burp Proxy match-and-replace rule') and states the effect ('automatically modify matching requests or responses'), which clearly separates it from list_proxy_match_replace_rule and delete_proxy_match_replace_rule. It stops short of explicitly naming or contrasting those siblings, so an agent must infer the boundary.

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 when-not-to-use guidance, and no mention of alternatives such as modifying traffic in Repeater versus the Proxy. Nothing states prerequisites like the Proxy listener needing to be active for the rule to take effect, nor whether the rule applies only to proxied traffic.

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