Skip to main content
List environment variable keys without returning secret values. Optionally pass keys to check which required keys are missing.

Tool details

FieldValue
Namelist_environment_variable_keys
GroupEnvironments

Playground

Input schema

Input schema
{
  "type": "object",
  "properties": {
    "project_reference": {
      "type": "string",
      "description": "Project slug or ID"
    },
    "environment": {
      "type": "string",
      "description": "Environment ID or name"
    },
    "keys": {
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "description": "One key item supplied to the tool."
      },
      "description": "Optional exact keys to check. Missing keys are returned in missing."
    }
  },
  "required": [
    "project_reference",
    "environment"
  ],
  "additionalProperties": false,
  "description": "Input schema for the list_environment_variable_keys tool.",
  "$schema": "http://json-schema.org/draft-07/schema#"
}

Output schema

Output schema
{
  "type": "object",
  "properties": {
    "environment_id": {
      "type": "string",
      "description": "The environment id associated with this tool result."
    },
    "environment_name": {
      "type": "string",
      "description": "The environment name associated with this tool result."
    },
    "data": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for the returned record."
          },
          "key": {
            "type": "string",
            "description": "The key associated with this tool result."
          }
        },
        "required": [
          "id",
          "key"
        ],
        "additionalProperties": false,
        "description": "One data item associated with this tool result."
      },
      "description": "Primary result records returned by the tool."
    },
    "missing": {
      "type": "array",
      "items": {
        "type": "string",
        "description": "One missing item associated with this tool result."
      },
      "description": "List of missing associated with this tool result."
    }
  },
  "required": [
    "environment_id",
    "environment_name",
    "data",
    "missing"
  ],
  "additionalProperties": false,
  "description": "Structured result returned by the list_environment_variable_keys tool.",
  "$schema": "http://json-schema.org/draft-07/schema#"
}