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
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/getMyself.ts:9-27 (handler)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(), }; };
- src/tools/getMyself.ts:7-7 (schema)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(), });
- src/tools/tools.ts:70-74 (registration)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), ], },