Show the connected CookiePal account
whoamiReports the CookiePal account this client is signed in as: the user, the organisation, the domain tools act on by default, and each domain’s plan and whether its page-view limit has been reached. Use it to confirm a connection, or to find out which domain other tools will use when none is given.
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 |
|---|---|---|---|
| domain | No | The domain to report on. Defaults to the organisation’s current one. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| Yes | |||
| domain | Yes | ||
| userId | Yes | ||
| domains | No | ||
| domainPlans | Yes | Each domain this user can see, with its plan and whether this month’s page-view limit has been reached. Plans are per domain, not per account. | |
| organisationId | Yes |