get_mounts
Retrieve the map of mounts currently owned in Habitica to track collection progress and plan acquisitions.
Instructions
Get owned mounts map.
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_mounts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- index.js:254-258 (registration)Tool registration/definition for get_mounts in the tools array. Declares name, description, and empty inputSchema.
{ name: "get_mounts", description: "Get owned mounts map.", inputSchema: { type: "object", properties: {} }, }, - index.js:432-432 (handler)Handler function for get_mounts. Calls the Habitica API GET /user, extracts data.items.mounts, and returns it as JSON.
get_mounts: async () => json((await api("GET", "/user")).data?.items?.mounts), - index.js:53-54 (helper)Helper functions: 'json' serializes an object to pretty-printed JSON, 'ok' wraps text into MCP content response format.
const ok = (text) => ({ content: [{ type: "text", text }] }); const json = (obj) => ok(JSON.stringify(obj, null, 2));