Skip to main content
Glama

shell_env_set

Sets environment variables in the persistent PowerShell session so all later shell commands can use them.

Instructions

在持久化会话中设置环境变量。后续所有 shell_exec 都能读到。

Input Schema

NameRequiredDescriptionDefault
nameYes环境变量名
valueYes变量值

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.2

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It usefully discloses that the variable persists and is visible to later shell_exec calls, but it omits whether existing variables are overwritten, how long persistence lasts, and what the call returns.

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 are tightly front-loaded: first the action and context, then the observable effect. There is no filler.

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 two-parameter mutation tool with full schema coverage and no output schema, the description is nearly complete. It could be improved by mentioning overwrite behavior or return value, but the core behavior is clear.

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 both parameters are already documented as the environment variable name and value. The description adds no additional parameter-level semantics beyond the schema baseline.

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 states a specific verb and resource: setting an environment variable in a persistent session. It also clarifies the effect that later shell_exec calls can read it, though it does not explicitly distinguish this from shell_env_get or shell_reset.

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?

Usage is implied by the statement that subsequent shell_exec calls will see the variable, but the description does not explicitly say when to use this instead of alternatives such as shell_env_get or shell_reset.

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