Skip to main content
Glama

get_myself

Retrieve authenticated user details from Backlog to verify identity and access permissions for project management tasks.

Instructions

Returns information about the authenticated user

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The getMyselfTool factory function defines the 'get_myself' MCP tool, including its schema, description, and handler. The handler asynchronously invokes backlog.getMyself() to fetch the authenticated user's details.
    export const getMyselfTool = ( backlog: Backlog, { t }: TranslationHelper ): ToolDefinition< ReturnType<typeof getMyselfSchema>, (typeof UserSchema)['shape'] > => { return { name: 'get_myself', description: t( 'TOOL_GET_MYSELF_DESCRIPTION', 'Returns information about the authenticated user' ), schema: z.object(getMyselfSchema(t)), outputSchema: UserSchema, importantFields: ['id', 'userId', 'name', 'roleType'], handler: async () => backlog.getMyself(), }; };
  • Defines the input schema for the get_myself tool, which accepts no parameters (empty object).
    const getMyselfSchema = buildToolSchema((_t) => ({}));
  • Zod schema defining the output structure for user information returned by the get_myself tool.
    export const UserSchema = z.object({ id: z.number(), userId: z.string(), name: z.string(), roleType: RoleTypeSchema, lang: LanguageSchema, mailAddress: z.string(), lastLoginTime: z.string(), });
  • The get_myself tool is instantiated and registered within the 'space' toolset group in the allTools export.
    getSpaceTool(backlog, helper), getUsersTool(backlog, helper), getMyselfTool(backlog, helper), ], },

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

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