get_stats
Retrieve your character's current HP, MP, XP, level, gold, and class from Habitica.
Instructions
Get user stats only (HP, MP, XP, level, gold, class).
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": "get_stats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- index.js:64-68 (registration)Tool definition/registration for 'get_stats' in the tools array. Describes that it returns user stats (HP, MP, XP, level, gold, class) with no input parameters.
{ name: "get_stats", description: "Get user stats only (HP, MP, XP, level, gold, class).", inputSchema: { type: "object", properties: {} }, }, - index.js:373-373 (handler)Handler function for 'get_stats'. Calls the Habitica API GET /user endpoint and extracts the .data?.stats field from the response, returning it as formatted JSON.
get_stats: async () => json((await api("GET", "/user")).data?.stats),