Skip to main content
Glama

set_active_environment

Activate an environment for a workspace so subsequent request calls use it automatically, eliminating repeated environment selection.

Instructions

Set the active environment for a workspace. All subsequent send_request calls for that workspace will use this environment automatically.

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": {
      "workspace_id": "<workspace_id>",
      "environment_id": "<environment_id>"
    },
    "name": "set_active_environment"
  }
}

Input Schema

NameRequiredDescriptionDefault
workspace_idYes
environment_idYesThe environment _id to activate

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.6-beta

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the burden and does disclose the key side effect — a persistent per-workspace state change that redirects later send_request calls. It omits whether the setting survives restarts, whether it can be cleared or reset, required permissions, and any error behavior for invalid or cross-workspace environment ids.

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?

Two short sentences, front-loaded with the action followed by the effect. Nothing is redundant or padded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple two-parameter setter with no output schema this covers the essentials — what it sets and what it affects. However, the agent still lacks lifecycle information (persistence, reset/unset, validation failures) needed to use it confidently in edge cases.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is only 50%: environment_id is documented in the schema itself, which the description merely echoes, while workspace_id is a bare string with no explanation in either place. The description says the environment applies "for a workspace" but adds no format, sourcing, or scoping details beyond that hint.

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 and resource ("Set the active environment for a workspace"), which is clearly distinguishable from the sibling management tools such as create_environment, get_environment, and delete_environment. It stops short of naming any alternative explicitly, but the action is unambiguous.

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?

The second sentence gives concrete context for when this matters: it takes effect on subsequent send_request calls for that workspace. There are no explicit exclusions or ordering prerequisites, but the implied workflow (call before send_request) is clear.

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