Skip to Content
Docs
ReferenceRead

whoami

Who am I

Returns the awen user and the awen organisation this connection works in, what the connection may do, the organisation's plan, and the usage the user sees in awen. usage is null where the organisation hides it from members. plan or usage is null when awen can't read it right now. usage does not say whether a given request fits.

Arguments

It takes no argument.

Call

A host sends a tools/call request to the MCP endpoint, with the arguments it needs.

{  "jsonrpc": "2.0",  "id": 1,  "method": "tools/call",  "params": {    "name": "whoami",    "arguments": {}  }}

Arguments schema

{  "type": "object",  "properties": {},  "required": []}

Answer

The answer's structuredContent follows this schema, and its text holds the same JSON.

{  "type": "object",  "properties": {    "id": {      "type": "string"    },    "user": {      "type": "object",      "properties": {        "id": {          "type": "string"        },        "name": {          "type": [            "string",            "null"          ]        },        "email": {          "type": [            "string",            "null"          ]        }      },      "required": [        "id",        "name",        "email"      ],      "additionalProperties": false    },    "organisation": {      "type": "object",      "properties": {        "id": {          "type": "string"        },        "name": {          "type": "string"        }      },      "required": [        "id",        "name"      ],      "additionalProperties": false    },    "scopes": {      "type": "array",      "items": {        "type": "string",        "enum": [          "awen:read",          "awen:write",          "awen:create"        ]      }    },    "plan": {      "anyOf": [        {          "type": "object",          "properties": {            "name": {              "type": "string"            }          },          "required": [            "name"          ],          "additionalProperties": false        },        {          "type": "null"        }      ]    },    "usage": {      "anyOf": [        {          "type": "object",          "properties": {            "kind": {              "type": "string",              "enum": [                "remaining",                "organisation_managed",                "unlimited",                "blocked"              ]            },            "percent_left": {              "anyOf": [                {                  "type": "integer",                  "minimum": 0,                  "maximum": 100                },                {                  "type": "null"                }              ]            },            "left_usd": {              "type": [                "number",                "null"              ]            },            "text": {              "type": "string"            }          },          "required": [            "kind",            "percent_left",            "left_usd",            "text"          ],          "additionalProperties": false        },        {          "type": "null"        }      ]    }  },  "required": [    "id",    "user",    "organisation",    "scopes",    "plan",    "usage"  ],  "additionalProperties": false}