Skip to main content
Glama

get_issue_types

Retrieve available issue types for a Backlog project to categorize and organize tasks effectively. Specify project ID or key to get relevant issue type options.

Instructions

Returns list of issue types for a project

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
projectIdNoThe numeric ID of the project (e.g., 12345)
projectKeyNoThe key of the project (e.g., 'PROJECT')

Implementation Reference

  • The core handler function that executes the tool logic: resolves the project ID or key using resolveIdOrKey utility and calls the Backlog client's getIssueTypes method.
    handler: async ({ projectId, projectKey }) => { const result = resolveIdOrKey( 'project', { id: projectId, key: projectKey }, t ); if (!result.ok) { throw result.error; } return backlog.getIssueTypes(result.value); },
  • Input schema for the tool, defining optional projectId (number) or projectKey (string) parameters with descriptions.
    const getIssueTypesSchema = buildToolSchema((t) => ({ projectId: z .number() .optional() .describe( t( 'TOOL_GET_GIT_REPOSITORIES_PROJECT_ID', 'The numeric ID of the project (e.g., 12345)' ) ), projectKey: z .string() .optional() .describe( t( 'TOOL_GET_GIT_REPOSITORIES_PROJECT_KEY', "The key of the project (e.g., 'PROJECT')" ) ), }));
  • Exports the getIssueTypesTool factory function that constructs the complete ToolDefinition object for the 'get_issue_types' tool, including name, description, input/output schemas, important fields, and handler.
    export const getIssueTypesTool = ( backlog: Backlog, { t }: TranslationHelper ): ToolDefinition< ReturnType<typeof getIssueTypesSchema>, (typeof IssueTypeSchema)['shape'] > => { return { name: 'get_issue_types', description: t( 'TOOL_GET_ISSUE_TYPES_DESCRIPTION', 'Returns list of issue types for a project' ), schema: z.object(getIssueTypesSchema(t)), outputSchema: IssueTypeSchema, importantFields: ['id', 'name'], handler: async ({ projectId, projectKey }) => { const result = resolveIdOrKey( 'project', { id: projectId, key: projectKey }, t ); if (!result.ok) { throw result.error; } return backlog.getIssueTypes(result.value); }, }; };
  • Registers the get_issue_types tool by calling getIssueTypesTool and adding it to the 'issue' toolset group in the allTools function.
    getIssueTypesTool(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