MCPTools
variable_bulk_import
MCP tool for the variable.bulk_import action.
- MCP tool
- variable_bulk_import
- Canonical action
- variable.bulk_import
- Description
- Bulk import variables
- OAuth scopes
mcp:toolsvariables:write- Org roles
- owner, manager
- Project grant
- May require grant
Input (JSON)
Validated with Zod in @loftlancer/api/mcp. Organization context uses organizationId or organizationSlug (MCP tokens do not carry an active-org cookie).
{
"$ref": "#/definitions/variable_bulk_import",
"definitions": {
"variable_bulk_import": {
"type": "object",
"properties": {
"organizationId": {
"type": "string",
"minLength": 1
},
"organizationSlug": {
"type": "string",
"minLength": 1
},
"environmentId": {
"type": "string",
"format": "uuid"
},
"variables": {
"type": "array",
"items": {
"type": "object",
"properties": {
"key": {
"type": "string",
"minLength": 1,
"maxLength": 256
},
"value": {
"type": "string"
}
},
"required": [
"key",
"value"
],
"additionalProperties": false
}
},
"overwrite": {
"type": "boolean",
"default": false
}
},
"required": [
"environmentId",
"variables"
],
"additionalProperties": false
}
},
"$schema": "http://json-schema.org/draft-07/schema#"
}Example request
{
"name": "variable_bulk_import",
"arguments": {}
}Output
The MCP server returns a single text content block whose body is pretty-printed JSON from the underlying studio tRPC caller (runMcpTool in @loftlancer/api/mcp). Errors surface as tool errors (for example insufficient_scope, organization_required, or validation messages).