Skip to main content
Glama

get_environment

Retrieves server process environment variables for debugging and configuration; specify one variable or leave empty to list all.

Instructions

Retrieves environment variables from the server process. Useful for debugging and configuration.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_environment"
  }
}

Input Schema

NameRequiredDescriptionDefault
variableNoSpecific environment variable to retrieve (leave empty for all variables)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full disclosure burden, and it leaves out important traits: environment variables frequently hold secrets or credentials, and nothing is said about permissions, exposure risk, or whether values are redacted. It also says nothing about the shape of the return (key/value pairs, formatting) for the all-variables case.

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?

Two short sentences with the purpose front-loaded and no filler. The second sentence is marginally redundant with the first but still conveys intent efficiently.

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

Completeness3/5

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

For a one-optional-parameter read tool with no output schema and no annotations, the definition is adequate but thin: with no output schema, the agent gets no sense of what the response looks like when all variables are returned, and the sensitivity profile of environment data is unaddressed.

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% and the single optional parameter already documents both the 'specific variable' and 'leave empty for all' behaviors, so the baseline of 3 applies. The description adds no example names, case-sensitivity notes, or behavior for a nonexistent variable.

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 names a specific verb and resource: 'Retrieves environment variables from the server process.' An agent can tell this apart from get_user_info, get_conversation_context, and read_file by resource, though no sibling is called out by name.

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?

'Useful for debugging and configuration' implies a context of use but gives no explicit when-to-use, when-not-to-use, or alternative-tool routing. The agent must infer that this is a diagnostics tool rather than a data-retrieval one.

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