Skip to main content
Glama
fleagne

Backlog MCP Server

by fleagne

backlog_get_issues

Retrieve and filter Backlog issues by project, assignee, status, and more using the Backlog Issues API. Supports pagination, sorting, and date-based searches.

Instructions

Performs list issue get using the Backlog Issues API. Supports pagination, content filtering. Maximum 20 results per request, with offset for pagination.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
assigneeIdNoAssignee ids
countNoNumber of results (1-100, default 20)
createdSinceNoStart date of created date (YYYY-MM-DD format)
createdUntilNoEnd date of created date (YYYY-MM-DD format)
keywordNoKeyword for searching
offsetNoOffset for pagination
orderNoSort orderdesc
priorityIdNoPriority ids
projectIdNoProject ids
sortNoAttribute name for sorting
statusIdNoStatus ids

Implementation Reference

  • The handleGetIssues function is the core handler for the 'backlog_get_issues' MCP tool. It parses input arguments using IssuesParamsSchema, calls issueService.getIssues to fetch data, formats the response as MCP content blocks, and handles validation and general errors appropriately.
    const handleGetIssues: ToolHandler = async (args) => {
    	try {
    		try {
    			const validatedParams = IssuesParamsSchema.parse(args);
    
    			const text = await issueService.getIssues(validatedParams);
    
    			return {
    				content: [
    					{
    						type: "text",
    						text: `Results for your query:\n${text}`,
    					},
    				],
    				isError: false,
    			};
    		} catch (validationError) {
    			throw new ValidationError(
    				`Invalid parameters: ${validationError instanceof Error ? validationError.message : String(validationError)}`,
    			);
    		}
    	} catch (error) {
    		return {
    			content: [
    				{
    					type: "text",
    					text: `Error: ${formatError(error)}`,
    				},
    			],
    			isError: true,
    		};
    	}
    };
  • The toolHandlers export maps the tool name 'backlog_get_issues' to its handler function handleGetIssues, serving as the registration point for the MCP tool.
    export const toolHandlers: Record<ToolName, ToolHandler> = {
    	backlog_get_projects: handleGetProjects,
    	backlog_get_project: handleGetProject,
    	backlog_get_issues: handleGetIssues,
    	backlog_get_issue: handleGetIssue,
    	backlog_add_issue: handleAddIssue,
    	backlog_update_issue: handleUpdateIssue,
    	backlog_delete_issue: handleDeleteIssue,
    	backlog_get_wikis: handleGetWikis,
    	backlog_get_wiki: handleGetWiki,
    	backlog_add_wiki: handleAddWiki,
    	backlog_update_wiki: handleUpdateWiki,
    	backlog_delete_wiki: handleDeleteWiki,
    };
  • Defines the MCP Tool object for 'backlog_get_issues', including its name, description, and inputSchema derived via convertZodToJsonSchema from the Zod IssuesParamsSchema.
    export const ISSUES_TOOL: Tool = createTool(
    	"backlog_get_issues",
    	"Performs list issue get using the Backlog Issues API. " +
    		"Supports pagination, content filtering. " +
    		"Maximum 20 results per request, with offset for pagination.",
    	IssuesParamsSchema,
    );
  • Zod schema definition for input parameters of the 'backlog_get_issues' tool, composed from base parameter schemas including pagination, sorting, filtering, dates, entity IDs, conditions, and keywords.
    export const IssuesParamsSchema = BaseParamsSchema.merge(DateRangeSchema)
    	.merge(EntityIdsSchema)
    	.merge(ConditionSchema)
    	.merge(SortingSchema)
    	.merge(KeywordSchema);
  • Custom hardcoded JSON schema for IssuesParamsSchema input validation in the MCP tool definition, providing detailed properties for pagination, sorting, filtering, and more.
    if (isIssuesParamsSchema) {
    	return {
    		type: "object" as const,
    		properties: {
    			offset: {
    				type: "number",
    				description: "Offset for pagination",
    				default: 0,
    			},
    			count: {
    				type: "number",
    				description: "Number of results (1-100, default 20)",
    				default: 20,
    				minimum: 1,
    				maximum: 100,
    			},
    			keyword: {
    				type: "string",
    				description: "Keyword for searching",
    			},
    			sort: {
    				type: "string",
    				description: "Attribute name for sorting",
    				enum: [
    					"issueType",
    					"category",
    					"version",
    					"milestone",
    					"summary",
    					"status",
    					"priority",
    					"attachment",
    					"sharedFile",
    					"created",
    					"createdUser",
    					"updated",
    					"updatedUser",
    					"assignee",
    					"startDate",
    					"dueDate",
    					"estimatedHours",
    					"actualHours",
    					"childIssue",
    				],
    			},
    			order: {
    				type: "string",
    				description: "Sort order",
    				enum: ["asc", "desc"],
    				default: "desc",
    			},
    			statusId: {
    				type: "array",
    				description: "Status ids",
    				items: {
    					type: "number",
    				},
    			},
    			assigneeId: {
    				type: "array",
    				description: "Assignee ids",
    				items: {
    					type: "number",
    				},
    			},
    			createdSince: {
    				type: "string",
    				description: "Start date of created date (YYYY-MM-DD format)",
    			},
    			createdUntil: {
    				type: "string",
    				description: "End date of created date (YYYY-MM-DD format)",
    			},
    			priorityId: {
    				type: "array",
    				description: "Priority ids",
    				items: {
    					type: "number",
    				},
    			},
    			projectId: {
    				type: "array",
    				description: "Project ids",
    				items: {
    					type: "number",
    				},
    			},
    		},
    	};
    }
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden. It discloses key behavioral traits: 'Supports pagination' (implied offset/count usage), 'content filtering' (hints at parameter usage), and 'Maximum 20 results per request' (a rate/limit constraint). However, it misses details like authentication needs, error handling, or response format. For a read operation with 11 parameters, this is adequate but not comprehensive.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is front-loaded with the core purpose and efficiently lists key features in two sentences. Every sentence adds value: the first states the action, and the second covers pagination, filtering, and limits. There's no redundant information, though it could be slightly more structured (e.g., bullet points).

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the complexity (11 parameters, no annotations, no output schema), the description is moderately complete. It covers the tool's purpose and key behaviors but lacks details on output format, error cases, or prerequisites. For a list operation with filtering, this is minimally viable but leaves gaps that could hinder agent usage without trial-and-error.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema fully documents all 11 parameters. The description adds marginal value by mentioning 'pagination' (relates to offset/count) and 'content filtering' (hints at assigneeId, keyword, etc.), but doesn't provide additional syntax or format details beyond what the schema already specifies. With high schema coverage, the baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool 'Performs list issue get using the Backlog Issues API', which specifies the verb ('list issue get') and resource ('Backlog Issues'). It distinguishes from siblings like 'backlog_get_issue' (singular) by implying it retrieves multiple issues. However, it doesn't explicitly contrast with other list tools like 'backlog_get_wikis' beyond the resource type.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description mentions 'Supports pagination, content filtering' but provides no guidance on when to use this tool versus alternatives. With siblings like 'backlog_get_issue' (singular issue) and 'backlog_get_projects', there's no explicit advice on selection criteria, such as 'use this for filtered issue lists vs. backlog_get_issue for single issues'. The lack of when-to-use or exclusion statements leaves the agent with minimal context.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Related Tools

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

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