Skip to main content
Glama

airlock_rehydrate

Read-onlyIdempotent

Restore <ENTITY_N> placeholders in an in-memory string to their original raw values from the session vault after dehydration or scrubbing.

Instructions

Restore <ENTITY_N> placeholders in an in-memory string to their original values from the session vault.

Purpose & Behavior:
Looks up each `<ENTITY_N>` token in `text` (matching case-insensitively and tolerating extra inner
whitespace such as `< api_key_1 >`) against the current in-memory session vault and substitutes the
original raw string. Tokens that do not exist in the vault are left unchanged. Does not modify the vault.

When to Use:
- Use after `airlock_dehydrate` or `airlock_scrub_text` when an in-memory payload needs its original
  values restored.
- WARNING: The response contains raw unmasked secrets. Never call this on `.env` or credential file
  contents that should stay hidden from model context. Use `airlock_write_file` instead to restore
  secrets directly onto disk without returning them to the agent.

Returns:
A JSON-serializable object with `{"rehydrated_text": str, "restored_count": int}`.

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": {
      "text": "<text>"
    },
    "name": "airlock_rehydrate"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesText containing <ENTITY_N> placeholders (e.g., <API_KEY_1>, <PERSON_1>) generated earlier in the current session by airlock_dehydrate, airlock_scrub_text, or airlock_read_file.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.4.6
    • addedInput schema / properties / text / description
      Added value: +"Text containing <ENTITY_N> placeholders (e.g., <API_KEY_1>, <PERSON_1>) generated earlier in the current session by airlock_dehydrate, airlock_scrub_text, or airlock_read_file."
  2. First observedv0.1.0

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare readOnly, idempotent, non-destructive, but the description adds substantial context beyond them: case-insensitive matching, tolerance of inner whitespace like `< api_key_1 >`, unchanged behavior for unknown tokens, and the guarantee it does not modify the vault (consistent with readOnlyHint). Most importantly it warns that the response contains raw unmasked secrets and points to a safer sibling, which is the key risk an agent must know.

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?

Sectioned and front-loaded, with the core behavior in the first line and hazards and return shape after. Some of the Returns/purpose wording is slightly redundant with the schema, but nothing is wasted or out of order.

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 one-parameter tool with no output schema, the description covers matching semantics, edge cases, side-effect scope, security risk, and the exact return shape (rehydrated_text, restored_count). An agent has everything needed to decide and invoke correctly.

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 single parameter is already documented, but the description still adds real meaning: how tokens in `text` are matched (case-insensitive, whitespace tolerant) and what happens to tokens absent from the vault. That goes beyond the schema's example-based description without contradicting it.

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 description names a specific verb (restore) and resource (placeholder tokens from the session vault), and states the transformation precisely: substituting `<ENTITY_N>` tokens with original raw strings from the in-memory vault. It is clearly distinct from airlock_dehydrate (the inverse), airlock_scrub_text, and airlock_write_file, which is named as the disk-writing alternative.

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

Usage Guidelines5/5

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

It gives explicit sequencing guidance ('use after airlock_dehydrate or airlock_scrub_text'), an explicit exclusion with a stated reason (never call on .env or credential file contents), and names the correct alternative (airlock_write_file) for that case. Both when-to-use and when-not-to-use are covered with routing.

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