Skip to main content
Glama

compare_env_runtime_parsers

Read-onlyIdempotent

Compares parsed byte lengths and FNV-1a hashes across Node dotenv, docker --env-file, and POSIX sh/compose to reveal .env parser divergence while redacting secret values.

Instructions

Compares exact parsed byte lengths and FNV-1a hashes across Node dotenv v16, docker run --env-file, and POSIX sh / docker compose, catching inline # truncation, literal quotes, $ bcrypt corruption, and CRLF \r bugs while strictly redacting raw 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": "compare_env_runtime_parsers"
  }
}

Input Schema

NameRequiredDescriptionDefault
envTextNoRaw .env content string to compare across all three runtime parsers.
envFilePathNoOptional local path to a .env file on disk (values are read locally and strictly redacted in output).

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 declare readOnlyHint, idempotentHint, destructiveHint=false and closed-world, so safety is covered. The description adds genuinely non-structured behavior: raw secret values are "strictly redacted" in output, which tells the agent it is safe to surface results, and it discloses the comparison is hash/length based rather than plaintext-diff based. It does not say what happens when both inputs are omitted or how the two runtimes are reported side by side.

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 front-loaded sentence that names the action, the runtimes, the bug classes, and the redaction guarantee with no filler. It is dense but each clause earns its place; a light structural break would improve scannability but nothing is wasteful.

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

Completeness4/5

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

For a two-parameter, no-output-schema tool, the description conveys both the input domain (.env content/path) and the shape of the result (byte lengths + FNV-1a hashes per runtime, secrets redacted), which substitutes for a missing output schema. The residual gap is that neither parameter is required yet the description never says an agent must supply envText or envFilePath — one of them is implicitly mandatory.

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 both parameters (envText, envFilePath) are already documented with their purpose and the redaction guarantee, so the schema carries the load. The description repeats the redaction behavior but adds no new syntax, precedence, or conflict-handling semantics beyond what the schema states. 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?

States a specific verb ("Compares") with the exact resource ("exact parsed byte lengths and FNV-1a hashes") and enumerates the three target runtimes: Node dotenv v16, docker run --env-file, and POSIX sh / docker compose. The catalog of map-specific bug classes (inline # truncation, literal quotes, $ bcrypt corruption, CRLF \r) further pins down what the comparison is for, so an agent can distinguish this from sibling tools like audit_env_compose_code_drift without opening any schema.

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?

Implied usage is clear from the bug list — use this to learn how three runtimes will interpret the same .env content — but there is no explicit when-to-use/when-not statement and no routing among the sibling tools (audit_env_compose_code_drift and detect_client_bundle_secret_leaks are adjacent in scope). The agent must infer the selection criteria rather than read them.

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