Retrieve account
Who is asking and every workspace they can open. For a person it also joins any workspace they were invited to.
account_getThis 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.kindstringHow the request was signed:
sessionfor a signed-in person,keyfor an API key.One of
sessionkeydemouserobject | nullThe signed-in person, or
nullwhen an API key is asking.user.idstringThe id of the person.
user.namestringThe name of the person.
user.emailstringThe address of the person.
user.imagestring | nullThe address of their picture, or
null.workspacesobject[]The workspaces this credential can act in.
workspaces[].idstringThe id of the workspace.
workspaces[].namestringThe name of the workspace.
workspaces[].rolestring | nullThe role of the person there, or
nullfor an API key.One of
owneradminmemberviewerworkspaces[].currentbooleanWhether this is the workspace the request acts in.