Skip to main content
Glama

capture_environment

Saves a labeled snapshot of current shell environment variables to record shell state before changes or compare environments later.

Instructions

Capture a snapshot of the current shell environment variables with a named label

Input Schema

NameRequiredDescriptionDefault
nameYesLabel for this snapshot (e.g. 'before-install', 'clean-state')

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.2.5

TDQS

B3.1/5.0
Behavior2/5

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

No annotations exist, so the description carries the full behavioral burden. It doesn't say whether snapshots persist, whether reusing a name overwrites or errors, whether secret-bearing variables are included, or what the call returns — all material for a capture-and-store operation.

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 tight, front-loaded sentence with no filler — verb and resource appear immediately. It is arguably under-specified rather than padded, but as a structural matter it is efficient.

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?

With one required parameter, no annotations and no output schema, the description covers enough to invoke the tool correctly. It could say more about persistence and return value, which keeps it below a 5.

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 coverage is 100% and the single parameter is fully documented with usage examples, so the schema does the work. The phrase 'with a named label' adds nothing beyond the existing 'name' description; baseline 3 applies.

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 specific verb and resource: 'capture a snapshot of the current shell environment variables', with the added qualifier 'with a named label'. This distinguishes it in spirit from read-only siblings like get_environment_context and diff_environment, but the description never names those alternatives, so differentiation is left to inference.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no guidance on when to use this versus get_environment_context, diff_environment, or save_workspace_profile, all of which plausibly overlap with state capture. The only hint of intent lives in the schema example labels ('before-install', 'clean-state'), not in the description.

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