whoami

Get current user

Free

Return the authenticated Claivra user's plan, monthly usage, remaining credits, and add-on credit balance.

How it works

First call any well-behaved MCP client should make — confirms auth works and tells the agent how many credits remain before kicking off expensive batches.

Inputs

No inputs — call with an empty arguments object.

Returns

{ uid, email, plan, monthlyUsage, creditsRemaining, addOnCredits }

Examples

Pre-flight check before a 20-image batch

Agent confirms enough credits before promising a deliverable.

{}