Skip to main content
Get the current authenticated user’s profile information

Tool details

FieldValue
Nameget_current_user
GroupUsers

Playground

Input schema

Input schema
{
  "type": "object",
  "properties": {},
  "additionalProperties": false,
  "description": "Input schema for the get_current_user tool.",
  "$schema": "http://json-schema.org/draft-07/schema#"
}

Output schema

Output schema
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique identifier for the returned record."
    },
    "email": {
      "type": [
        "string",
        "null"
      ],
      "description": "The email associated with this tool result."
    },
    "name": {
      "type": [
        "string",
        "null"
      ],
      "description": "Human-readable name for the returned record."
    },
    "avatar_src": {
      "type": [
        "string",
        "null"
      ],
      "description": "The avatar src associated with this tool result."
    },
    "role": {
      "type": "array",
      "items": {
        "type": "string",
        "description": "One role item associated with this tool result."
      },
      "description": "The role associated with this tool result."
    },
    "approved": {
      "type": "boolean",
      "description": "The approved associated with this tool result."
    },
    "default_project": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "description": "Unique identifier for the returned record."
        },
        "name": {
          "type": "string",
          "description": "Human-readable name for the returned record."
        }
      },
      "required": [
        "id",
        "name"
      ],
      "additionalProperties": false,
      "description": "Structured default project details associated with this tool result."
    },
    "subscription": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "description": "Unique identifier for the returned record."
        },
        "user_id": {
          "type": "string",
          "format": "uuid",
          "description": "The user id associated with this tool result."
        },
        "type": {
          "type": "string",
          "enum": [
            "pro",
            "enterprise"
          ],
          "description": "The type associated with this tool result."
        },
        "cycle": {
          "type": "string",
          "enum": [
            "monthly",
            "yearly"
          ],
          "description": "The cycle associated with this tool result."
        },
        "quantity": {
          "type": "number",
          "description": "The quantity associated with this tool result."
        },
        "expires_at": {
          "type": "string",
          "description": "The expires at associated with this tool result."
        },
        "created_at": {
          "type": "string",
          "description": "Creation timestamp in ISO 8601 format."
        },
        "canceled_at": {
          "type": [
            "string",
            "null"
          ],
          "description": "The canceled at associated with this tool result."
        }
      },
      "required": [
        "id",
        "user_id",
        "type",
        "cycle",
        "quantity",
        "expires_at"
      ],
      "additionalProperties": false,
      "description": "The subscription associated with this tool result."
    }
  },
  "required": [
    "id",
    "email",
    "name",
    "avatar_src",
    "default_project"
  ],
  "additionalProperties": false,
  "description": "Structured result returned by the get_current_user tool.",
  "$schema": "http://json-schema.org/draft-07/schema#"
}