Skip to main content
Glama

user_list

List all users in Crafty Controller with details like username, permissions, and creation date. Use the ids_only parameter to retrieve just user IDs.

Instructions

List all Crafty Controller users. Returns user_id, username, enabled, superuser, lang, and creation date.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ids_onlyNoIf true, returns only user IDs for a minimal response

Implementation Reference

  • The handler function for the 'user_list' tool.
    async ({ ids_only }) => {
      try {
        const path = ids_only ? "/users?ids=true" : "/users";
        const data = await client.get(path);
        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 };
      }
    }
  • Registration of the 'user_list' tool with its schema and handler.
    server.tool(
      "user_list",
      "List all Crafty Controller users. Returns user_id, username, enabled, superuser, lang, and creation date.",
      {
        ids_only: z
          .boolean()
          .optional()
          .describe("If true, returns only user IDs for a minimal response"),
      },

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