Skip to main content
Glama

user_update

Modify Crafty Controller user account details by specifying user ID and fields to update, enabling account management and configuration changes.

Instructions

Update a Crafty Controller user account

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
user_idYesUser ID or '@me' for the current user
updatesYesUser fields to update

Implementation Reference

  • The "user_update" tool handler implementation, which uses the client to patch a user's account data.
    server.tool(
      "user_update",
      "Update a Crafty Controller user account",
      {
        user_id: z.string().describe("User ID or '@me' for the current user"),
        updates: z.record(z.string(), z.unknown()).describe("User fields to update"),
      },
      async ({ user_id, updates }) => {
        try {
          const data = await client.patch(`/users/${user_id}`, updates);
          return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }] };
        } catch (error) {
          const msg = error instanceof Error ? error.message : String(error);
          return { content: [{ type: "text", text: `Error: ${msg}` }], isError: true };
        }
      }
    );

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/HadiCherkaoui/crafty-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server