get_user_profile
Retrieve the complete profile of the authenticated Habitica user, including stats, preferences, inventory, party details, and other account data.
Instructions
Get the authenticated user's full profile (stats, prefs, items, party, etc).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- index.js:59-63 (registration)Tool registration in the `tools` array defining the tool's name, description, and input schema.
{ name: "get_user_profile", description: "Get the authenticated user's full profile (stats, prefs, items, party, etc).", inputSchema: { type: "object", properties: {} }, }, - index.js:62-63 (schema)Input schema for get_user_profile: no parameters required.
inputSchema: { type: "object", properties: {} }, }, - index.js:372-372 (handler)Handler that makes a GET request to /user endpoint and returns the full user profile data.
get_user_profile: async () => json((await api("GET", "/user")).data), - index.js:54-54 (helper)Helper function `json` used by the handler to format the response as pretty-printed JSON.
const json = (obj) => ok(JSON.stringify(obj, null, 2)); - index.js:53-53 (helper)Helper function `ok` that wraps text into the MCP content response format.
const ok = (text) => ({ content: [{ type: "text", text }] });