Loftlancer Docs
MCPTools

variable_read

MCP tool for the variable.read action.

MCP tool
variable_read
Canonical action
variable.read
Description
Read variable metadata
OAuth scopes
mcp:toolsvariables:read
Org roles
owner, manager, member
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_read",
  "definitions": {
    "variable_read": {
      "type": "object",
      "properties": {
        "organizationId": {
          "type": "string",
          "minLength": 1
        },
        "organizationSlug": {
          "type": "string",
          "minLength": 1
        },
        "environmentId": {
          "type": "string",
          "format": "uuid"
        },
        "id": {
          "type": "string",
          "format": "uuid"
        }
      },
      "additionalProperties": false
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#"
}

Example request

{
  "name": "variable_read",
  "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).