Skip to main content
Glama

Manage Container Env

manage_container_env
Idempotent

Add or remove container environment variables with idempotent operations. Prevents duplicate entries and conflicts for consistent container configuration.

Instructions

Add or remove a container environment variable. Idempotent by name+key. add returns already_exists if the entry exists with the same value; throws CONFLICT if the value differs.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
routerIdNoRouter ID; omit to use the default router.
actionYesAction to perform
nameYesContainer name
keyYesEnvironment variable name — part of idempotency key
valueNoEnvironment variable value (required for add)
dryRunNoPreview changes without applying.
Behavior4/5

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

Annotations provide idempotentHint=true, and the description expands on this by detailing the exact idempotency behavior (by name+key) and conflict handling. It also clarifies the readOnlyHint=false with the 'add or remove' action. However, it does not discuss permissions or potential side effects.

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?

The description is extremely concise—only two sentences—with no wasted words. It front-loads the core action and then adds important behavioral details, making it easy to read and understand.

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?

For a simple add/remove tool without an output schema, the description covers the essential aspects: action, idempotency, and conflict condition. It lacks return value details, but the tool's simplicity makes this acceptable. However, completeness could be improved by noting the success response.

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 baseline is 3. The description adds marginal value by confirming that 'value' is required for 'add' and that 'name' and 'key' form the idempotency key, but it does not significantly enhance understanding beyond the schema.

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?

The description clearly states the verb ('add or remove') and the resource ('container environment variable'), and distinguishes it from sibling tools like 'manage_container' and 'manage_container_mount'. It also explains idempotency behavior, which adds clarity.

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 description implies usage for managing container environment variables but does not explicitly state when to use it over alternatives or provide conditions or exclusions. The idempotency and conflict behavior offer some context, but no direct guidance on when not to use.

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/AliKarami/MikroMCP'

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