Skip to main content
Glama

util_env_parse

Read-only

.env file parser and linter — Parse a .env / dotenv file into JSON the way dotenv and docker compose read it: comments, export prefixes, single/double quotes, escapes, multi-line quoted values, inline # comments, ${VAR} and ${VAR:-default} references (expand=true to resolve them from earlier keys). Lints it: invalid or shell-unsafe key names, duplicates, spaces around =, unquoted values with spaces, unterminated quotes, empty values, undefined references. Flags secret-looking keys and values (API keys, tokens, passwords, credentialed URLs) and masks them by default (mask=none to return values, mask=all to mask everything). Verdict VALID / VALID WITH WARNINGS / INVALID. Pass text= or url= of a raw file. Offline. JSON. Price: $0.002 USDC (Base, via x402).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "text": "<text>"
    },
    "name": "util_env_parse"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYese.g. NODE_ENV=production PORT=8080 DATABASE_URL=postgres://app:secret@db:5432/app GREETING="hello world"

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.4/5.0
Behavior3/5

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

The description discloses genuinely non-obvious behavior that annotations do not cover: secrets are masked by default, the verdict set is VALID / VALID WITH WARNINGS / INVALID, and the call costs $0.002 USDC via x402. However, 'Offline' sits awkwardly against openWorldHint=true and against its own 'url= of a raw file' input route, leaving the agent unsure whether network fetching actually occurs.

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 paragraph is dense but front-loaded, opening with purpose and then layering parse rules, lint rules, masking, and price in a sensible order. It is long for a one-parameter tool, and the trailing parameter mentions (expand, mask, url) consume space for options that are not actually callable.

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?

For a single-parameter, read-only linter with no output schema, this is unusually complete: it enumerates the exact dotenv constructs honored, the specific lint findings, the default secret-masking behavior, and the possible verdicts. What remains unsaid — the concrete JSON field names — is the only gap, and the verdict vocabulary plus the parse/lint split gives the agent enough to interpret results.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% for the single 'text' parameter, so the schema already carries the baseline. The description actively misleads by promising controls that do not exist in the schema — url=, expand=true, mask=none, mask=all — so an agent following the description could emit invalid arguments or believe it can unmask secrets when it cannot.

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 opening clause names a concrete verb and resource ('Parse a .env / dotenv file into JSON') and adds an immediately useful behavioral anchor ('the way dotenv and docker compose read it'), so an agent knows exactly what class of work this is. It never mentions the closely named sibling util_env_check, so an agent has no stated rule for choosing between the parse-and-lint tool and the check tool.

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?

Use context is implied by the parse-plus-lint framing and by 'Pass text= or url= of a raw file', which tells the agent the expected input shape. There is no explicit when-to-use, when-not-to-use, or alternative-tool routing, and no stated prerequisites for the paid x402 call beyond the price line.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources