Skip to main content
Glama

get_environment_variables

Inspect server environment variables with optional case-insensitive search. Returns sorted read-only values, redacting secrets, for debugging PATH and config.

Instructions

Returns the server process's environment as a sorted key-value map. search filters by name prefix or substring, case-insensitive. Read-only (os.Environ). Sensitive names (SECRET, TOKEN, PASSWORD, etc.) are redacted to ***. Use to debug PATH, locale, and server configuration.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
searchNooptional search string to filter by name (matches prefix or substring, case-insensitive)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
countYes
errorsNo
variablesYes
Behavior5/5

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

With no annotations provided, the description takes on full responsibility for behavioral disclosure. It accurately states the operation is read-only (os.Environ), describes redaction of sensitive names (SECRET, TOKEN, PASSWORD) to '***', and notes the sorted output format, providing substantial transparency beyond the bare function. No annotations contradict this information.

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 efficiently organized with multiple short sentences, each conveying a distinct piece of information: return type, filtering behavior, read-only nature, redaction policy, and use case. It is slightly redundant with the schema regarding the search filter, but overall it is compact and well-structured without waste.

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

Completeness5/5

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

Given the tool's simplicity (one optional parameter, read-only operation) and the presence of an output schema, the description covers all essential context: what is returned, how to filter, safety/redaction, and typical use cases. No critical information is missing for an agent to correctly select and invoke this tool.

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?

The schema description for the single 'search' parameter already fully explains that it filters by name prefix or substring, case-insensitively. The tool description repeats this same information, adding no new semantic value beyond the schema. With 100% schema coverage, a baseline score of 3 is appropriate.

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 returns the server process's environment as a sorted key-value map, which is a specific verb and resource. It is distinct from sibling tools that focus on other system aspects like networks or CPU, with no ambiguity about what this tool offers.

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 provides clear usage context by suggesting 'Use to debug PATH, locale, and server configuration,' which tells the agent when this tool is appropriate. However, it does not explicitly mention when not to use it or name any alternative tools, so it stops short of full exclusionary guidance.

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/Mohabdo21/linux-mcp'

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