LoomalLoomal
Concepts

Scopes

Permission scopes for API access

Scopes control what an identity's API key can do. They are set when creating an identity.

Available Scopes

ScopeAllows
mail:readRead messages and threads
mail:sendSend and reply to emails
mail:manageUpdate labels, delete messages and threads
vault:readList and retrieve credentials, generate TOTP codes
vault:writeStore and delete credentials
identity:signSign data with the identity's Ed25519 private key
identity:verifyVerify signatures against any did:web identity

Scope Enforcement

If an API key attempts an action outside its scopes, the API returns 403 Forbidden:

{
  "error": "forbidden",
  "message": "Missing required scope: mail:send",
  "status": 403
}

MCP Tool Visibility

When using the MCP server, only tools matching the identity's scopes are available:

ScopeMCP Tools
Always availableidentity.whoami
identity:signidentity.sign
identity:verifyidentity.verify
mail:readmail.list_messages, mail.get_message, mail.list_threads, mail.get_thread
mail:sendmail.send, mail.reply
mail:managemail.update_labels, mail.delete_message, mail.delete_thread
vault:readvault.list, vault.get, vault.totp
vault:writevault.store, vault.delete

Recommendations

Use CaseRecommended Scopes
Read-only monitoring agentmail:read
Agent that reads and respondsmail:read, mail:send, mail:manage
Notification sender onlymail:send
Agent with credential accessmail:read, mail:send, vault:read, vault:write
Full access agentAll scopes

On this page