Skip to main content
Glama

Save one-time secret to a .env file

ncrypted_to_dotenv
Destructive

Writes a secret from an ncrypted single-use link directly into a local .env file as KEY=value with mode 600, keeping it hidden and warning if the file is not git-ignored.

Instructions

Open an ncrypted link and write its value into a local .env file (KEY=value, file mode 600) without showing it to you. Warns if the file isn't git-ignored.

Input Schema

NameRequiredDescriptionDefault
keyYesVariable name.
linkYes
pathNoPath to the .env file. Default: ./.env
passphraseNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.2

TDQS

B3.4/5.0
Behavior4/5

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

Annotations only declare destructiveHint=true, and the description adds real context beyond that: the file is written with mode 600, the secret is deliberately never displayed, and a warning fires if the file isn't git-ignored. It stops short of saying what happens to an existing KEY entry or whether the file is overwritten or appended.

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?

One dense sentence with the action front-loaded and the two behavioral caveats (mode 600, git-ignore warning) packed into a parenthetical/clause. Efficient, though stacking the warnings inline makes it slightly dense.

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 destructive write tool with no output schema, the description covers the safety-relevant basics (permissions, secret never shown, git-ignore check) but omits overwrite semantics, passphrase handling, and any indication of what is returned. Adequate but with clear gaps.

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 only 50%, so the description needs to compensate. It clarifies 'KEY=value' for key and that the target is a .env file for path, but says nothing about the passphrase parameter (undocumented in the schema too) or what link looks like, leaving one of four parameters with no explanation anywhere.

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?

States a concrete verb and resource: opens an ncrypted link and writes its value to a local .env file. The word 'local' implicitly distinguishes it from the sibling ncrypted_to_vercel_env, but that sibling is never named explicitly.

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 (materializing a one-time secret into a local env file) and mentions a git-ignore warning, but gives no explicit when-to-use vs. when-not guidance and never routes to alternatives like ncrypted_to_vercel_env or ncrypted_read.

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