Skip to main content
Glama

get_account

Retrieve current user account details from the Kapiti platform for management and operational purposes.

Instructions

Get current account information

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function for the 'get_account' tool. It sends a GET request to the '/tools/membership/account' endpoint using the configured axios client and returns the account data as formatted JSON text or an error message.
    async () => { try { const response: AxiosResponse<ApiResponse<Account>> = await apiClient.get(`/tools/membership/account`); return { content: [ { type: "text", text: JSON.stringify(response.data, null, 2), }, ], }; } catch (error) { return { content: [ { type: "text", text: handleApiError(error), }, ], isError: true, }; } }
  • src/index.ts:515-545 (registration)
    Registers the 'get_account' tool with the MCP server, specifying its name, metadata (title, description), empty input schema, and the handler function.
    server.registerTool( "get_account", { title: "Get Account", description: "Get current account information", inputSchema: {}, }, async () => { try { const response: AxiosResponse<ApiResponse<Account>> = await apiClient.get(`/tools/membership/account`); return { content: [ { type: "text", text: JSON.stringify(response.data, null, 2), }, ], }; } catch (error) { return { content: [ { type: "text", text: handleApiError(error), }, ], isError: true, }; } } );
  • TypeScript interface defining the structure of the Account object, used in the response type ApiResponse<Account> of the get_account tool.
    interface Account { id: string; name: string; description?: string; website?: string; contactEmail?: string; contactPhone?: string; createdAt: string; updatedAt: string; }

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

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