Identify the calling key
whoamiIdentify the calling key (permission: read)
Return the calling key's identity, discriminated by kind. A project key: its projectId, permission, keyId and expiresAt. An org key: its orgId, orgName, permission, keyId, expiresAt and the org's projects (id + name, ordered by name); both carry the plan (tier, tierStatus, trialEndsAt) per project. Works on any plan, also for a project key of a project below Starter, so an agent can read the plan. ANY valid key works (read is the lowest permission), so a CI job can verify its credentials and discover its permission before making other calls. An agent connection (OAuth access token): kind user, its userId and the connection (keyId, client); it has no permission of its own — list the projects and the permission on each with GET /projects.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "whoami"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||