Skip to main content
Glama

generate_sanitized_env_example

Read-onlyIdempotent

Generates a zero-secret .env.example and escaped fail-fast docker-compose.yml snippet from local config, preventing server secret leaks.

Instructions

Generates a zero-secret .env.example template (automatically renaming leaked NEXT_PUBLIC_/VITE_ server secrets) and an escaped fail-fast docker-compose.yml snippet from local config structure without leaking any secret values.

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": "generate_sanitized_env_example"
  }
}

Input Schema

NameRequiredDescriptionDefault
envTextNoOptional raw .env text whose keys and types will be converted into safe placeholders.
codeTextNoOptional source code text.
composeTextNoOptional docker-compose.yml text.
envFilePathNoOptional local path to .env file.
workspaceDirNoOptional project directory to read .env, .env.example, docker-compose.yml, and source references.
envExampleTextNoOptional existing .env.example text.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive, closed-world), yet the description still adds real behavioral information: outputs are zero-secret, leaked public-prefixed server secrets are automatically renamed, and the compose snippet is escaped and fail-fast. It does not clarify whether artifacts are written to disk versus returned, though readOnlyHint resolves that ambiguity.

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?

A single dense sentence that front-loads the output artifact and the no-secret guarantee, then adds the two salient behaviors. No filler sentences.

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?

With six all-optional parameters and no output schema, the definition never says what happens when no input is supplied or which input wins when several are provided, and it does not sketch the return shape beyond naming the artifacts. Adequate but leaves real gaps for a multi-input generation 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?

Schema description coverage is 100%, so all six optional parameters are already documented; the description only loosely implies that env keys/types become placeholders and that inputs come from local config structure. It adds no guidance on how the six inputs interact or take precedence, so it stays at baseline.

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?

States a specific verb (generates) plus two concrete artifacts (.env.example template and docker-compose.yml snippet) and adds distinguishing detail about renaming leaked NEXT_PUBLIC_/VITE_ secrets and escaping the fail-fast compose output. This clearly separates it from the audit/compare/detect siblings.

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?

The description implies the use case (producing safe templates from local config structure) but never says when to pick this over siblings like detect_client_bundle_secret_leaks, nor does it state prerequisites or when not to use it. Usage is inferable, not explicit.

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