Skip to main content
Glama

Set environments

set_environments
Destructive

Make a project's environments exactly this list, in this order — the last is where finished work ends up. An environment is one of the places a project's work is put out to — 'dev', 'staging', 'prod' — in order; the LAST one is where finished work ends up. A deployment is a pipeline saying «this went out, there». Each issue it carried then says where it lies ('deployedTo' on get_issue), gets one history line per environment, and the project's rules with trigger 'deployed' run on it. A name the project already has is kept as it is, with what was deployed there; a name it does not have is added; and an environment LEFT OUT is removed together with the record of what was deployed to it and any rule waiting for it. So to rename one, add the new name and tell the person — there is no rename here. Project lead or admin only.

Input Schema

NameRequiredDescriptionDefault
namesYesThe environments in order, comma-separated: 'dev,staging,prod'. Each is one word of letters, digits, dots, dashes and underscores. An empty string removes them all.
projectKeyYesProject key, e.g. 'ONB'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the destructiveHint annotation to explain exactly what is destroyed: omitted environments are removed along with deployment records and waiting rules. It also describes downstream effects (deployedTo on issues, one history line per environment, 'deployed' rule triggers) and that existing names are preserved with their deployments.

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 core mutation semantics are front-loaded and most sentences carry real information. However, 'the last is where finished work ends up' is stated twice and the deployment explanation could be tightened for a two-parameter tool.

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?

Given a destructive, full-replacement mutation with annotations, a fully documented two-parameter schema, and no output schema, the description supplies everything an agent needs: permissions, ordering rules, preservation/deletion behavior, side effects, and rename guidance.

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 format is already documented, but the description adds substantive meaning: ordering matters, the last entry is the terminal environment, existing names are kept, new names are added, and omissions trigger deletion. It also clarifies the empty-string case beyond the schema's bare statement.

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 ('Make a project's environments exactly this list') and immediately clarifies ordering semantics and what the last entry means. It is clearly distinguishable from the read-only sibling list_environments.

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

Usage Guidelines4/5

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

Gives clear context for use: full replacement of the environment list, admin/lead requirement, and an explicit rename workaround ('add the new name and tell the person — there is no rename here'). It does not explicitly route to list_environments for reading, but the when-to-use and when-not-to-rename guidance is strong.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources