Skip to main content
Glama
fleagne

Backlog MCP Server

by fleagne

backlog_get_issue

Retrieve specific issue details using the Backlog Issue API by providing the issue ID or key. Integrates with the Backlog MCP Server for streamlined project management operations.

Instructions

Performs an issue get using the Backlog Issue API.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
issueIdOrKeyYesIssue ID or Issue Key

Implementation Reference

  • The main handler function for the 'backlog_get_issue' tool. Validates input using IssueParamsSchema, calls issueService.getIssue(), formats the response as text or error.
    const handleGetIssue: ToolHandler = async (args) => {
    	try {
    		try {
    			const validatedParams = IssueParamsSchema.parse(args);
    
    			const text = await issueService.getIssue(validatedParams);
    
    			return {
    				content: [
    					{
    						type: "text",
    						text: `Issue details for ${validatedParams.issueIdOrKey}:\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,
    		};
    	}
    };
  • Registration of tool handlers, mapping 'backlog_get_issue' to handleGetIssue function.
    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,
    };
  • MCP tool definition for 'backlog_get_issue', including description and input schema generated from IssueParamsSchema.
    export const ISSUE_TOOL: Tool = createTool(
    	"backlog_get_issue",
    	"Performs an issue get using the Backlog Issue API.",
    	IssueParamsSchema,
    );
  • Zod schema used for input validation of the tool parameters.
    export const IssueParamsSchema = z.object({
    	issueIdOrKey: z.string().describe("Issue ID or Issue Key"),
    });
  • Helper service method that delegates to backlogAPI.getIssue and wraps errors.
    async getIssue(params: IssueParams): Promise<string> {
    	try {
    		return await backlogAPI.getIssue(params);
    	} catch (error) {
    		throw new Error(
    			`Failed to get issue: ${error instanceof Error ? error.message : String(error)}`,
    		);
    	}
    }

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.8/5.0
Behavior2/5

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

No annotations provided. The description does not disclose that the tool is read-only, any authentication requirements, or other behavioral traits. As a 'get' method, it is presumably safe, but this is not explicitly stated.

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

Conciseness3/5

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

The description is a single sentence, which is concise but lacks useful detail. It is not overly verbose, but it could include more context without becoming bulky.

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

Completeness2/5

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

Although the tool is simple with one parameter and no output schema, the description omits usage guidelines and behavioral transparency, leaving gaps for an agent to select or use the tool correctly.

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?

The input schema already provides a clear description for the single parameter ('Issue ID or Issue Key'), and the description adds no additional meaning. With 100% schema coverage, the baseline score of 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 it performs an issue get, and the singular 'issue' distinguishes it from sibling 'backlog_get_issues' (plural). However, it does not explicitly specify the tool's scope or return value.

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?

No guidance on when to use this tool versus alternatives like 'backlog_get_issues' for multiple issues or 'backlog_update_issue' for modifications. Usage context is entirely implied.

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