Skip to main content
Glama

env_env_load

Load environment variables from a .env file into the current process without overwriting existing ones. Returns a summary of loaded, skipped, and error entries.

Instructions

[env] Load key=value pairs from a .env file into the current process environment. Existing variables are not overwritten. Returns {loaded: [...], skipped: [...], errors: [...]}.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/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. It discloses two key behaviors: (1) variables are not overwritten if already present, and (2) the return object includes 'loaded', 'skipped', and 'errors' keys. This is sufficient transparency for a simple file-load operation. It does not mention side effects like environment persistence beyond the process, but that is standard. Score 4 as it covers the most important behavioral traits.

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 two sentences: the first states the action and a constraint, the second lists the return shape. Every part is essential, no fluff. Front-loaded with the primary purpose. Ideal conciseness.

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?

The tool is simple (one parameter, no required fields, output schema exists). The description explains the return object and the non-overwrite rule. It does not cover error handling beyond the 'errors' key, but the output schema likely documents that. Given the low complexity and presence of output schema, the description is nearly complete. Score 4 for minor omission of null path behavior.

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?

Only one parameter 'path' exists with default null and type string|null. The description says 'from a .env file', implying path is the file location, but it does not explain what happens when path is null (maybe uses default .env in current directory) or any expected file format. Schema coverage is 0%, so the description must add meaning; it adds basic context but lacks specifics. Score 3 as it provides partial value over 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 tool loads key=value pairs from a .env file into the current process environment, explicitly mentions that existing variables are not overwritten, and lists the return format. This provides a specific verb+resource action and distinguishes it from sibling env tools (e.g., env_env_set sets individual variables, env_env_get retrieves one).

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 description implies when to use this tool (loading from a .env file) but does not explicitly contrast with alternatives like env_env_set or env_env_get. It is clear enough for most scenarios, but a sentence like 'Use this to load multiple variables at once from a file; for individual variables use env_env_set' would improve guidance. Score 4 because it adequately differentiates from other env operations without explicit exclusions.

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/0-co/agent-friend'

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