Skip to the page

Retrieve account

Who is asking and every workspace they can open. For a person it also joins any workspace they were invited to.

account_get
Needs the scopeaccount:read
Only reads

This tool takes no arguments.

Returns

The answer comes back under structuredContent, with the same JSON as text in content. A call the API refuses comes back with isError set, and the code and the message under structuredContent.error. MCP shows how to connect a client.

  • object"account"

    Always account.

  • kindstring

    How the request was signed: session for a signed-in person, key for an API key.

    One ofsessionkeydemo

  • userobject | null

    The signed-in person, or null when an API key is asking.

  • user.idstring

    The id of the person.

  • user.namestring

    The name of the person.

  • user.emailstring

    The address of the person.

  • user.imagestring | null

    The address of their picture, or null.

  • workspacesobject[]

    The workspaces this credential can act in.

  • workspaces[].idstring

    The id of the workspace.

  • workspaces[].namestring

    The name of the workspace.

  • workspaces[].rolestring | null

    The role of the person there, or null for an API key.

    One ofowneradminmemberviewer

  • workspaces[].currentboolean

    Whether this is the workspace the request acts in.