Skip to main content
Glama

Remove Script

remove_script

Delete a specific pre-request, post-response, or tests script from a Bruno request while keeping the rest of the request intact; removing all scripts drops the empty script container.

Instructions

Delete a pre-request, post-response, or tests script from a Bruno request, leaving the rest of the request intact, including duplicate blocks accumulated by appending. Canonical scriptType values are pre-request/post-response/tests; the aliases before-request and after-response are accepted. Removing all scripts also drops the now-empty script container.

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": {
      "bruFilePath": "<bruFilePath>",
      "scriptType": "<scriptType>"
    },
    "name": "remove_script"
  }
}

Input Schema

NameRequiredDescriptionDefault
scriptTypeYesWhich script to remove. Both .bru and .yml keep the three script types in separate slots, so removal is precise: clearing tests leaves a post-response script in place, and vice versa.
bruFilePathYesAbsolute path to the .yml or .bru request file. Get from list_requests or get_collection_stats.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.2.1

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the full load and does well: it discloses that only the script is removed, that duplicate appended blocks are also cleared, and that an empty script container is dropped as a side effect. It omits failure behavior (e.g. removing a missing script) and whether the change is reversible, so it falls short of full disclosure.

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?

Three tight sentences, front-loaded with the action and its scope, then the enum guidance and the container-cleanup side effect. Nothing is filler, though the second sentence is somewhat dense.

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 2-parameter tool with full schema coverage, no nested objects and no output schema, the description covers scope, parameter vocabulary, side effects and the key preservation guarantee. There is no output schema to explain, and the remaining unknown (error on missing script) is minor.

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?

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning by declaring which enum values are canonical versus aliases, and by explaining that script types occupy separate slots so clearing one leaves the others. That is more than the raw enum conveys.

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?

Specific verb (Delete) plus the precise resource (a script inside a Bruno request) and the three script kinds it applies to. The phrase 'leaving the rest of the request intact' cleanly separates it from delete_request and from the add_* side of the family.

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?

Usage is only implied: 'leaving the rest of the request intact' hints you pick this over deleting the whole request, but there is no explicit when-to-use, when-not, or named alternative. An agent must infer the routing decision.

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