Skip to main content
Glama
orchestra-hq

Orchestra MCP Server

Official
by orchestra-hq

Update an environment

update_environment

Update an environment's name, default status, or variable values, replacing supplied values in full. Marking it default unsets the previous default environment.

Instructions

Update an environment's name, default flag, and variable values. Only the fields supplied are changed; omitted fields are left untouched. The supplied values replace the existing values in full — they are not merged. Marking an environment as the default automatically unsets the previous default environment.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNo
valuesNo
defaultEnvNo
environment_idYes
X-Orchestra-Account-IdNoAct on this account rather than the one the credential resolves to. Omit it to use the credential's own account. An API key is issued to a single account, so it may only name that account; an OAuth token may name any account its grant covers.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations declare it is a non-read-only, non-destructive mutation, and the description adds genuinely non-obvious behavior beyond that: values are replaced wholesale rather than merged, and setting the default unsets the prior default. It does not discuss permissions, error behavior, or reversibility, so it falls short of 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.

Conciseness5/5

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

Three tight sentences, front-loaded with the operation scope before the edge-case semantics. No filler, no repetition of the title, and each sentence adds a distinct fact.

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?

An output schema exists so return values need no explanation, and annotations already convey the safety profile; the description supplies the mutation semantics an agent needs. Minor gaps remain around null handling for `name` and the account-id header, but nothing critical is missing for a correct call.

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 description coverage is only 20%, so the description must carry the load, and it does the most important part: it explains the replace-vs-merge semantics of `values` and the side effect of `defaultEnv`, which the schema cannot express. It leaves environment_id and the account-id header undocumented, so it does not fully compensate.

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?

States a specific verb ('Update') and resource ('an environment') and enumerates the mutable fields: name, default flag, and variable values. It is clearly distinguishable from create/get/list_environment siblings by implication, though it never names an alternative explicitly.

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?

The clause 'Only the fields supplied are changed; omitted fields are left untouched' implicitly tells the agent when this tool is appropriate (partial edits) versus create_environment, but there is no explicit when-to-use/when-not-to-use statement or prerequisite guidance.

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