Skip to main content
Glama

gateway.sync_environment

Synchronize host environment details by detecting the platform and probing installed CLIs to help capability matching prefer CLIs over MCP servers.

Instructions

Sync environment information from the host. Detects the platform (mac/wsl/linux/windows) and probes for installed CLIs. This information is used to prefer CLIs over MCP servers when matching capabilities.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "gateway.sync_environment"
  }
}

Input Schema

NameRequiredDescriptionDefault
platformNoOverride detected platform (optional)
detected_clisNoOverride detected CLIs (optional)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv3.0.1
    • addedInput schema / properties / detected_clis / anyOf
      Added value: +[
      +  {
      +    "items": {
      +      "type": "string"
      +    },
      +    "type": "array"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / detected_clis / items
      Removed value: -{
      -  "type": "string"
      -}
    • removedInput schema / properties / detected_clis / type
      Removed value: -"array"
    • addedInput schema / properties / platform / anyOf
      Added value: +[
      +  {
      +    "enum": [
      +      "mac",
      +      "wsl",
      +      "linux",
      +      "windows"
      +    ],
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / platform / enum
      Removed value: -[
      -  "mac",
      -  "wsl",
      -  "linux",
      -  "windows"
      -]
    • removedInput schema / properties / platform / type
      Removed value: -"string"
  2. First observedv1.18.0

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are supplied, so the description bears the full burden. It does disclose that the tool actively probes the host for installed CLIs, which signals a potentially slow, side-effecting detection operation rather than a pure read, but it never says whether results are persisted, whether calling it repeatedly is safe, or whether permission/security prompts may occur during probing.

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?

Two short sentences with zero filler. The action is front-loaded, followed by the mechanism and the purpose, in exactly the order an agent needs to decide and act.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema and no annotations, so the description should ideally describe what the sync returns (the detected platform and CLI list) and whether results are cached or stored. It explains the effect on capability matching but leaves the response shape and persistence behavior to inference.

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 description coverage is 100%, so both optional override parameters (platform, detected_clis) are already documented in the schema. The description adds no override information, but with full coverage the baseline of 3 is met or slightly exceeded because the description establishes that detection is the default behavior those parameters override.

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 names a specific verb and resource ('Sync environment information from the host') and then enumerates exactly what that entails: platform detection and CLI probing. An agent can tell this apart from gateway.health or gateway.config_status, though it does not explicitly contrast itself with the nearby gateway.refresh sibling.

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?

Usage context is implied rather than stated: the line about preferring CLIs over MCP servers when matching capabilities explains why the tool exists, which hints at when it is useful. There is no explicit 'call this before X', no exclusion of alternatives, and no statement about how often it should be re-run.

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