Skip to main content
Glama

MCP User Profile Management Server

by SLdragon

list_users

Retrieve and display all user profiles stored in the MCP User Profile Management Server to manage and review account information effectively.

Instructions

List all user profiles currently stored in the system

Input Schema

NameRequiredDescriptionDefault

No arguments

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": {}, "type": "object" }

Implementation Reference

  • The handler function for the 'list_users' tool. It dynamically imports storage.js, retrieves the list of users, and returns a formatted success response with the user data in JSON.
    async () => { try { const { storage } = await import('../storage.js'); return utils.createSuccessResponse( `All user profiles (${storage.users.length} total):\n${JSON.stringify(storage.users, null, 2)}` ); } catch (error) { return utils.createErrorResponse(`Error listing users: ${error.message}`); } }
  • Input schema for the 'list_users' tool, which is an empty object indicating no input parameters are required.
    {},
  • The server.tool() call inside listUsersTool() that registers the 'list_users' tool on the MCP server, providing name, description, schema, and handler.
    return server.tool( "list_users", "List all user profiles currently stored in the system", {}, async () => { try { const { storage } = await import('../storage.js'); return utils.createSuccessResponse( `All user profiles (${storage.users.length} total):\n${JSON.stringify(storage.users, null, 2)}` ); } catch (error) { return utils.createErrorResponse(`Error listing users: ${error.message}`); } } );
  • index.js:17-17 (registration)
    Invocation of the listUsersTool function to register the 'list_users' tool on the main MCP server instance.
    listUsersTool(server);

Other Tools

Related Tools

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/SLdragon/mcp-elicitation-server'

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