Skip to main content
Glama

Create Bruno Environment

create_environment

Creates an environment file for a Bruno collection and refuses existing names to prevent overwrites; set overwrite to true only when replacement is intended.

Instructions

Create an environment file for a Bruno collection. Writes the WHOLE file, so it REFUSES a name that already exists rather than overwriting it — the error names the existing variables and which ones a replace would delete, so you can merge with update_environment, pick another name, or retry with overwrite: true.

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": {
      "collectionPath": "<collectionPath>",
      "name": "<name>",
      "variables": "<variables>"
    },
    "name": "create_environment"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes
overwriteNoReplace an environment that already exists. Without this an existing name is refused. Keys in the file that this tool does not model are preserved either way.
variablesYesEither a flat name-to-value map, or a list of variable objects when you need flags. Use the list form to declare a secret at create time: a secret variable is stored as a name only (no format persists a secret's value), so `value` is dropped for it.
collectionPathYesAbsolute path to existing collection directory.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.2.1

TDQS

A4.5/5.0
Behavior4/5

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

No annotations exist, and the description carries the key behavioral burden: whole-file write, non-destructive refusal on name collision, and the fact that the error enumerates existing variables and which would be deleted. It does not cover permissions or the response shape, which keeps it below a 5.

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?

Two sentences with the core behavior front-loaded and zero filler, though the all-caps emphasis on WHOLE and REFUSES and the long compound second sentence make it slightly louder and denser than necessary.

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?

For a 4-parameter mutation tool with no annotations and no output schema, the description covers write scope, collision handling, error content, and recovery paths; only return-value expectations and any permission constraints are left unstated.

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 already 75%, so the baseline is 3; the description adds real meaning by explaining that overwrite: true is the retry escape hatch after a refusal and framing the error's variable listing as the input to a merge decision.

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?

States a specific verb and resource ('Create an environment file for a Bruno collection') and immediately contrasts it with the sibling update_environment by declaring it refuses existing names rather than overwriting.

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

Usage Guidelines5/5

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

Gives explicit alternatives for the collision case — merge via update_environment, choose another name, or retry with overwrite: true — so the agent knows both when this tool applies and what to do when it is refused.

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