Skip to main content
Glama

compare_environments

Compare variables between two environments to reveal configuration differences, such as staging versus production, and optionally include masked values in the diff.

Instructions

Show a diff of variables between two environments — useful for spotting what differs between staging and production.

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": {
      "environment_id_a": "<environment_id_a>",
      "environment_id_b": "<environment_id_b>"
    },
    "name": "compare_environments"
  }
}

Input Schema

NameRequiredDescriptionDefault
show_valuesNoInclude values in the diff (secrets will be masked)
environment_id_aYesFirst environment _id
environment_id_bYesSecond environment _id

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.6-beta

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full burden, and 'Show a diff' at least establishes that this is a non-mutating read operation. It says nothing about error behavior for invalid or cross-workspace IDs, the ordering/format of the diff, or the fact that values are omitted unless requested — that masking detail lives only in the schema.

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 sentence that front-loads the operation and appends the use case after an em-dash. Nothing is redundant and nothing could be trimmed without losing information.

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 small three-parameter read tool with a fully described schema, the definition gives enough to call it correctly. The only real omission is what the returned diff looks like, which matters slightly more here because there is no output schema.

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 three parameters (including the show_values secret-masking behavior) are already documented in the schema. The description adds no meaning beyond it, which is the expected baseline when the schema does the work.

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?

The description states a specific verb and resource ('Show a diff of variables between two environments'), which is far more informative than the bare name. It does not explicitly contrast itself with adjacent tools such as diff_responses or list_environments, but the verb+resource pairing is unambiguous on its own.

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 clause 'useful for spotting what differs between staging and production' gives a concrete usage scenario, so the when-to-use is implied rather than stated. There is no guidance on when not to use it, no mention of alternatives, and no prerequisites (e.g. whether both environments must belong to the same workspace).

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