Skip to main content
Glama

env_set_variable

Set a key-value variable in the active environment configuration to manage API request values across tests.

Instructions

Set a variable key-value pair inside the active environment configuration.

Input Schema

NameRequiredDescriptionDefault
keyYesVariable name
valueYesVariable string/number value

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.4

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden for a mutation. It never states whether setting an existing key overwrites it, whether the change persists to disk or is session-only, what permissions are needed, or what happens on failure — all material for a write tool.

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?

A single front-loaded sentence with no filler or redundancy. It is efficient, though the terseness comes partly at the cost of missing behavioral detail rather than being fully earned.

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 tool with full schema coverage and no output schema, the description is minimally adequate. The overwrite/persistence semantics of "set" remain unaddressed, which is the main gap for a write operation with zero annotations.

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

Parameters3/5

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

Schema coverage is 100% and both parameters are documented in the schema, so the baseline of 3 applies. The description's "key-value pair" wording confirms the two-parameter shape but adds no format, escaping, or type-coercion detail beyond the schema.

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?

Specific verb ("Set") plus resource ("variable key-value pair") and scope ("inside the active environment configuration"). It is distinguishable from env_get_variable and env_delete_variable by the write verb, though it never names those siblings 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 phrase "active environment" implies the tool operates on whichever env is currently switched in, which is useful scoping, but the description gives no explicit when-to-use, when-not-to-use, or alternative (e.g. env_configure or env_import).

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