Skip to main content
Glama

env_sync_write

Non-destructive env-sync writes. action: enroll | request_share | heartbeat. Secret push/rotate are separate tools. (consolidated surface — same handlers as the legacy tools) Required per action — enroll: alias, age_pubkey, enrollment_token | request_share: target_device_id, secret_shares, device_id | heartbeat: device_id, installed_skills_hash, installed_hooks_hash.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
osNo[heartbeat]
aliasNo[enroll]
actionYeswhich operation to run
device_idNo[enroll] Optional calling device id for audit attribution. The X-Ainote-Device-Id header is the canonical source; this argument is the backwards-compatible fallback for clients that predate the header. If both are sent and disagree, the request is rejected (DEVICE_MISMATCH). [request_share] The existing device performing the re-encryption (must own access to all secret_node_ids). [heartbeat]
age_pubkeyNo[enroll]
client_hlcNo[request_share]
capabilitiesNo[enroll]
secret_sharesNo[request_share]
installed_hooksNo[heartbeat]
enrollment_tokenNo[enroll]
installed_skillsNo[heartbeat]
target_device_idNo[request_share]
claude_code_versionNo[heartbeat]
installed_hooks_hashNo[heartbeat]
installed_skills_hashNo[heartbeat]
installed_mcp_servers_hashNo[heartbeat]

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / $schema
      Added value: +"https://json-schema.org/draft/2020-12/schema"
  2. Changed2 schema fields changed
    • changedInput schema / properties / device_id / description
      Previous value: -"[request_share] The existing device performing the re-encryption (must own access to all secret_node_ids). [heartbeat]"New value: +"[enroll] Optional calling device id for audit attribution. The X-Ainote-Device-Id header is the canonical source; this argument is the backwards-compatible fallback for clients that predate the header. If both are sent and disagree, the request is rejected (DEVICE_MISMATCH). [request_share] The existing device performing the re-encryption (must own access to all secret_node_ids). [heartbeat]"
    • removedInput schema / properties / device_id / format
      Removed value: -"uuid"
  3. Added

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already convey safety profile (readOnlyHint=false, destructiveHint=false, idempotentHint=false), and the description's 'non-destructive' is consistent with destructiveHint=false. However, it adds little beyond that; it does not disclose return behavior, auth expectations, or side effects of each action. The note about 'same handlers as the legacy tools' is the only extra behavioral context.

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?

The description is dense but compact, packing action enum, exclusions, legacy context, and per-action requirements into three sentences. It is front-loaded with the core purpose and avoids fluff, though the run-on structure could be improved with bullets or clearer segmentation.

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 complex 16-parameter, 3-action consolidated tool, the description provides essential selection and invocation guidance: action modes, required fields per mode, and tool exclusions. Since no output schema exists, a brief note about return values or common errors would improve completeness, but the current information is largely sufficient for correct invocation.

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% with detailed per-action parameter descriptions, so the baseline is 3. The description adds meaningful value by listing exactly which parameters are required per action, reducing ambiguity. It does not repeat schema details, making this a useful supplement rather than redundancy.

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 clearly states the tool's purpose: non-destructive env-sync writes, enumerating the exact actions (enroll, request_share, heartbeat). It also distinguishes itself from sibling tools by explicitly noting that secret push/rotate are separate tools, which prevents agent confusion.

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 description provides explicit per-action required parameters, which guides when and how to invoke each mode. It names alternatives ('Secret push/rotate are separate tools') and mentions it is a consolidated surface with legacy handlers. It could be stronger by explicitly contrasting with env_sync_read or txn_push, but the guidance is clear for the main use cases.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources