Skip to main content
Glama
awais2o

devops-deploy-guard-mcp-server

by awais2o

Secure Environment File Writer

secure_env_writer
DestructiveIdempotent

Writes environment variables to .env files on remote servers via SSH, with path traversal protection and zero-knowledge output.

Instructions

Writes environment variables to a .env file on the remote server via SSH after path normalization.

Security guarantees:

  • Path validation using path.resolve normalization to prevent path traversal

  • Heredoc writing to prevent shell expansion

  • Zero-knowledge output (never returns or echoes secret values back)

  • Blocks write attempts to system paths (/etc, /root, etc.)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
env_varsYesKey-value pairs of environment variables to write
file_pathYesAbsolute path on remote server for .env file (e.g. '/var/www/myapp/.env')
Behavior5/5

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

The description reveals key behaviors beyond annotations: path normalization via path.resolve, heredoc writing to prevent shell expansion, zero-knowledge output, and blocking of system paths. Annotations already indicate it is write-only (readOnlyHint false) and destructive (destructiveHint true), so description adds valuable context without contradiction.

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 concise and well-structured: a clear initial sentence followed by bullet points listing security guarantees. Every sentence adds value, with no wasted words.

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 complete input schema, annotations, and absence of output schema, the description fully covers what the tool does, its security measures, and its behavior. It is sufficient for an agent to correctly invoke the tool and understand the risks.

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?

Input schema coverage is 100%, with both parameters well-described in the schema. The description adds overall context but does not enhance parameter semantics beyond what the schema already provides (e.g., absolute path example). Baseline 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 it 'Writes environment variables to a .env file on the remote server via SSH after path normalization.' This is a specific verb and resource, and it distinguishes itself from the diverse sibling tools which cover server inspection, deployment, and configuration.

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?

While the description does not explicitly list when to use or alternatives, the sibling tools are very different (e.g., inspect_server, rollback_execution), making it clear this is the tool for writing environment files. The security guarantees implicitly guide usage, but no explicit when-not guidance is provided.

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/awais2o/devops-deploy-guard-mcp-server'

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