Create environment variable

veryfront__create_environment_variable

Requires project.env_vars.write.

Access

No external-service connection is required. Use a Veryfront credential with access to the requested resources.

Call type: Can change resources.

Arguments

FieldTypeRequiredDescription and constraints
project_referencestringNoProject ID or slug
environment_idstringYesEnvironment ID to create the variable in. Format: uuid.
keystringYesVariable name (e.g., API_KEY, DATABASE_URL). A key that exists already is refused as a conflict. Minimum length: 1.
valuestringYesVariable value. It is never returned.

Example request

Send this JSON-RPC request through an initialized MCP client. Replace sample identifiers and values before calling the tool. See MCP client setup.

request.json
{  "jsonrpc": "2.0",  "id": 1,  "method": "tools/call",  "params": {    "name": "veryfront__create_environment_variable",    "arguments": {      "environment_id": "00000000-0000-4000-8000-000000000000",      "key": "example",      "value": "example"    }  }}

Result

The published output shape is summarized below. Inspect both the MCP response content and isError when handling a call.

FieldTypeRequiredDescription and constraints
idstringYesUnique identifier for the returned record. Format: uuid.
keystringYes
valuestringYesValue: "********".
has_valuebooleanYes

Full schemas

input-schema.json
{  "type": "object",  "properties": {    "project_reference": {      "type": "string",      "description": "Project ID or slug"    },    "environment_id": {      "type": "string",      "format": "uuid",      "description": "Environment ID to create the variable in."    },    "key": {      "type": "string",      "minLength": 1,      "pattern": "^[A-Za-z_][A-Za-z0-9_]*$",      "description": "Variable name (e.g., API_KEY, DATABASE_URL). A key that exists already is refused as a conflict."    },    "value": {      "type": "string",      "description": "Variable value. It is never returned."    }  },  "required": [    "environment_id",    "key",    "value"  ],  "additionalProperties": false,  "description": "Arguments for the create_environment_variable tool.",  "$schema": "http://json-schema.org/draft-07/schema#"}
output-schema.json
{  "type": "object",  "properties": {    "id": {      "type": "string",      "format": "uuid",      "description": "Unique identifier for the returned record."    },    "key": {      "type": "string"    },    "value": {      "type": "string",      "const": "********"    },    "has_value": {      "type": "boolean"    }  },  "required": [    "id",    "key",    "value",    "has_value"  ],  "additionalProperties": false,  "description": "Structured result returned by the create_environment_variable tool.",  "$schema": "http://json-schema.org/draft-07/schema#"}