Skip to main content
Glama
martin-1103
by martin-1103

update_environment_variables

Modify environment variables by adding, updating, or removing key-value pairs for API testing and development workflows. Supports merge or replace operations to manage configuration settings.

Instructions

Update environment variables (add/update/remove variables)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
environmentIdYesEnvironment ID to update variables for
variablesYesVariables object with key-value pairs (JSON string, object, or comma-separated key=value pairs)
operationNoOperation type: "merge" (default) to combine with existing, "replace" to overwrite allmerge
Behavior2/5

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

With no annotations provided, the description carries full burden but offers minimal behavioral insight. It mentions the tool can 'add/update/remove variables' but doesn't disclose critical traits like required permissions, whether changes are reversible, potential side effects on dependent flows, or error handling. For a mutation tool with zero annotation coverage, this leaves significant gaps in understanding its behavior.

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 description is a single, efficient sentence that front-loads the core action ('update environment variables') with clarifying scope ('add/update/remove variables'). There's no wasted text, though it could be slightly more structured by separating operations or adding brief context. It earns its place but isn't perfectly optimized.

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

Completeness2/5

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

Given a mutation tool with no annotations and no output schema, the description is incomplete. It lacks information on return values, error cases, permissions needed, or how variables interact with existing configurations. While schema coverage is high, the behavioral and contextual gaps make it inadequate for safe and effective use by an AI agent.

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 description coverage is 100%, so the schema fully documents all three parameters (environmentId, variables, operation). The description adds no additional meaning beyond what's in the schema—it doesn't explain variable format examples, operation implications, or environmentId sourcing. Baseline score of 3 is appropriate as the schema does the heavy lifting.

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?

The description clearly states the verb ('update') and resource ('environment variables'), specifying it handles add/update/remove operations. It distinguishes from siblings like 'create_environment' or 'get_environment_details' by focusing on variable management rather than environment lifecycle or read-only access. However, it doesn't explicitly differentiate from 'set_default_environment' which might involve variable settings.

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

Usage Guidelines2/5

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

No explicit guidance on when to use this tool versus alternatives is provided. The description doesn't mention prerequisites (e.g., environment must exist), when to choose 'merge' vs 'replace' operations, or how it differs from sibling tools like 'update_endpoint' or 'set_default_environment'. Usage is implied through the action but lacks contextual boundaries.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/martin-1103/mcp2'

If you have feedback or need assistance with the MCP directory API, please join our Discord server