Skip to main content
Glama
mcp-toolkit

mcp-toolkit

by isumitjha

compare_env_keys

Read-only

Compare key names in two dotenv files to find missing or extra variables and flag formatting issues, without exposing values.

Instructions

Compare the key names of two dotenv files, such as .env.example and .env.

Returns the keys the target is missing, the keys only the target has, how many keys both have, and problems in either file (duplicate keys, lines that are not KEY=value, unclosed quotes) by line number, the first 20 of each file. Values are never returned. Both files must be named .env, .env.* or *.env and be inside a directory the server was started with (--root); a relative path starts at the first of them.

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": {
      "reference": "<reference>",
      "target": "<target>"
    },
    "name": "compare_env_keys"
  }
}

Input Schema

NameRequiredDescriptionDefault
targetYesFile to check, e.g. .env
referenceYesFile that lists every key, e.g. .env.example

Output Schema

NameRequiredDescriptionDefault
extraYesKeys in the target that the reference lacks
sharedYesHow many keys both files have
missingYesKeys in the reference that the target lacks
problemsYesThe first 20 problems of each file
problem_countYesHow many problems the two files have in all

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the readOnlyHint/openWorldHint=false annotations, the description discloses the confidentiality guarantee ("Values are never returned"), the output cap ("the first 20 of each file"), and the exact classes of problems reported with line numbers (duplicate keys, non-KEY=value lines, unclosed quotes). The access constraint tying paths to the server's --root directory adds essential operational context the annotations do not carry.

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?

Information is front-loaded: purpose first, then return shape, then access constraints. The middle sentence is a long comma-chained enumeration with a dense parenthetical, which is slightly heavy but every clause carries substantive information rather than filler.

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 two-parameter read-only comparison tool with an output schema, the description covers everything an agent needs: what is compared, what is excluded (values), truncation behavior, error reporting, and the path/root rules that would otherwise cause failed calls. No material gap remains.

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

Parameters4/5

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

Schema coverage is 100% and the schema already labels target as "File to check" and reference as "File that lists every key," so the baseline would be 3. The description earns above baseline by adding the file-naming constraint, the --root containment requirement, and how relative paths resolve across multiple roots — meaning the schema does not convey.

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 first sentence names a specific verb ("Compare") and a precisely bounded resource ("key names of two dotenv files"), and immediately clarifies that only key names are compared, not values. This is instantly distinguishable from the unrelated siblings check_tools and find_port_listeners.

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?

The example pairing of .env.example as reference and .env as target gives a concrete usage context, and the closing sentence states hard preconditions (both files must match .env, .env.* or *.env and live under --root) plus relative-path resolution. It stops short of stating when to prefer this over an alternative or any explicit exclusion, so it is clear context rather than full routing guidance.

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

Deploy Server

Other Tools