Tool reference

Workspace tools

The workspace.whoami MCP tool — identify the current connection.

The universal workspace.* namespace — introspection about the connection itself, not a product feature. Every workspace has this regardless of which product services it uses.

All endpoints follow the pattern POST https://mcp.vlozi.app/tools/workspace.<name> with Authorization: Bearer ls_xxx. All responses use this envelope:

{ "data": <payload>, "error": null }   // success
{ "data": null,      "error": "..." }  // failure (with HTTP 4xx/5xx)

workspace.whoami

Identify the current connection: which tenant, which plan, which credential authenticated the call, and the full set of permissions it was granted. Call this first after connecting to confirm you're in the right workspace with the access you expect — the same instinct as gh auth status or aws sts get-caller-identity.

Scope: billing:plans.read (no dedicated permission — reuses the existing bar for harmless read-only account info)

Input: none

Response: { tenant: { id, name }, plan: { id, name, ... } | null, connection: { type: "api_key" | "oauth", id: string | null, name: string | null, agentId: string | null }, permissions: string[] }

NOTE

connection.name is the API key's label (e.g. "My laptop") for a key-based connection. OAuth-issued access tokens are self-verified and never persisted server-side, so there's no row to look a name up from — connection.name is null for those. agentId reflects the x-agent-id header the client sent, if any (most native MCP clients don't send one).

curl -X POST https://mcp.vlozi.app/tools/workspace.whoami \
  -H "Authorization: Bearer $VLOZI_API_KEY"
MCP · Tool referenceEdit on GitHub