Skip to main content
Glama

yuque_get_user

Retrieve current Yuque user profile information including account details and platform identity for authentication verification and user management.

Instructions

获取当前用户信息 (Get current user information)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The main handler function that executes the yuque_get_user tool logic: fetches current user via YuqueClient and returns JSON-formatted text content.
    async function handleGetUser(client: YuqueClient) { const user = await client.getUser(); return { content: [ { type: 'text', text: JSON.stringify(user, null, 2), }, ], }; }
  • Tool schema definition specifying name, description, and empty input schema (no parameters required).
    { name: 'yuque_get_user', description: '获取当前用户信息 (Get current user information)', inputSchema: { type: 'object', properties: {}, }, },
  • Registration/dispatch case in the central handleTool switch statement that routes calls to yuque_get_user's handler.
    case 'yuque_get_user': return await handleGetUser(client);
  • Supporting YuqueClient method that performs the actual API request to retrieve the current user information.
    async getUser(): Promise<YuqueUser> { return this.request<YuqueUser>('/user'); }

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

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